Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed May 15, 2024
1 parent 71a5ab3 commit 6a71fbf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/EventListener/AdminEmailTokenSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,10 @@ private function mockFrameworkWithAdminEmail(string|null $adminEmail = null): Co
$stringUtilAdapter
->method('splitFriendlyEmail')
->willReturnCallback(
static function (string $email): array {
return match ($email) {
'Lorem Ipsum [[email protected]]' => ['Lorem Ipsum', '[email protected]'],
'Dolor Sitamet [[email protected]]' => ['Dolor Sitamet', '[email protected]'],
default => ['', $email],
};
static fn(string $email): array => match ($email) {
'Lorem Ipsum [[email protected]]' => ['Lorem Ipsum', '[email protected]'],
'Dolor Sitamet [[email protected]]' => ['Dolor Sitamet', '[email protected]'],
default => ['', $email],
},
)
;
Expand Down

0 comments on commit 6a71fbf

Please sign in to comment.