Test Setup Failed
Push — master ( 1595cb...1df194 )
by Kirill
02:11
created
src/Spec/Constraint/Variables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public static function assert(NodeInterface $node, SpecificationInterface $spec): void
30 30
     {
31
-        if (! $node instanceof VariableValueNode) {
31
+        if (!$node instanceof VariableValueNode) {
32 32
             return;
33 33
         }
34 34
 
Please login to merge, or discard this patch.
src/Frontend/Ast/Definition/Type/UnionMemberNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
      */
41 41
     public static function create(array $children): array
42 42
     {
43
-        return \array_map(fn (NamedTypeNode $type): self => new static($type), $children);
43
+        return \array_map(fn(NamedTypeNode $type): self => new static($type), $children);
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Highlight/Highlight.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
     {
139 139
         [$stream, $i, $line] = [$file->getStream(), 0, ''];
140 140
 
141
-        while (++$i <= $position->getLine() && ! \feof($stream)) {
141
+        while (++$i <= $position->getLine() && !\feof($stream)) {
142 142
             $line = \is_string($current = \fgets($stream)) ? $current : $this->eoi;
143 143
         }
144 144
 
Please login to merge, or discard this patch.
src/Frontend/grammar.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -779,49 +779,49 @@  discard block
 block discarded – undo
779 779
      *
780 780
      */
781 781
     'reducers' => [
782
-        2 => static function ($children) {
782
+        2 => static function($children) {
783 783
             return Ast\TypeName::create($children);
784 784
         },
785
-        5 => static function ($children) {
785
+        5 => static function($children) {
786 786
             return Ast\TypeName::create($children);
787 787
         },
788
-        1 => static function ($children) {
788
+        1 => static function($children) {
789 789
             return Ast\Identifier::create($children);
790 790
         },
791
-        46 => static function ($children) {
791
+        46 => static function($children) {
792 792
             return Ast\Description::create($children ?: null);
793 793
         },
794
-        48 => static function ($children) {
794
+        48 => static function($children) {
795 795
             return Ast\Type\ListTypeNode::create($children);
796 796
         },
797
-        47 => static function ($children) {
797
+        47 => static function($children) {
798 798
             return Ast\Type\NonNullTypeNode::create($children);
799 799
         },
800
-        42 => static function ($children) {
800
+        42 => static function($children) {
801 801
             return Ast\Type\NamedTypeNode::create($children);
802 802
         },
803
-        63 => static function ($children) {
803
+        63 => static function($children) {
804 804
             return Ast\Type\NamedDirectiveNode::create($children);
805 805
         },
806
-        66 => static function ($children) {
806
+        66 => static function($children) {
807 807
             return Value\BooleanValue::parse($children->getName() === 'T_TRUE');
808 808
         },
809
-        67 => static function ($children) {
809
+        67 => static function($children) {
810 810
             return Value\EnumValue::parse($children[0]->value);
811 811
         },
812
-        70 => static function ($children) {
812
+        70 => static function($children) {
813 813
             return Value\FloatValue::parse($children->getValue());
814 814
         },
815
-        71 => static function ($children) {
815
+        71 => static function($children) {
816 816
             return Value\IntValue::parse($children->getValue());
817 817
         },
818
-        79 => static function ($children) {
818
+        79 => static function($children) {
819 819
             return Value\ListValue::parse($children);
820 820
         },
821
-        80 => static function ($children) {
821
+        80 => static function($children) {
822 822
             return Value\NullValue::parse(null);
823 823
         },
824
-        88 => static function ($children) {
824
+        88 => static function($children) {
825 825
             $result = [];
826 826
 
827 827
             for ($i = 0, $count = \count((array)$children); $i < $count; $i += 2) {
@@ -830,91 +830,91 @@  discard block
 block discarded – undo
830 830
 
831 831
             return Value\InputObjectValue::parse($result);
832 832
         },
833
-        89 => static function ($children) {
833
+        89 => static function($children) {
834 834
             return Value\StringValue::parse(\substr($children->getValue(), 3, -3));
835 835
         },
836
-        90 => static function ($children) {
836
+        90 => static function($children) {
837 837
             return Value\StringValue::parse(\substr($children->getValue(), 1, -1));
838 838
         },
839
-        91 => static function ($children) {
839
+        91 => static function($children) {
840 840
             return Ast\Value\VariableValueNode::parse($children[0]->getValue());
841 841
         },
842
-        95 => static function ($children) {
842
+        95 => static function($children) {
843 843
             return Ast\Extension\SchemaExtensionNode::create($children);
844 844
         },
845
-        98 => static function ($children) {
845
+        98 => static function($children) {
846 846
             return Ast\Extension\Type\EnumTypeExtensionNode::create($children);
847 847
         },
848
-        101 => static function ($children) {
848
+        101 => static function($children) {
849 849
             return Ast\Extension\Type\InputObjectTypeExtensionNode::create($children);
850 850
         },
851
-        104 => static function ($children) {
851
+        104 => static function($children) {
852 852
             return Ast\Extension\Type\InterfaceTypeExtensionNode::create($children);
853 853
         },
854
-        107 => static function ($children) {
854
+        107 => static function($children) {
855 855
             return Ast\Extension\Type\ObjectTypeExtensionNode::create($children);
856 856
         },
857
-        110 => static function ($children) {
857
+        110 => static function($children) {
858 858
             return Ast\Extension\Type\ScalarTypeExtensionNode::create($children);
859 859
         },
860
-        113 => static function ($children) {
860
+        113 => static function($children) {
861 861
             return Ast\Extension\Type\UnionTypeExtensionNode::create($children);
862 862
         },
863
-        116 => static function ($children) {
863
+        116 => static function($children) {
864 864
             return Ast\Definition\SchemaDefinitionNode::create($children);
865 865
         },
866
-        123 => static function ($children) {
866
+        123 => static function($children) {
867 867
             return Ast\Definition\OperationTypeDefinitionNode::create($children);
868 868
         },
869
-        137 => static function ($children) {
869
+        137 => static function($children) {
870 870
             return Ast\Definition\DirectiveDefinitionNode::create($children);
871 871
         },
872
-        139 => static function ($children) {
872
+        139 => static function($children) {
873 873
             return Ast\Definition\DirectiveDefinitionIsRepeatableNode::create();
874 874
         },
875
-        148 => static function ($children) {
875
+        148 => static function($children) {
876 876
             return Ast\Definition\DirectiveDefinitionLocationNode::create($children);
877 877
         },
878
-        144 => static function ($children) {
878
+        144 => static function($children) {
879 879
             return Ast\Definition\ArgumentDefinitionNode::create($children);
880 880
         },
881
-        166 => static function ($children) {
881
+        166 => static function($children) {
882 882
             return Ast\Definition\EnumValueDefinitionNode::create($children);
883 883
         },
884
-        167 => static function ($children) {
884
+        167 => static function($children) {
885 885
             return Ast\Definition\FieldDefinitionNode::create($children);
886 886
         },
887
-        184 => static function ($children) {
887
+        184 => static function($children) {
888 888
             return Ast\Definition\InputFieldDefinitionNode::create($children);
889 889
         },
890
-        187 => static function ($children) {
890
+        187 => static function($children) {
891 891
             return Ast\Definition\Type\EnumTypeDefinitionNode::create($children);
892 892
         },
893
-        196 => static function ($children) {
893
+        196 => static function($children) {
894 894
             return Ast\Definition\Type\InputObjectTypeDefinitionNode::create($children);
895 895
         },
896
-        206 => static function ($children) {
896
+        206 => static function($children) {
897 897
             return Ast\Definition\Type\InterfaceTypeDefinitionNode::create($children);
898 898
         },
899
-        210 => static function ($children) {
899
+        210 => static function($children) {
900 900
             return Ast\Definition\Type\ImplementedInterfaceNode::create($children);
901 901
         },
902
-        224 => static function ($children) {
902
+        224 => static function($children) {
903 903
             return Ast\Definition\Type\ObjectTypeDefinitionNode::create($children);
904 904
         },
905
-        234 => static function ($children) {
905
+        234 => static function($children) {
906 906
             return Ast\Definition\Type\ScalarTypeDefinitionNode::create($children);
907 907
         },
908
-        238 => static function ($children) {
908
+        238 => static function($children) {
909 909
             return Ast\Definition\Type\UnionTypeDefinitionNode::create($children);
910 910
         },
911
-        244 => static function ($children) {
911
+        244 => static function($children) {
912 912
             return Ast\Definition\Type\UnionMemberNode::create($children);
913 913
         },
914
-        120 => static function ($children) {
914
+        120 => static function($children) {
915 915
             return Ast\Executable\DirectiveNode::create($children);
916 916
         },
917
-        256 => static function ($children) {
917
+        256 => static function($children) {
918 918
             return Ast\Executable\ArgumentNode::create($children);
919 919
         }
920 920
     ],
Please login to merge, or discard this patch.
src/Frontend/Parser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
         try {
96 96
             return parent::parse($source);
97
-        } catch (ParserRuntimeException|LexerRuntimeExceptionInterface $e) {
97
+        } catch (ParserRuntimeException | LexerRuntimeExceptionInterface $e) {
98 98
             $token = $e->getToken();
99 99
 
100 100
             throw SyntaxErrorException::fromToken($e->getMessage(), $source, $token);
Please login to merge, or discard this patch.
src/Backend/Linker/LinkerVisitor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             //
106 106
             case $node instanceof NamedTypeNode:
107 107
             case $node instanceof TypeExtensionNode:
108
-                if (! \in_array($node->name->value, $this->genericArguments, true)) {
108
+                if (!\in_array($node->name->value, $this->genericArguments, true)) {
109 109
                     $this->assertTypeExists($node->name);
110 110
                 }
111 111
 
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
      */
127 127
     private function assertTypeExists(Identifier $name): void
128 128
     {
129
-        if (! $this->context->hasType($name->value)) {
130
-            $this->loadOr($name->value, function () use ($name): void {
129
+        if (!$this->context->hasType($name->value)) {
130
+            $this->loadOr($name->value, function() use ($name): void {
131 131
                 throw $this->typeNotFound($name);
132 132
             });
133 133
         }
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
     {
186 186
         $name = $directive->name->name->value;
187 187
 
188
-        if (! $this->context->hasDirective($name)) {
189
-            $this->loadOr('@' . $name, function () use ($directive): void {
188
+        if (!$this->context->hasDirective($name)) {
189
+            $this->loadOr('@' . $name, function() use ($directive): void {
190 190
                 throw $this->directiveNotFound($directive);
191 191
             });
192 192
         }
Please login to merge, or discard this patch.