Completed
Branch master (14c527)
by Dorian
03:56 queued 02:28
created
src/Gnutix/Library/LibraryFactory/YamlLibraryFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 )
Please login to merge, or discard this patch.
src/Gnutix/StarWarsLibrary/Model/Library.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Gnutix/StarWarsLibrary/Twig/Extension/StarWarsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.