@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | 'transformers' => [ |
| 246 | 246 | 'FooBarToFizBuz' => [ |
| 247 | 247 | 'inputClass' => FooBar::class, |
| 248 | - 'transformer' => function (array $data) { |
|
| 248 | + 'transformer' => function(array $data) { |
|
| 249 | 249 | return [ |
| 250 | 250 | 'fiz' => $data['foo'], |
| 251 | 251 | 'buz' => $data['bar'], |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | |
| 273 | 273 | public function testTransformCustomKeyMapService() |
| 274 | 274 | { |
| 275 | - $this->container->setService('CustomKeyMapService', function (array $data) { |
|
| 275 | + $this->container->setService('CustomKeyMapService', function(array $data) { |
|
| 276 | 276 | return [ |
| 277 | 277 | 'fiz' => $data['foo'], |
| 278 | 278 | 'buz' => $data['bar'], |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $sut = new Transformer( |
| 19 | 19 | new ValidatorChain(), |
| 20 | 20 | new ClassMethods(), |
| 21 | - function (array $data) { |
|
| 21 | + function(array $data) { |
|
| 22 | 22 | return [ |
| 23 | 23 | 'fiz' => $data['foo'], |
| 24 | 24 | 'buz' => $data['bar'], |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function getConfig() |
| 15 | 15 | { |
| 16 | - return require __DIR__ . '/../../config/module.config.php'; |
|
| 16 | + return require __DIR__.'/../../config/module.config.php'; |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -220,7 +220,7 @@ |
||
| 220 | 220 | |
| 221 | 221 | $keyMap = $config->getKeyMap(); |
| 222 | 222 | if (is_array($keyMap)) { |
| 223 | - return function (array $data) use ($keyMap) { |
|
| 223 | + return function(array $data) use ($keyMap) { |
|
| 224 | 224 | $result = []; |
| 225 | 225 | foreach ($data as $key => $value) { |
| 226 | 226 | $result[\igorw\get_in($keyMap, [$key], $key)] = $value; |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | |
| 94 | 94 | $isValid = $validator->isValid($object); |
| 95 | 95 | |
| 96 | - Assertion::true($isValid, 'Validation failed: ' . json_encode($validator->getMessages())); |
|
| 96 | + Assertion::true($isValid, 'Validation failed: '.json_encode($validator->getMessages())); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |