Passed
Branch master (d28503)
by Kirill
32:55
created
src/Reflection/Validation/Uniqueness/TypeUniquenessValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Uniqueness/Scalar/UniqueValueValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Reflection/Validation/Uniqueness/Type/UniqueCollectionValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Uniqueness/Type/UniqueDefinitionValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Reflection/Validation/Uniqueness/ScalarUniquenessValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Uniqueness/UniquenessValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Inheritance.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Reflection/Validation/Inheritance/InheritanceValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Definitions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.