@@ -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 Tebru\Gson\ClassMetadata; |
@@ -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 | /** |
@@ -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 LogicException; |
@@ -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 Tebru\Gson\Element\JsonElement; |
@@ -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 Tebru\Gson\ClassMetadata; |
@@ -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 ReflectionClass; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * @param AnnotationSet $annotations |
48 | 48 | * @return null|ReflectionMethod |
49 | 49 | */ |
50 | - public function getterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ?ReflectionMethod |
|
50 | + public function getterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ? ReflectionMethod |
|
51 | 51 | { |
52 | 52 | /** @var Accessor $accessorAnnotation */ |
53 | 53 | $accessorAnnotation = $annotations->getAnnotation(Accessor::class, AnnotationSet::TYPE_PROPERTY); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @param AnnotationSet $annotations |
68 | 68 | * @return null|ReflectionMethod |
69 | 69 | */ |
70 | - public function setterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ?ReflectionMethod |
|
70 | + public function setterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ? ReflectionMethod |
|
71 | 71 | { |
72 | 72 | /** @var Accessor $accessorAnnotation */ |
73 | 73 | $accessorAnnotation = $annotations->getAnnotation(Accessor::class, AnnotationSet::TYPE_PROPERTY); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param array $accessors |
87 | 87 | * @return null|ReflectionMethod |
88 | 88 | */ |
89 | - private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ?ReflectionMethod |
|
89 | + private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ? ReflectionMethod |
|
90 | 90 | { |
91 | 91 | foreach ($accessors as $method) { |
92 | 92 | if (!$reflectionClass->hasMethod($method)) { |
@@ -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 InvalidArgumentException; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function getAdapter(TypeToken $type, TypeAdapterFactory $skip = null): TypeAdapter |
68 | 68 | { |
69 | - $key = (string)$type; |
|
69 | + $key = (string) $type; |
|
70 | 70 | if (null === $skip && isset($this->typeAdapters[$key])) { |
71 | 71 | return $this->typeAdapters[$key]; |
72 | 72 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | throw new InvalidArgumentException(sprintf( |
94 | 94 | 'The type "%s" could not be handled by any of the registered type adapters', |
95 | - (string)$type |
|
95 | + (string) $type |
|
96 | 96 | )); |
97 | 97 | } |
98 | 98 |
@@ -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 Iterator; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | $this->push($value); |
151 | 151 | |
152 | - return (string)$key; |
|
152 | + return (string) $key; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -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 | /** |