@@ -16,7 +16,7 @@ |
||
| 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 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -33,7 +33,7 @@ |
||
| 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 | ), |