Completed
Push — master ( cdd6df...71d8db )
by Kirill
45:29
created
src/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/Reflection/Validation/Inheritance/ObjectValidator.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 ObjectDefinition);
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/Reflection/Validation/Inheritance/InterfaceValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         /** @var ObjectDefinition $object */
64 64
         $object = $child->getTypeDefinition();
65 65
 
66
-        if (! $object->hasInterface($parent->getTypeDefinition()->getName())) {
66
+        if (!$object->hasInterface($parent->getTypeDefinition()->getName())) {
67 67
             $error = \vsprintf('%s in %s definition must be instance of %s', [
68 68
                 $object, $child,
69 69
                 $parent->getTypeDefinition(),
Please login to merge, or discard this patch.
src/Reflection/Validation/Inheritance/WrapperValidator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     private function validateListDirectRedefinition(AllowsTypeIndication $child, AllowsTypeIndication $parent): void
89 89
     {
90
-        $isBrokenDirectRedefinition = $parent->isList() && ! $child->isList();
90
+        $isBrokenDirectRedefinition = $parent->isList() && !$child->isList();
91 91
 
92 92
         if ($isBrokenDirectRedefinition) {
93 93
             $error = \sprintf('The %s cannot be overridden by non-list, but %s given', $parent, $child);
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     private function validateListInverseRedefinition(AllowsTypeIndication $child, AllowsTypeIndication $parent): void
117 117
     {
118
-        $isBrokenInverseRedefinition = ! $parent->isList() && $child->isList();
118
+        $isBrokenInverseRedefinition = !$parent->isList() && $child->isList();
119 119
 
120 120
         if ($isBrokenInverseRedefinition) {
121 121
             $error = \sprintf('The %s cannot be overridden by list, but %s given', $parent, $child);
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
      */
132 132
     private function validatePostconditionalInheritance(AllowsTypeIndication $child, AllowsTypeIndication $parent): void
133 133
     {
134
-        $invalidWrapperInheritance = $parent->isNonNull() && ! $child->isNonNull();
134
+        $invalidWrapperInheritance = $parent->isNonNull() && !$child->isNonNull();
135 135
 
136 136
         $invalidListWrapperInheritance = $this->isSameWrapperList($child, $parent) &&
137
-            $parent->isListOfNonNulls() && ! $child->isListOfNonNulls();
137
+            $parent->isListOfNonNulls() && !$child->isListOfNonNulls();
138 138
 
139 139
         if ($invalidWrapperInheritance || $invalidListWrapperInheritance) {
140 140
             $error = '%s postcondition of %s can not be weakened by %s of %s';
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
      */
153 153
     private function validatePreconditionalInheritance(AllowsTypeIndication $child, AllowsTypeIndication $parent): void
154 154
     {
155
-        $invalidWrapperInheritance = ! $parent->isNonNull() && $child->isNonNull();
155
+        $invalidWrapperInheritance = !$parent->isNonNull() && $child->isNonNull();
156 156
 
157 157
         $invalidListWrapperInheritance = $this->isSameWrapperList($child, $parent) &&
158
-            ! $parent->isListOfNonNulls() && $child->isListOfNonNulls();
158
+            !$parent->isListOfNonNulls() && $child->isListOfNonNulls();
159 159
 
160 160
         if ($invalidWrapperInheritance || $invalidListWrapperInheritance) {
161 161
             $error = '%s precondition of %s can not be strengthened by %s of %s';
Please login to merge, or discard this patch.
src/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.
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.
src/Reflection/Coercion/PassedArgumentsCoercion.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     private function inferenceDefaultArguments(HasArguments $container, HasPassedArguments $usage): void
50 50
     {
51 51
         foreach ($container->getArguments() as $argument) {
52
-            if ($argument->hasDefaultValue() && ! $usage->hasPassedArgument($argument->getName())) {
52
+            if ($argument->hasDefaultValue() && !$usage->hasPassedArgument($argument->getName())) {
53 53
                 $this->set($usage, $argument->getName(), $argument->getDefaultValue());
54 54
             }
55 55
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     private function set(HasPassedArguments $usage, string $key, $value): void
64 64
     {
65
-        $invocation = function (string $key, $value): void {
65
+        $invocation = function(string $key, $value): void {
66 66
             /** @var BaseInputInvocation $this */
67 67
             $this->arguments[$key] = $value;
68 68
         };
Please login to merge, or discard this patch.
src/Reflection/Coercion/DeprecationCoercion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function apply(TypeDefinition $directive): void
35 35
     {
36
-        $applier = function () use ($directive): void {
36
+        $applier = function() use ($directive): void {
37 37
             $this->deprecationReason = $directive->getPassedArgument(Deprecation::REASON_ARGUMENT);
38 38
         };
39 39
 
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     {
147 147
         $this->load($document);
148 148
 
149
-        $build = function (Definition $definition): void {
149
+        $build = function(Definition $definition): void {
150 150
             $this->stack->push($definition);
151 151
 
152 152
             if ($definition instanceof Compilable) {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $this->typeCoercion->apply($definition);
158 158
             }
159 159
 
160
-            if (! ($definition instanceof StandardType)) {
160
+            if (!($definition instanceof StandardType)) {
161 161
                 $this->typeValidator->group(Definitions::class)->validate($definition);
162 162
             }
163 163
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     private function onCompile(): \Closure
230 230
     {
231
-        return function (Readable $readable): Document {
231
+        return function(Readable $readable): Document {
232 232
             $ast = $this->parser->parse($readable);
233 233
 
234 234
             return $this->complete(new DocumentBuilder($ast, $readable, $this));
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     public function getPersister(): Storage
269 269
     {
270 270
         \trigger_error(
271
-            __METHOD__ . ' was renamed to getStorage and will be deleted on next release',
271
+            __METHOD__.' was renamed to getStorage and will be deleted on next release',
272 272
             \E_USER_DEPRECATED
273 273
         );
274 274
 
Please login to merge, or discard this patch.