@@ -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 @@ 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\Annotation; |
| 10 | 10 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @return string |
| 64 | 64 | */ |
| 65 | - public function getter(): ?string |
|
| 65 | + public function getter(): ? string |
|
| 66 | 66 | { |
| 67 | 67 | return $this->get; |
| 68 | 68 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @return string |
| 74 | 74 | */ |
| 75 | - public function setter(): ?string |
|
| 75 | + public function setter(): ? string |
|
| 76 | 76 | { |
| 77 | 77 | return $this->set; |
| 78 | 78 | } |
@@ -113,8 +113,7 @@ |
||
| 113 | 113 | AnnotationCollection $annotations, |
| 114 | 114 | int $modifiers, |
| 115 | 115 | bool $virtual |
| 116 | - ) |
|
| 117 | - { |
|
| 116 | + ) { |
|
| 118 | 117 | $this->realName = $realName; |
| 119 | 118 | $this->serializedName = $serializedName; |
| 120 | 119 | $this->type = $type; |
@@ -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 @@ |
||
| 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 @@ 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 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param string $annotationClass |
| 42 | 42 | * @return null|AbstractAnnotation |
| 43 | 43 | */ |
| 44 | - public function getAnnotation(string $annotationClass): ?AbstractAnnotation; |
|
| 44 | + public function getAnnotation(string $annotationClass): ? AbstractAnnotation; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Returns an array of [@see PropertyMetadata] objects |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @param string $propertyName |
| 57 | 57 | * @return PropertyMetadata|null |
| 58 | 58 | */ |
| 59 | - public function getProperty(string $propertyName): ?PropertyMetadata; |
|
| 59 | + public function getProperty(string $propertyName): ? PropertyMetadata; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * Add [@see PropertyMetadata] link |
@@ -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 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @param string $annotationName |
| 84 | 84 | * @return null|AbstractAnnotation |
| 85 | 85 | */ |
| 86 | - public function getAnnotation(string $annotationName): ?AbstractAnnotation; |
|
| 86 | + public function getAnnotation(string $annotationName): ? AbstractAnnotation; |
|
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * Returns true if the property is virtual |
@@ -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\Element; |
| 10 | 10 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param string $property |
| 37 | 37 | * @param string $value |
| 38 | 38 | */ |
| 39 | - public function addString(string $property, ?string $value) |
|
| 39 | + public function addString(string $property, ? string $value) |
|
| 40 | 40 | { |
| 41 | 41 | $this->add($property, JsonPrimitive::create($value)); |
| 42 | 42 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param string $property |
| 48 | 48 | * @param int $value |
| 49 | 49 | */ |
| 50 | - public function addInteger(string $property, ?int $value) |
|
| 50 | + public function addInteger(string $property, ? int $value) |
|
| 51 | 51 | { |
| 52 | 52 | $this->add($property, JsonPrimitive::create($value)); |
| 53 | 53 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * @param string $property |
| 59 | 59 | * @param float $value |
| 60 | 60 | */ |
| 61 | - public function addFloat(string $property, ?float $value) |
|
| 61 | + public function addFloat(string $property, ? float $value) |
|
| 62 | 62 | { |
| 63 | 63 | $this->add($property, JsonPrimitive::create($value)); |
| 64 | 64 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @param string $property |
| 70 | 70 | * @param bool $value |
| 71 | 71 | */ |
| 72 | - public function addBoolean(string $property, ?bool $value) |
|
| 72 | + public function addBoolean(string $property, ? bool $value) |
|
| 73 | 73 | { |
| 74 | 74 | $this->add($property, JsonPrimitive::create($value)); |
| 75 | 75 | } |
@@ -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\Element; |
| 10 | 10 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | public function asString(): string |
| 108 | 108 | { |
| 109 | - return (string) $this->value; |
|
| 109 | + return (string)$this->value; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function asInteger(): int |
| 118 | 118 | { |
| 119 | - return (int) $this->value; |
|
| 119 | + return (int)$this->value; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function asFloat(): float |
| 128 | 128 | { |
| 129 | - return (float) $this->value; |
|
| 129 | + return (float)$this->value; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | public function asBoolean(): bool |
| 138 | 138 | { |
| 139 | - return (bool) $this->value; |
|
| 139 | + return (bool)$this->value; |
|
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
@@ -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 | |