@@ -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 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @param JsonReadable $reader |
| 27 | 27 | * @return string|null |
| 28 | 28 | */ |
| 29 | - public function read(JsonReadable $reader): ?string |
|
| 29 | + public function read(JsonReadable $reader): ? string |
|
| 30 | 30 | { |
| 31 | 31 | if ($reader->peek() === JsonToken::NULL) { |
| 32 | 32 | return $reader->nextNull(); |
@@ -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 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @param JsonReadable $reader |
| 27 | 27 | * @return bool|null |
| 28 | 28 | */ |
| 29 | - public function read(JsonReadable $reader): ?bool |
|
| 29 | + public function read(JsonReadable $reader): ? bool |
|
| 30 | 30 | { |
| 31 | 31 | if ($reader->peek() === JsonToken::NULL) { |
| 32 | 32 | return $reader->nextNull(); |
@@ -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 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @param JsonReadable $reader |
| 27 | 27 | * @return float|null |
| 28 | 28 | */ |
| 29 | - public function read(JsonReadable $reader): ?float |
|
| 29 | + public function read(JsonReadable $reader): ? float |
|
| 30 | 30 | { |
| 31 | 31 | if ($reader->peek() === JsonToken::NULL) { |
| 32 | 32 | return $reader->nextNull(); |
@@ -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\Factory; |
| 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\TypeAdapter; |
| 10 | 10 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @throws \Tebru\Gson\Exception\JsonSyntaxException If trying to read from non object/array |
| 57 | 57 | * @throws \Tebru\PhpType\Exception\MalformedTypeException If the type cannot be parsed |
| 58 | 58 | */ |
| 59 | - public function read(JsonReadable $reader): ?array |
|
| 59 | + public function read(JsonReadable $reader): ? array |
|
| 60 | 60 | { |
| 61 | 61 | if ($reader->peek() === JsonToken::NULL) { |
| 62 | 62 | return $reader->nextNull(); |
@@ -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 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @param JsonReadable $reader |
| 27 | 27 | * @return int|null |
| 28 | 28 | */ |
| 29 | - public function read(JsonReadable $reader): ?int |
|
| 29 | + public function read(JsonReadable $reader): ? int |
|
| 30 | 30 | { |
| 31 | 31 | if ($reader->peek() === JsonToken::NULL) { |
| 32 | 32 | return $reader->nextNull(); |
@@ -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 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @return DateTime|null |
| 53 | 53 | * @throws \Tebru\Gson\Exception\JsonSyntaxException If the DateTime could not be created from format |
| 54 | 54 | */ |
| 55 | - public function read(JsonReadable $reader): ?DateTime |
|
| 55 | + public function read(JsonReadable $reader): ? DateTime |
|
| 56 | 56 | { |
| 57 | 57 | if ($reader->peek() === JsonToken::NULL) { |
| 58 | 58 | return $reader->nextNull(); |
@@ -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\Data; |
| 10 | 10 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param string $name |
| 54 | 54 | * @return Property|null |
| 55 | 55 | */ |
| 56 | - public function getBySerializedName(string $name): ?Property |
|
| 56 | + public function getBySerializedName(string $name): ? Property |
|
| 57 | 57 | { |
| 58 | 58 | if (!isset($this->elements[$name])) { |
| 59 | 59 | return null; |