@@ -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 |
@@ -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 |
@@ -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 |
@@ -25,6 +25,6 @@ |
||
25 | 25 | public const STRING = 'string'; |
26 | 26 | public const BOOLEAN = 'boolean'; |
27 | 27 | public const NUMBER = 'number'; |
28 | - public const NULL = 'null'; |
|
28 | + public const null = 'null'; |
|
29 | 29 | public const NAME = 'name'; |
30 | 30 | } |
@@ -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; |
10 | 10 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | */ |
334 | 334 | public function setCacheDir(string $cacheDir): GsonBuilder |
335 | 335 | { |
336 | - $this->cacheDir = $cacheDir.'/gson'; |
|
336 | + $this->cacheDir = $cacheDir . '/gson'; |
|
337 | 337 | |
338 | 338 | return $this; |
339 | 339 | } |
@@ -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\Annotation; |
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\TypeAdapter; |
10 | 10 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function read(JsonReadable $reader): ?string |
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\TypeAdapter; |
10 | 10 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function read(JsonReadable $reader): ?bool |
30 | 30 | { |
31 | - if ($reader->peek() === JsonToken::NULL) { |
|
31 | + if ($reader->peek() === JsonToken::null) { |
|
32 | 32 | $reader->nextNull(); |
33 | 33 | return null; |
34 | 34 | } |