Passed
Branch master (d28503)
by Kirill
32:55
created
src/Reflection/Validation/Base/BaseValidator.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\Base;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Base/ValidatorsFactory.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\Base;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Validator.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
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function add(string $factory, string $group = null): Factory
100 100
     {
101
-        if (! \is_subclass_of($factory, Factory::class)) {
101
+        if (!\is_subclass_of($factory, Factory::class)) {
102 102
             $error = \sprintf('%s must be instance of %s', $factory, Factory::class);
103 103
             throw new \InvalidArgumentException($error);
104 104
         }
Please login to merge, or discard this patch.
src/Reflection/Validation/Definitions/ObjectValidator.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\Definitions;
11 11
 
@@ -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/Reflection/Validation/Definitions/EnumValidator.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\Definitions;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Definitions/ArgumentValidator.php 1 patch
Spacing   +6 added lines, -6 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\Definitions;
11 11
 
@@ -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/Reflection/Validation/Definitions/DirectiveInvocationValidator.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\Definitions;
11 11
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         /** @var DirectiveDefinition $definition */
52 52
         $definition = $directive->getTypeDefinition();
53 53
 
54
-        if (! $definition->isAllowedFor($directive->getParent())) {
54
+        if (!$definition->isAllowedFor($directive->getParent())) {
55 55
             $error = \vsprintf('Trying to define directive %s on %s, but only %s locations allowed.', [
56 56
                 $directive,
57 57
                 $directive->getParent(),
Please login to merge, or discard this patch.
src/Reflection/Validation/Definitions/SchemaValidator.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\Definitions;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Validation/Definitions/BaseDefinitionValidator.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\Definitions;
11 11
 
Please login to merge, or discard this patch.