@@ -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 | |
@@ -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 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * |
| 34 | 34 | * @param string $value |
| 35 | 35 | */ |
| 36 | - public function addString(?string $value): void |
|
| 36 | + public function addString(? string $value) : void |
|
| 37 | 37 | { |
| 38 | 38 | $this->addJsonElement(JsonPrimitive::create($value)); |
| 39 | 39 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @param int $value |
| 45 | 45 | */ |
| 46 | - public function addInteger(?int $value): void |
|
| 46 | + public function addInteger(? int $value) : void |
|
| 47 | 47 | { |
| 48 | 48 | $this->addJsonElement(JsonPrimitive::create($value)); |
| 49 | 49 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * @param float $value |
| 55 | 55 | */ |
| 56 | - public function addFloat(?float $value): void |
|
| 56 | + public function addFloat(? float $value) : void |
|
| 57 | 57 | { |
| 58 | 58 | $this->addJsonElement(JsonPrimitive::create($value)); |
| 59 | 59 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @param bool $value |
| 65 | 65 | */ |
| 66 | - public function addBoolean(?bool $value): void |
|
| 66 | + public function addBoolean(? bool $value) : void |
|
| 67 | 67 | { |
| 68 | 68 | $this->addJsonElement(JsonPrimitive::create($value)); |
| 69 | 69 | } |
@@ -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\Exception; |
| 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\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\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\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\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\Annotation; |
| 10 | 10 | |