Completed
Pull Request — master (#5)
by John
01:37
created
src/Exception/UnsupportedException.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/Exception/DateTimeNotParsableException.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/Exception/ClassNotFoundException.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/ClassNameResolver.php 1 patch
Spacing   +7 added lines, -7 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
  *
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * @var array
20 20
      */
21
-    protected $resourceNamespaces = [];
21
+    protected $resourceNamespaces = [ ];
22 22
 
23 23
     /**
24 24
      * @var array
25 25
      */
26
-    protected $cache = [];
26
+    protected $cache = [ ];
27 27
 
28 28
     /**
29 29
      * ClassNameResolver constructor.
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function resolve(string $typeName): string
44 44
     {
45
-        if (!isset($this->cache[$typeName])) {
45
+        if (!isset($this->cache[ $typeName ])) {
46 46
             foreach ($this->resourceNamespaces as $resourceNamespace) {
47
-                if (class_exists($this->cache[$typeName] = $this->qualify($resourceNamespace, $typeName))) {
48
-                    return $this->cache[$typeName];
47
+                if (class_exists($this->cache[ $typeName ] = $this->qualify($resourceNamespace, $typeName))) {
48
+                    return $this->cache[ $typeName ];
49 49
                 }
50 50
             }
51 51
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             );
59 59
         }
60 60
 
61
-        return $this->cache[$typeName];
61
+        return $this->cache[ $typeName ];
62 62
     }
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
src/DateTimeSerializer.php 1 patch
Spacing   +3 added lines, -3 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
  *
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function __construct(string ...$formats)
43 43
     {
44
-        if (isset($formats[0])) {
45
-            $this->outputFormat = $formats[0];
44
+        if (isset($formats[ 0 ])) {
45
+            $this->outputFormat = $formats[ 0 ];
46 46
         }
47 47
 
48 48
         $this->inputDateTimeFormats = $formats + $this->inputDateTimeFormats;
Please login to merge, or discard this patch.
src/Processors/Scalar/NullProcessor.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/Scalar/IntegerProcessor.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/Scalar/BoolProcessor.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/Scalar/ScalarProcessor.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.