@@ -67,7 +67,7 @@ |
||
| 67 | 67 | // Replace the suffixes |
| 68 | 68 | return preg_replace_callback( |
| 69 | 69 | '# ((?:A|B)BY)#', |
| 70 | - function ($matches) use ($suffixes) { |
|
| 70 | + function($matches) use ($suffixes) { |
|
| 71 | 71 | return $suffixes[$matches[1]]; |
| 72 | 72 | }, |
| 73 | 73 | $date |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | final class YamlLibraryDumper extends BaseYamlLibraryDumper |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * @param string|int $dateInput |
|
| 16 | + * @param integer $dateInput |
|
| 17 | 17 | * |
| 18 | 18 | * @return string |
| 19 | 19 | */ |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function getBooksByEra(string $eraId) |
| 25 | 25 | { |
| 26 | - return array_filter($this->getBooks(), static function (Book $book) use ($eraId): bool { |
|
| 26 | + return array_filter($this->getBooks(), static function(Book $book) use ($eraId): bool { |
|
| 27 | 27 | return $book->getChronologicalMarker()->getEra()->getId() === $eraId; |
| 28 | 28 | }); |
| 29 | 29 | } |
@@ -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 | ) |