@@ -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\AccessorStrategy; |
| 9 | 9 | |
| 10 | 10 | use Tebru\Gson\Internal\GetterStrategy; |
@@ -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\AccessorStrategy; |
| 9 | 9 | |
| 10 | 10 | use Closure; |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | public function set($object, $value): void |
| 55 | 55 | { |
| 56 | 56 | if (null === $this->setter) { |
| 57 | - $this->setter = Closure::bind(function ($object, $value, string $propertyName) { |
|
| 57 | + $this->setter = Closure::bind(function($object, $value, string $propertyName) { |
|
| 58 | 58 | $object->{$propertyName} = $value; |
| 59 | 59 | }, null, $this->className); |
| 60 | 60 | } |
@@ -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\AccessorStrategy; |
| 9 | 9 | |
| 10 | 10 | use Closure; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | public function get($object) |
| 62 | 62 | { |
| 63 | 63 | if (null === $this->getter) { |
| 64 | - $this->getter = Closure::bind(function ($object, string $propertyName) { |
|
| 64 | + $this->getter = Closure::bind(function($object, string $propertyName) { |
|
| 65 | 65 | return $object->{$propertyName}; |
| 66 | 66 | }, null, $this->className); |
| 67 | 67 | } |
@@ -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\AccessorStrategy; |
| 9 | 9 | |
| 10 | 10 | use Tebru\Gson\Internal\SetterStrategy; |
@@ -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\Data; |
| 9 | 9 | |
| 10 | 10 | use InvalidArgumentException; |
@@ -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\Data; |
| 9 | 9 | |
| 10 | 10 | use ReflectionClass; |
@@ -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\Data; |
| 9 | 9 | |
| 10 | 10 | use Tebru\Gson\Internal\GetterStrategy; |
@@ -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\Data; |
| 9 | 9 | |
| 10 | 10 | use ArrayIterator; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @param string $name |
| 53 | 53 | * @return Property|null |
| 54 | 54 | */ |
| 55 | - public function getBySerializedName(string $name): ?Property |
|
| 55 | + public function getBySerializedName(string $name): ? Property |
|
| 56 | 56 | { |
| 57 | 57 | if (!isset($this->elements[$name])) { |
| 58 | 58 | return null; |
@@ -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\Data; |
| 9 | 9 | |
| 10 | 10 | use Tebru\Gson\PropertyMetadata; |