@@ -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\Validation\Uniqueness; |
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\Validation\Uniqueness\Scalar; |
11 | 11 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function validate(array $container, string $item, string $typeName): void |
39 | 39 | { |
40 | 40 | if (\array_key_exists($item, $container)) { |
41 | - $error = \sprintf(static::REDEFINITION_ERROR, $typeName . ' ' . $item); |
|
41 | + $error = \sprintf(static::REDEFINITION_ERROR, $typeName.' '.$item); |
|
42 | 42 | throw new TypeConflictException($error, $this->getCallStack()); |
43 | 43 | } |
44 | 44 | } |
@@ -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\Validation\Uniqueness\Type; |
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\Validation\Uniqueness\Type; |
11 | 11 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function match($container, $item): bool |
28 | 28 | { |
29 | - return ! \is_iterable($container) && $item instanceof TypeDefinition; |
|
29 | + return !\is_iterable($container) && $item instanceof TypeDefinition; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | \assert($container instanceof TypeDefinition || $container === null); |
41 | 41 | |
42 | - if (! $this->isEmpty($container) && ! $this->isSameType($container, $definition)) { |
|
42 | + if (!$this->isEmpty($container) && !$this->isSameType($container, $definition)) { |
|
43 | 43 | $error = \sprintf(static::REDEFINITION_ERROR, $definition); |
44 | 44 | throw new TypeConflictException($error, $this->getCallStack()); |
45 | 45 | } |
@@ -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\Validation\Uniqueness; |
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\Validation\Uniqueness; |
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\Validation; |
11 | 11 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | protected function getDefaultMatcher(): \Closure |
47 | 47 | { |
48 | - return function (Inheritance\InheritanceValidator $validator, TypeDefinition $a, TypeDefinition $b): bool { |
|
48 | + return function(Inheritance\InheritanceValidator $validator, TypeDefinition $a, TypeDefinition $b): bool { |
|
49 | 49 | return $validator->match($a, $b); |
50 | 50 | }; |
51 | 51 | } |
@@ -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\Validation\Inheritance; |
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\Validation; |
11 | 11 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | protected function getDefaultMatcher(): \Closure |
37 | 37 | { |
38 | - return function (Definitions\DefinitionValidator $validator, Definition $definition): bool { |
|
38 | + return function(Definitions\DefinitionValidator $validator, Definition $definition): bool { |
|
39 | 39 | return $validator->match($definition); |
40 | 40 | }; |
41 | 41 | } |