@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $release, |
| 149 | 149 | 'publicationDate', |
| 150 | 150 | null, |
| 151 | - function ($data) { |
|
| 151 | + function($data) { |
|
| 152 | 152 | return $this->transformToDateTime($data); |
| 153 | 153 | } |
| 154 | 154 | ), |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $release, |
| 158 | 158 | 'series', |
| 159 | 159 | [], |
| 160 | - function ($data) { |
|
| 160 | + function($data) { |
|
| 161 | 161 | return $this->renameArrayKeys($data, ['number' => 'bookId']); |
| 162 | 162 | } |
| 163 | 163 | ) |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $release, |
| 168 | 168 | 'owner', |
| 169 | 169 | [], |
| 170 | - function ($data) { |
|
| 170 | + function($data) { |
|
| 171 | 171 | return $this->renameArrayKeys($data, ['copies' => 'nbCopies', 'readings' => 'nbReadings']); |
| 172 | 172 | } |
| 173 | 173 | ) |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function getBooksByEra(string $eraId): array |
| 27 | 27 | { |
| 28 | 28 | /** @var Book[] $books */ |
| 29 | - $books = array_filter($this->getBooks(), static function (Book $book) use ($eraId): bool { |
|
| 29 | + $books = array_filter($this->getBooks(), static function(Book $book) use ($eraId): bool { |
|
| 30 | 30 | return $book->getChronologicalMarker()->getEra()->getId() === $eraId; |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | // Replace the suffixes |
| 48 | 48 | return (string) preg_replace_callback( |
| 49 | 49 | '# ([AB]BY)#', |
| 50 | - static function ($matches) use ($suffixes) { |
|
| 50 | + static function($matches) use ($suffixes) { |
|
| 51 | 51 | return $suffixes[$matches[1]]; |
| 52 | 52 | }, |
| 53 | 53 | $date |