@@ -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\Internal\TypeAdapter; |
10 | 10 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function read(JsonReadable $reader): ?array |
58 | 58 | { |
59 | - if ($reader->peek() === JsonToken::NULL) { |
|
59 | + if ($reader->peek() === JsonToken::null) { |
|
60 | 60 | $reader->nextNull(); |
61 | 61 | return null; |
62 | 62 | } |
@@ -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\Element; |
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\Naming; |
10 | 10 | |
@@ -78,6 +78,6 @@ discard block |
||
78 | 78 | */ |
79 | 79 | private function prependUpperCaseWith(string $string, string $replacement): string |
80 | 80 | { |
81 | - return \preg_replace('/(?<!^)([A-Z])/', $replacement.'\\1', $string); |
|
81 | + return \preg_replace('/(?<!^)([A-Z])/', $replacement . '\\1', $string); |
|
82 | 82 | } |
83 | 83 | } |
@@ -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\Data; |
10 | 10 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | public function create(TypeToken $phpType): PropertyCollection |
124 | 124 | { |
125 | 125 | $class = $phpType->getRawType(); |
126 | - $key = 'gson.properties.'.\str_replace('\\', '', $class); |
|
126 | + $key = 'gson.properties.' . \str_replace('\\', '', $class); |
|
127 | 127 | |
128 | 128 | $data = $this->cache->get($key); |
129 | 129 | if ($data !== null) { |
@@ -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 |