Completed
Push — master ( 71d8db...83e409 )
by Kirill
43:48
created
src/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/Reflection/Validation/Definitions/DirectiveDefinitionValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         foreach ($locations as $location) {
42 42
             $isValidLocation = $this->isSDLLocation($location) || $this->isQueryLocation($location);
43 43
 
44
-            if (! $isValidLocation) {
44
+            if (!$isValidLocation) {
45 45
                 $error = \vsprintf('Trying to define directive %s, but %s location is invalid', [
46 46
                     $definition,
47 47
                     $location,
Please login to merge, or discard this patch.
src/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/Reflection/Validation/Inheritance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 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/Definitions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 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.
src/Reflection/Validation/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 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/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/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/Reflection/Coercion/ArgumentCoercion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.