Completed
Push — master ( a4fea1...08b170 )
by Kirill
67:37 queued 27:28
created
src/SDL/Reflection/Validation/Definitions/ArgumentValidator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $definition = $type->getTypeDefinition();
39 39
 
40
-        if (! ($definition instanceof Inputable)) {
40
+        if (!($definition instanceof Inputable)) {
41 41
             $error = \sprintf('%s must be type of Scalar, Enum or Input', $type);
42 42
             throw new TypeConflictException($error, $this->getCallStack());
43 43
         }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     private function validateArrayDefaultValue(ArgumentDefinition $type, array $defaults): void
98 98
     {
99
-        if (! $type->isList()) {
99
+        if (!$type->isList()) {
100 100
             $error = \sprintf('%s can not be initialized by List %s',
101 101
                 $type, $this->valueToString($defaults)
102 102
             );
@@ -126,12 +126,12 @@  discard block
 block discarded – undo
126 126
      */
127 127
     private function validateDefaultListType(ArgumentDefinition $type, Inputable $definition, array $values): void
128 128
     {
129
-        $isNullable = ! $type->isListOfNonNulls();
129
+        $isNullable = !$type->isListOfNonNulls();
130 130
 
131 131
         foreach ($values as $value) {
132 132
             $isNull = $isNullable && $value === null;
133 133
 
134
-            if (! $isNull && ! $definition->isCompatible($value)) {
134
+            if (!$isNull && !$definition->isCompatible($value)) {
135 135
                 $error = \sprintf('%s defined by %s can not be initialized by %s',
136 136
                     $type,
137 137
                     $this->typeIndicatorToString($type),
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     private function validateDefaultType(ArgumentDefinition $type, Inputable $definition, $value): void
154 154
     {
155
-        if (! $definition->isCompatible($value)) {
155
+        if (!$definition->isCompatible($value)) {
156 156
             $error = \sprintf('%s contain non compatible default value %s', $type, $this->valueToString($value));
157 157
             throw new TypeConflictException($error, $this->getCallStack());
158 158
         }
Please login to merge, or discard this patch.
src/SDL/Reflection/Validation/Definitions/ObjectValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
             $exists = $object->hasField($field->getName());
84 84
 
85
-            if (! $exists) {
85
+            if (!$exists) {
86 86
                 $this->throwFieldNotDefined($interface, $object, $field);
87 87
             }
88 88
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $this->getCallStack()->push($argument);
138 138
 
139 139
             $exists = $object->hasArgument($argument->getName());
140
-            if (! $exists) {
140
+            if (!$exists) {
141 141
                 $this->throwArgumentNotDefined($interface, $object, $argument);
142 142
             }
143 143
 
Please login to merge, or discard this patch.
src/SDL/Reflection/Validation/Uniqueness/Scalar/UniqueValueValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 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/SDL/Reflection/Validation/Uniqueness/Type/UniqueDefinitionValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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/SDL/Reflection/Validation/Uniqueness.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     protected function getDefaultMatcher(): \Closure
33 33
     {
34
-        return function (Uniqueness\UniquenessValidator $validator, $container, $item): bool {
34
+        return function(Uniqueness\UniquenessValidator $validator, $container, $item): bool {
35 35
             return $validator->match($container, $item);
36 36
         };
37 37
     }
Please login to merge, or discard this patch.
src/SDL/Reflection/Validation/Inheritance/InputValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         \assert($parent->getTypeDefinition() instanceof InputDefinition);
42 42
 
43
-        if (! $this->isEqualType($child, $parent)) {
43
+        if (!$this->isEqualType($child, $parent)) {
44 44
             $this->throwIncompatibleTypes($child, $parent);
45 45
         }
46 46
     }
Please login to merge, or discard this patch.
src/SDL/Reflection/Validation/Inheritance/UnionValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      */
91 91
     private function validateUnionContainsChild(TypeDefinition $child, TypeDefinition $parent): void
92 92
     {
93
-        if (! $this->isUnionContainsChild($child, $parent)) {
93
+        if (!$this->isUnionContainsChild($child, $parent)) {
94 94
             $this->throwIncompatibleTypes($child, $parent);
95 95
         }
96 96
     }
Please login to merge, or discard this patch.
src/SDL/Reflection/Validation/Inheritance/ScalarValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $parentType = $parent->getTypeDefinition();
71 71
 
72
-        if (! ($child->getTypeDefinition() instanceof $parentType)) {
72
+        if (!($child->getTypeDefinition() instanceof $parentType)) {
73 73
             $this->throwScalarIncompatibilityException($child, $parent);
74 74
         }
75 75
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $childType = $child->getTypeDefinition();
86 86
 
87
-        if (! ($parent->getTypeDefinition() instanceof $childType)) {
87
+        if (!($parent->getTypeDefinition() instanceof $childType)) {
88 88
             $this->throwScalarIncompatibilityException($child, $parent);
89 89
         }
90 90
     }
Please login to merge, or discard this patch.
src/SDL/Reflection/Validation/Inheritance/EnumValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         \assert($parent->getTypeDefinition() instanceof EnumDefinition);
42 42
 
43
-        if (! $this->isEqualType($child, $parent)) {
43
+        if (!$this->isEqualType($child, $parent)) {
44 44
             $this->throwIncompatibleTypes($child, $parent);
45 45
         }
46 46
     }
Please login to merge, or discard this patch.