@@ -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 | |
9 | 9 | namespace Tebru\Gson\Internal\TypeAdapter; |
10 | 10 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | $writer->beginObject(); |
182 | 182 | |
183 | - $virtualProperty = $this->classMetadata->getAnnotation(VirtualProperty::class) ; |
|
183 | + $virtualProperty = $this->classMetadata->getAnnotation(VirtualProperty::class); |
|
184 | 184 | if ($virtualProperty !== null) { |
185 | 185 | $writer->name($virtualProperty->getValue()); |
186 | 186 | $writer->beginObject(); |
@@ -96,7 +96,7 @@ |
||
96 | 96 | */ |
97 | 97 | public function read(JsonReadable $reader) |
98 | 98 | { |
99 | - if ($reader->peek() === JsonToken::NULL) { |
|
99 | + if ($reader->peek() === JsonToken::null) { |
|
100 | 100 | $reader->nextNull(); |
101 | 101 | return null; |
102 | 102 | } |
@@ -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 | |
9 | 9 | namespace Tebru\Gson\Internal\TypeAdapter; |
10 | 10 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function read(JsonReadable $reader): ?DateTime |
56 | 56 | { |
57 | - if ($reader->peek() === JsonToken::NULL) { |
|
57 | + if ($reader->peek() === JsonToken::null) { |
|
58 | 58 | $reader->nextNull(); |
59 | 59 | return null; |
60 | 60 | } |
@@ -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 | |
9 | 9 | namespace Tebru\Gson\Internal\TypeAdapter; |
10 | 10 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function read(JsonReadable $reader): ?int |
30 | 30 | { |
31 | - if ($reader->peek() === JsonToken::NULL) { |
|
31 | + if ($reader->peek() === JsonToken::null) { |
|
32 | 32 | $reader->nextNull(); |
33 | 33 | return null; |
34 | 34 | } |
@@ -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 | |
9 | 9 | namespace Tebru\Gson\Internal; |
10 | 10 |
@@ -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 | |
9 | 9 | namespace Tebru\Gson\Internal; |
10 | 10 |
@@ -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 | |
9 | 9 | namespace Tebru\Gson\Internal\Data; |
10 | 10 |
@@ -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 | |
9 | 9 | namespace Tebru\Gson\Internal; |
10 | 10 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function getTypeName(): string |
142 | 142 | { |
143 | - return (string) $this->type; |
|
143 | + return (string)$this->type; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -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 | |
9 | 9 | namespace Tebru\Gson; |
10 | 10 |
@@ -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 | |
9 | 9 | namespace Tebru\Gson; |
10 | 10 |