Test Failed
Push — master ( 08713d...9fa0b4 )
by Kirill
03:13
created
src/Compiler/Builder/Definition/DirectiveBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
             $location = new DirectiveLocation($directive, $name);
74 74
             $location->withOffset($ast->getOffset());
75 75
 
76
-            if (! \in_array($name, $locations, true)) {
76
+            if (!\in_array($name, $locations, true)) {
77 77
                 $error = \sprintf('Invalid directive location %s, only one of {%s} allowed',
78 78
                     $location, \implode(', ', $locations));
79 79
                 throw (new TypeConflictException($error))->throwsIn($directive->getFile(), $ast->getOffset());
Please login to merge, or discard this patch.
src/Compiler/Builder/Invocation/DirectiveBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $directive = new Invocation($parent->getDocument(), $rule->getDirectiveName());
34 34
         $directive->withOffset($rule->getOffset());
35 35
 
36
-        $this->when->resolving(function () use ($rule, $directive): void {
36
+        $this->when->resolving(function() use ($rule, $directive): void {
37 37
             $definition = $this->loadDefinition($directive, $rule);
38 38
 
39 39
             $this->buildArguments($directive, $definition, $rule);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         /** @var DirectiveDefinition $definition */
56 56
         $definition = $directive->getDefinition();
57 57
 
58
-        if (! ($definition instanceof Definition\DirectiveDefinition)) {
58
+        if (!($definition instanceof Definition\DirectiveDefinition)) {
59 59
             $error = '%s should be a Directive, but %s given';
60 60
             throw (new TypeConflictException(\sprintf($error, $directive,
61 61
                 $definition)))->throwsIn($directive->getFile(), $rule->getOffset());
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 continue;
102 102
             }
103 103
 
104
-            if (! $argument->hasDefaultValue()) {
104
+            if (!$argument->hasDefaultValue()) {
105 105
                 $error = 'Missing value for required argument %s of %s';
106 106
                 throw (new TypeConflictException(\sprintf($error, $argument,
107 107
                     $directive)))->throwsIn($directive->getFile(), $directive->getLine(), $directive->getColumn());
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/EnumValueBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $value->withOffset($rule->getOffset());
38 38
         $value->withDescription($rule->getDescription());
39 39
 
40
-        $this->when->runtime(function () use ($rule, $value): void {
40
+        $this->when->runtime(function() use ($rule, $value): void {
41 41
             if ($hint = $rule->getTypeHint()) {
42 42
                 $virtualTypeHint = $this->virtualTypeHint($value, $hint);
43 43
 
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/FieldBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             ]);
52 52
         });
53 53
 
54
-        $this->when->runtime(function () use ($rule, $field): void {
54
+        $this->when->runtime(function() use ($rule, $field): void {
55 55
             foreach ($rule->getDirectives() as $ast) {
56 56
                 $field->withDirective($this->dependent($ast, $field));
57 57
             }
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/InputFieldBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             ]);
45 45
         });
46 46
 
47
-        $this->when->runtime(function () use ($rule, $field): void {
47
+        $this->when->runtime(function() use ($rule, $field): void {
48 48
             if ($default = $rule->getDefaultValue()) {
49 49
                 $field->withDefaultValue($this->valueOf($field, $default));
50 50
             }
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/ArgumentBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
             ]);
45 45
         });
46 46
 
47
-        $this->when->runtime(function () use ($rule, $argument): void {
47
+        $this->when->runtime(function() use ($rule, $argument): void {
48 48
             if ($default = $rule->getDefaultValue()) {
49 49
                 $argument->withDefaultValue($this->valueOf($argument, $default));
50
-            } elseif (! $argument->isNonNull()) {
50
+            } elseif (!$argument->isNonNull()) {
51 51
                 $argument->withDefaultValue(null);
52 52
             }
53 53
 
Please login to merge, or discard this patch.