@@ -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; |
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\Factory; |
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\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; |
@@ -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 | |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | if (null !== $setterMethod && [] !== $setterMethod->getParameters()) { |
53 | 53 | $parameter = $setterMethod->getParameters()[0]; |
54 | 54 | if (null !== $parameter->getType()) { |
55 | - return new TypeToken((string) $parameter->getType()); |
|
55 | + return new TypeToken((string)$parameter->getType()); |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | |
59 | 59 | if (null !== $getterMethod && null !== $getterMethod->getReturnType()) { |
60 | - return new TypeToken((string) $getterMethod->getReturnType()); |
|
60 | + return new TypeToken((string)$getterMethod->getReturnType()); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | if (null !== $setterMethod && [] !== $setterMethod->getParameters()) { |
@@ -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 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @param string $annotationClass |
83 | 83 | * @return null|AbstractAnnotation |
84 | 84 | */ |
85 | - public function getAnnotation(string $annotationClass): ?AbstractAnnotation |
|
85 | + public function getAnnotation(string $annotationClass): ? AbstractAnnotation |
|
86 | 86 | { |
87 | 87 | return $this->annotations->get($annotationClass); |
88 | 88 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @param string $propertyName |
104 | 104 | * @return PropertyMetadata|null |
105 | 105 | */ |
106 | - public function getProperty(string $propertyName): ?PropertyMetadata |
|
106 | + public function getProperty(string $propertyName): ? PropertyMetadata |
|
107 | 107 | { |
108 | 108 | foreach ($this->propertyMetadata as $property) { |
109 | 109 | if ($property->getName() === $propertyName) { |
@@ -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\Naming; |
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\AccessorStrategy; |
10 | 10 |