@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection\Builder\Definitions; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection\Coercion; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection\Coercion; |
11 | 11 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection\Coercion; |
11 | 11 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function apply(TypeDefinition $directive): void |
35 | 35 | { |
36 | - $applier = function () use ($directive): void { |
|
36 | + $applier = function() use ($directive): void { |
|
37 | 37 | $this->deprecationReason = $directive->getPassedArgument(Deprecation::REASON_ARGUMENT); |
38 | 38 | }; |
39 | 39 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection\Coercion; |
11 | 11 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection\Coercion; |
11 | 11 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | return; |
38 | 38 | } |
39 | 39 | |
40 | - if (! $type->hasDefaultValue()) { |
|
40 | + if (!$type->hasDefaultValue()) { |
|
41 | 41 | $this->inferenceValue($type); |
42 | 42 | return; |
43 | 43 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * field(arg: [Float] = null) → field(arg: [Float] = null) |
67 | 67 | * </code> |
68 | 68 | */ |
69 | - $isListDefinedByNonList = ($value !== null && ! \is_array($value)); |
|
69 | + $isListDefinedByNonList = ($value !== null && !\is_array($value)); |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The allowable conversion method for NULL: |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * field(argument: Type = NULL): Type |
122 | 122 | * </code> |
123 | 123 | */ |
124 | - if (! $argument->isNonNull()) { |
|
124 | + if (!$argument->isNonNull()) { |
|
125 | 125 | $this->set($argument, null); |
126 | 126 | return; |
127 | 127 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | private function set(BaseArgument $argument, $value): void |
135 | 135 | { |
136 | - $invocation = function ($value): void { |
|
136 | + $invocation = function($value): void { |
|
137 | 137 | /** @var BaseArgument $this */ |
138 | 138 | $this->defaultValue = $value; |
139 | 139 | $this->hasDefaultValue = true; |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection\Coercion; |
11 | 11 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | private function inferenceDefaultArguments(HasArguments $container, HasPassedArguments $usage): void |
50 | 50 | { |
51 | 51 | foreach ($container->getArguments() as $argument) { |
52 | - if ($argument->hasDefaultValue() && ! $usage->hasPassedArgument($argument->getName())) { |
|
52 | + if ($argument->hasDefaultValue() && !$usage->hasPassedArgument($argument->getName())) { |
|
53 | 53 | $this->set($usage, $argument->getName(), $argument->getDefaultValue()); |
54 | 54 | } |
55 | 55 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | private function set(HasPassedArguments $usage, string $key, $value): void |
64 | 64 | { |
65 | - $invocation = function (string $key, $value): void { |
|
65 | + $invocation = function(string $key, $value): void { |
|
66 | 66 | /** @var BaseInputInvocation $this */ |
67 | 67 | $this->arguments[$key] = $value; |
68 | 68 | }; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection; |
11 | 11 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\SDL\Reflection; |
11 | 11 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function register(TypeDefinition $type, bool $force = false): Dictionary |
53 | 53 | { |
54 | - if (! $force && $this->has($type->getName())) { |
|
54 | + if (!$force && $this->has($type->getName())) { |
|
55 | 55 | $error = \sprintf( |
56 | 56 | 'Can not declare %s, because the name %s already in use', |
57 | 57 | $this->typeToString($type), |