Completed
Push — master ( 866487...6bcace )
by Dorian
04:50
created
src/Gnutix/StarWarsLibrary/Twig/Extension/StarWarsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Gnutix/StarWarsLibrary/Dumper/YamlLibraryDumper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
      */
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
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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.