DX: fix cs

This commit is contained in:
2023-04-15 00:43:55 +02:00
parent 80647147ee
commit 746ed4f5e5
188 changed files with 309 additions and 308 deletions

View File

@@ -134,7 +134,7 @@ final class NotificationTest extends KernelTestCase
$this->assertEquals($senderId, $notification->getSender()->getId());
$this->assertCount(count($addressesIds), $notification->getUnreadBy());
$unreadIds = $notification->getUnreadBy()->map(static fn(User $u) => $u->getId());
$unreadIds = $notification->getUnreadBy()->map(static fn (User $u) => $u->getId());
foreach ($addressesIds as $addresseeId) {
$this->assertContains($addresseeId, $unreadIds);

View File

@@ -96,7 +96,7 @@ final class ScopePickerTypeTest extends TypeTestCase
$translatableStringHelper = $this->prophesize(TranslatableStringHelperInterface::class);
$translatableStringHelper->localize(Argument::type('array'))->will(
static fn($args) => $args[0]['fr']
static fn ($args) => $args[0]['fr']
);
$type = new ScopePickerType(

View File

@@ -52,7 +52,7 @@ final class ExtractDateFromPatternTest extends TestCase
$this->assertContainsOnlyInstancesOf(DateTimeImmutable::class, $result->getFound());
$dates = array_map(
static fn(DateTimeImmutable $d) => $d->format('Y-m-d'),
static fn (DateTimeImmutable $d) => $d->format('Y-m-d'),
$result->getFound()
);

View File

@@ -211,7 +211,7 @@ final class AuthorizationHelperTest extends KernelTestCase
$centerA
);
$usernames = array_map(static fn(User $u) => $u->getUsername(), $users);
$usernames = array_map(static fn (User $u) => $u->getUsername(), $users);
$this->assertContains('center a_social', $usernames);
}