Completed
Pull Request — master (#5)
by John
01:37
created
src/Processors/Factory/DateTimeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
Please login to merge, or discard this patch.
src/Processors/Factory/ScalarFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function create(Schema $schema, ProcessorBuilder $builder)
45 45
     {
46
-        if(!$schema instanceof ScalarSchema){
46
+        if (!$schema instanceof ScalarSchema) {
47 47
             return null;
48 48
         }
49 49
 
50
-        if (!isset(self::$primitiveMap[$schema->getType()])) {
50
+        if (!isset(self::$primitiveMap[ $schema->getType() ])) {
51 51
             return null;
52 52
         }
53
-        $className = self::$primitiveMap[$schema->getType()];
53
+        $className = self::$primitiveMap[ $schema->getType() ];
54 54
 
55 55
         return $hydrator = new $className($schema);
56 56
     }
Please login to merge, or discard this patch.
src/Processors/Factory/ObjectFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
Please login to merge, or discard this patch.
src/Processors/Factory/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
Please login to merge, or discard this patch.
src/Processors/Factory/LooseSimpleObjectFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
Please login to merge, or discard this patch.
src/Processors/Factory/ArrayFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
Please login to merge, or discard this patch.
src/Processors/Factory/ComplexTypeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
Please login to merge, or discard this patch.
src/Processors/ArrayProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
     public function hydrate($value)
48 48
     {
49 49
         if ($value === null) {
50
-            if(null == ($value = $this->schema->getDefault())){
50
+            if (null == ($value = $this->schema->getDefault())) {
51 51
                 return null;
52 52
             }
53 53
         }
54 54
 
55
-        return array_map(function ($value) {
55
+        return array_map(function($value) {
56 56
             return $this->itemsProcessor->hydrate($value);
57 57
         }, $value);
58 58
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function dehydrate($value)
65 65
     {
66
-        return array_map(function ($value) {
66
+        return array_map(function($value) {
67 67
             return $this->itemsProcessor->dehydrate($value);
68 68
         }, $value);
69 69
     }
Please login to merge, or discard this patch.
src/Processors/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\PhpApi\Hydrator package.
4 4
  *
Please login to merge, or discard this patch.