Passed
Push — master ( da4da2...955b82 )
by Nate
04:34
created
src/Internal/Excluder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use ReflectionProperty;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param string $version
70 70
      * @return Excluder
71 71
      */
72
-    public function setVersion(?string $version): Excluder
72
+    public function setVersion(? string $version) : Excluder
73 73
     {
74 74
         $this->version = $version;
75 75
 
Please login to merge, or discard this patch.
src/Internal/ObjectConstructor/CreateFromReflectionClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal\ObjectConstructor;
9 9
 
10 10
 use ReflectionClass;
Please login to merge, or discard this patch.
src/Internal/ObjectConstructor/CreateFromInstanceCreator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal\ObjectConstructor;
9 9
 
10 10
 use Tebru\Gson\InstanceCreator;
Please login to merge, or discard this patch.
src/Internal/ObjectConstructor/CreateWithoutArguments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal\ObjectConstructor;
9 9
 
10 10
 use Tebru\Gson\Internal\ObjectConstructor;
Please login to merge, or discard this patch.
src/Internal/AbstractIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use Iterator;
Please login to merge, or discard this patch.
src/Internal/PhpTypeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use ReflectionMethod;
Please login to merge, or discard this patch.
src/Internal/JsonDecodeReader.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
8
-declare(strict_types=1);
7
+declare(strict_types = 1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Tebru\Gson\Internal;
11 11
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $this->expect(JsonToken::BOOLEAN);
77 77
 
78
-        $result = (bool)$this->pop();
78
+        $result = (bool) $this->pop();
79 79
 
80 80
         $this->incrementPathIndex();
81 81
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $this->expect(JsonToken::NUMBER);
94 94
 
95
-        $result = (float)$this->pop();
95
+        $result = (float) $this->pop();
96 96
 
97 97
         $this->incrementPathIndex();
98 98
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $this->expect(JsonToken::NUMBER);
111 111
 
112
-        $result = (int)$this->pop();
112
+        $result = (int) $this->pop();
113 113
 
114 114
         $this->incrementPathIndex();
115 115
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         $this->expect(JsonToken::STRING);
133 133
 
134
-        $result = (string)$this->pop();
134
+        $result = (string) $this->pop();
135 135
 
136 136
         $this->incrementPathIndex();
137 137
 
@@ -215,11 +215,11 @@  discard block
 block discarded – undo
215 215
         $result = '$';
216 216
         foreach ($this->stack as $index => $item) {
217 217
             if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) {
218
-                $result .= '['.$this->pathIndices[$index].']';
218
+                $result .= '[' . $this->pathIndices[$index] . ']';
219 219
             }
220 220
 
221 221
             if ($item instanceof StdClassIterator && isset($this->pathNames[$index])) {
222
-                $result .= '.'.$this->pathNames[$index];
222
+                $result .= '.' . $this->pathNames[$index];
223 223
             }
224 224
         }
225 225
 
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/GetByPublicProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal\AccessorStrategy;
9 9
 
10 10
 use Tebru\Gson\Internal\GetterStrategy;
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/SetByNull.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 namespace Tebru\Gson\Internal\AccessorStrategy;
9 9
 
10 10
 use Tebru\Gson\Internal\SetterStrategy;
Please login to merge, or discard this patch.