@@ -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; |
10 | 10 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function getTypeName(): string |
142 | 142 | { |
143 | - return (string) $this->type; |
|
143 | + return (string)$this->type; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -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 @@ |
||
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 @@ |
||
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; |
10 | 10 |
@@ -68,5 +68,7 @@ |
||
68 | 68 | self::UPPER_CAMEL_CASE_WITH_SPACES, |
69 | 69 | ]; |
70 | 70 | |
71 | - private function __construct() {} |
|
71 | + private function __construct() |
|
72 | + { |
|
73 | +} |
|
72 | 74 | } |
@@ -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\Naming; |
10 | 10 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | private function prependUpperCaseWith(string $string, string $replacement): string |
78 | 78 | { |
79 | - return preg_replace('/(?<!^)([A-Z])/', $replacement.'\\1', $string); |
|
79 | + return preg_replace('/(?<!^)([A-Z])/', $replacement . '\\1', $string); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | } |