@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace Gnutix\Library\Dumper; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Yaml\Dumper; |
| 6 | - |
|
| 7 | 6 | use Gnutix\Library\LibraryDumperInterface; |
| 8 | 7 | use Gnutix\Library\LibraryInterface; |
| 9 | - |
|
| 10 | 8 | use Gnutix\Library\Model\Book; |
| 11 | 9 | |
| 12 | 10 | /** |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * @param string|int $dateInput |
|
| 84 | + * @param integer $dateInput |
|
| 85 | 85 | * |
| 86 | 86 | * @return string |
| 87 | 87 | */ |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Gnutix\Library\Dumper\YamlLibraryDumper as BaseYamlLibraryDumper; |
| 6 | 6 | use Gnutix\Library\LibraryInterface; |
| 7 | - |
|
| 8 | 7 | use Gnutix\Library\Model\Book; |
| 9 | 8 | use Gnutix\StarWarsLibrary\Model\ChronologicalMarker; |
| 10 | 9 | |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | $release, |
| 183 | 183 | 'publicationDate', |
| 184 | 184 | null, |
| 185 | - function ($data) use ($that) { |
|
| 185 | + function($data) use ($that) { |
|
| 186 | 186 | return $that->transformToDateTime($data); |
| 187 | 187 | } |
| 188 | 188 | ), |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $release, |
| 192 | 192 | 'series', |
| 193 | 193 | array(), |
| 194 | - function ($data) use ($that) { |
|
| 194 | + function($data) use ($that) { |
|
| 195 | 195 | return $that->renameArrayKeys($data, array('number' => 'bookId')); |
| 196 | 196 | } |
| 197 | 197 | ) |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | $release, |
| 202 | 202 | 'owner', |
| 203 | 203 | array(), |
| 204 | - function ($data) use ($that) { |
|
| 204 | + function($data) use ($that) { |
|
| 205 | 205 | return $that->renameArrayKeys($data, array('copies' => 'nbCopies', 'readings' => 'nbReadings')); |
| 206 | 206 | } |
| 207 | 207 | ) |
@@ -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 |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Gnutix\Library\Dumper\YamlLibraryDumper as BaseYamlLibraryDumper; |
| 6 | 6 | use Gnutix\Library\LibraryInterface; |
| 7 | - |
|
| 8 | 7 | use Gnutix\Library\Model\Book; |
| 9 | 8 | use Gnutix\StarWarsLibrary\Model\ChronologicalMarker; |
| 10 | 9 | |