Completed
Pull Request — master (#3)
by Timothy
04:05
created
tests/ZendTransformer/Factory/AbstractTransformerFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'],
Please login to merge, or discard this patch.
tests/ZendTransformer/TransformerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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'],
Please login to merge, or discard this patch.
src/ZendTransformer/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/ZendTransformer/Factory/AbstractTransformerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/ZendTransformer/Transformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.