@@ -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\AccessorStrategy; |
| 10 | 10 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | public function get($object) |
| 63 | 63 | { |
| 64 | 64 | if (null === $this->getter) { |
| 65 | - $this->getter = Closure::bind(function ($object, string $propertyName) { |
|
| 65 | + $this->getter = Closure::bind(function($object, string $propertyName) { |
|
| 66 | 66 | return $object->{$propertyName}; |
| 67 | 67 | }, null, $this->className); |
| 68 | 68 | } |
@@ -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\AccessorStrategy; |
| 10 | 10 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | public function set($object, $value): void |
| 56 | 56 | { |
| 57 | 57 | if (null === $this->setter) { |
| 58 | - $this->setter = Closure::bind(function ($object, $value, string $propertyName) { |
|
| 58 | + $this->setter = Closure::bind(function($object, $value, string $propertyName) { |
|
| 59 | 59 | $object->{$propertyName} = $value; |
| 60 | 60 | }, null, $this->className); |
| 61 | 61 | } |
@@ -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\ObjectConstructor; |
| 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 | |
@@ -219,11 +219,11 @@ discard block |
||
| 219 | 219 | $result = '$'; |
| 220 | 220 | foreach ($this->stack as $index => $item) { |
| 221 | 221 | if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) { |
| 222 | - $result .= '['.$this->pathIndices[$index].']'; |
|
| 222 | + $result .= '[' . $this->pathIndices[$index] . ']'; |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | if ($item instanceof JsonObjectIterator && isset($this->pathNames[$index])) { |
| 226 | - $result .= '.'.$this->pathNames[$index]; |
|
| 226 | + $result .= '.' . $this->pathNames[$index]; |
|
| 227 | 227 | } |
| 228 | 228 | } |
| 229 | 229 | |
@@ -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 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function __construct(JsonObject $jsonObject) |
| 26 | 26 | { |
| 27 | - foreach($jsonObject as $key => $value) { |
|
| 27 | + foreach ($jsonObject as $key => $value) { |
|
| 28 | 28 | $this->queue[] = [$key, $value]; |
| 29 | 29 | $this->total++; |
| 30 | 30 | } |
@@ -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 | |
@@ -216,11 +216,11 @@ discard block |
||
| 216 | 216 | $result = '$'; |
| 217 | 217 | foreach ($this->stack as $index => $item) { |
| 218 | 218 | if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) { |
| 219 | - $result .= '['.$this->pathIndices[$index].']'; |
|
| 219 | + $result .= '[' . $this->pathIndices[$index] . ']'; |
|
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | if ($item instanceof StdClassIterator && isset($this->pathNames[$index])) { |
| 223 | - $result .= '.'.$this->pathNames[$index]; |
|
| 223 | + $result .= '.' . $this->pathNames[$index]; |
|
| 224 | 224 | } |
| 225 | 225 | } |
| 226 | 226 | |
@@ -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 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | $this->write($writer, $var); |
| 82 | 82 | |
| 83 | - return (string) $writer; |
|
| 83 | + return (string)$writer; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -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 | |