@@ -4,7 +4,7 @@ discard block |
||
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 |
||
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 |
@@ -4,7 +4,7 @@ |
||
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; |
@@ -4,7 +4,7 @@ |
||
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; |
@@ -4,7 +4,7 @@ |
||
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; |
@@ -4,7 +4,7 @@ |
||
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; |
@@ -4,7 +4,7 @@ |
||
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; |
@@ -4,8 +4,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -4,7 +4,7 @@ |
||
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; |
@@ -4,7 +4,7 @@ |
||
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; |