Passed
Push — master ( 3b6204...351dd8 )
by Roman
17:23
created
code/src/Game/Features/History/PlayerHistory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function __invoke(): array
17 17
     {
18 18
         return array_map(
19
-            static fn (HistoryRatingDto $dto): array => $dto->jsonSerialize(),
19
+            static fn(HistoryRatingDto $dto): array => $dto->jsonSerialize(),
20 20
             $this->historyDao->ratingHistory()
21 21
         );
22 22
     }
Please login to merge, or discard this patch.
code/src/Game/Infrastructure/Dao/InMemory/InMemoryHistoryDao.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $this->histories = array_reduce(
21 21
             $history,
22
-            static function (array $histories, History $history): array {
22
+            static function(array $histories, History $history): array {
23 23
                 $histories[(string) $history->historyId()] = $history;
24 24
 
25 25
                 return $histories;
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function ratingHistory(int $limit = self::LIMIT): array
32 32
     {
33 33
         return array_map(
34
-            static fn (History $history): HistoryRatingDto => new HistoryRatingDto('test', $history->level()),
34
+            static fn(History $history): HistoryRatingDto => new HistoryRatingDto('test', $history->level()),
35 35
             $this->histories
36 36
         );
37 37
     }
Please login to merge, or discard this patch.
code/src/Game/Infrastructure/Dao/Doctrine/HistoryDao.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             ->fetchAllAssociative();
34 34
 
35 35
         return array_map(
36
-            static fn (array $record): HistoryRatingDto => new HistoryRatingDto(
36
+            static fn(array $record): HistoryRatingDto => new HistoryRatingDto(
37 37
                 $record['nickname'],
38 38
                 (int) $record['level']
39 39
             ),
Please login to merge, or discard this patch.