Passed
Pull Request — master (#190)
by Sebastian
03:03
created
src/Language/Node/ListTypeNode.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     public function toArray(): array
19 19
     {
20 20
         return [
21
-          'kind' => $this->kind,
22
-          'type' => $this->getTypeAsArray(),
23
-          'loc' => $this->getLocationAsArray(),
21
+            'kind' => $this->kind,
22
+            'type' => $this->getTypeAsArray(),
23
+            'loc' => $this->getLocationAsArray(),
24 24
         ];
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Language/Node/EnumValueDefinitionNode.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
     public function toArray(): array
21 21
     {
22 22
         return [
23
-          'kind' => $this->kind,
24
-          'description' => $this->getDescriptionAsArray(),
25
-          'name' => $this->getNameAsArray(),
26
-          'directives' => $this->getDirectivesAsArray(),
27
-          'loc' => $this->getLocationAsArray(),
23
+            'kind' => $this->kind,
24
+            'description' => $this->getDescriptionAsArray(),
25
+            'name' => $this->getNameAsArray(),
26
+            'directives' => $this->getDirectivesAsArray(),
27
+            'loc' => $this->getLocationAsArray(),
28 28
         ];
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Language/Node/UnionTypeExtensionNode.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
     public function toArray(): array
21 21
     {
22 22
         return [
23
-          'kind' => $this->kind,
24
-          'name' => $this->getNameAsArray(),
25
-          'directives' => $this->getDirectivesAsArray(),
26
-          'types' => $this->getTypesAsArray(),
27
-          'loc' => $this->getLocationAsArray(),
23
+            'kind' => $this->kind,
24
+            'name' => $this->getNameAsArray(),
25
+            'directives' => $this->getDirectivesAsArray(),
26
+            'types' => $this->getTypesAsArray(),
27
+            'loc' => $this->getLocationAsArray(),
28 28
         ];
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Language/Node/InputObjectTypeDefinitionNode.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 namespace Digia\GraphQL\Language\Node;
4 4
 
5 5
 class InputObjectTypeDefinitionNode extends AbstractNode implements TypeDefinitionNodeInterface,
6
-  DirectivesAwareInterface, NameAwareInterface
6
+    DirectivesAwareInterface, NameAwareInterface
7 7
 {
8 8
 
9 9
     use DescriptionTrait;
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
     public function toArray(): array
23 23
     {
24 24
         return [
25
-          'kind' => $this->kind,
26
-          'description' => $this->getDescriptionAsArray(),
27
-          'name' => $this->getNameAsArray(),
28
-          'directives' => $this->getDirectivesAsArray(),
29
-          'fields' => $this->getFieldsAsArray(),
30
-          'loc' => $this->getLocationAsArray(),
25
+            'kind' => $this->kind,
26
+            'description' => $this->getDescriptionAsArray(),
27
+            'name' => $this->getNameAsArray(),
28
+            'directives' => $this->getDirectivesAsArray(),
29
+            'fields' => $this->getFieldsAsArray(),
30
+            'loc' => $this->getLocationAsArray(),
31 31
         ];
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Language/Node/FloatValueNode.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     public function toArray(): array
19 19
     {
20 20
         return [
21
-          'kind' => $this->kind,
22
-          'loc' => $this->getLocationAsArray(),
23
-          'value' => $this->value,
21
+            'kind' => $this->kind,
22
+            'loc' => $this->getLocationAsArray(),
23
+            'value' => $this->value,
24 24
         ];
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Language/ASTBuilder.php 2 patches
Indentation   +224 added lines, -224 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
         } while (!$this->skip($lexer, TokenKindEnum::EOF));
31 31
 
32 32
         return [
33
-          'kind' => NodeKindEnum::DOCUMENT,
34
-          'definitions' => $definitions,
35
-          'loc' => $this->buildLocation($lexer, $start),
33
+            'kind' => NodeKindEnum::DOCUMENT,
34
+            'definitions' => $definitions,
35
+            'loc' => $this->buildLocation($lexer, $start),
36 36
         ];
37 37
     }
38 38
 
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
 
113 113
         if ($this->peek($lexer, TokenKindEnum::BRACE_L)) {
114 114
             return [
115
-              'kind' => NodeKindEnum::OPERATION_DEFINITION,
116
-              'operation' => 'query',
117
-              'name' => null,
118
-              'variableDefinitions' => [],
119
-              'directives' => [],
120
-              'selectionSet' => $this->buildSelectionSet($lexer),
121
-              'loc' => $this->buildLocation($lexer, $start),
115
+                'kind' => NodeKindEnum::OPERATION_DEFINITION,
116
+                'operation' => 'query',
117
+                'name' => null,
118
+                'variableDefinitions' => [],
119
+                'directives' => [],
120
+                'selectionSet' => $this->buildSelectionSet($lexer),
121
+                'loc' => $this->buildLocation($lexer, $start),
122 122
             ];
123 123
         }
124 124
 
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         return [
132
-          'kind' => NodeKindEnum::OPERATION_DEFINITION,
133
-          'operation' => $operation,
134
-          'name' => $name ?? null,
135
-          'variableDefinitions' => $this->buildVariableDefinitions($lexer),
136
-          'directives' => $this->buildDirectives($lexer),
137
-          'selectionSet' => $this->buildSelectionSet($lexer),
138
-          'loc' => $this->buildLocation($lexer, $start),
132
+            'kind' => NodeKindEnum::OPERATION_DEFINITION,
133
+            'operation' => $operation,
134
+            'name' => $name ?? null,
135
+            'variableDefinitions' => $this->buildVariableDefinitions($lexer),
136
+            'directives' => $this->buildDirectives($lexer),
137
+            'selectionSet' => $this->buildSelectionSet($lexer),
138
+            'loc' => $this->buildLocation($lexer, $start),
139 139
         ];
140 140
     }
141 141
 
@@ -150,14 +150,14 @@  discard block
 block discarded – undo
150 150
         $start = $lexer->getToken();
151 151
 
152 152
         return [
153
-          'kind' => NodeKindEnum::SELECTION_SET,
154
-          'selections' => $this->many(
153
+            'kind' => NodeKindEnum::SELECTION_SET,
154
+            'selections' => $this->many(
155 155
             $lexer,
156 156
             TokenKindEnum::BRACE_L,
157 157
             [$this, 'buildSelection'],
158 158
             TokenKindEnum::BRACE_R
159
-          ),
160
-          'loc' => $this->buildLocation($lexer, $start),
159
+            ),
160
+            'loc' => $this->buildLocation($lexer, $start),
161 161
         ];
162 162
     }
163 163
 
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
         $token = $this->expect($lexer, TokenKindEnum::NAME);
201 201
 
202 202
         return [
203
-          'kind' => NodeKindEnum::NAME,
204
-          'value' => $token->getValue(),
205
-          'loc' => $this->buildLocation($lexer, $token),
203
+            'kind' => NodeKindEnum::NAME,
204
+            'value' => $token->getValue(),
205
+            'loc' => $this->buildLocation($lexer, $token),
206 206
         ];
207 207
     }
208 208
 
@@ -228,8 +228,8 @@  discard block
 block discarded – undo
228 228
      * @throws SyntaxErrorException
229 229
      */
230 230
     protected function buildDirectives(
231
-      LexerInterface $lexer,
232
-      bool $isConst = false
231
+        LexerInterface $lexer,
232
+        bool $isConst = false
233 233
     ): ?array
234 234
     {
235 235
         $directives = [];
@@ -249,18 +249,18 @@  discard block
 block discarded – undo
249 249
      * @throws SyntaxErrorException
250 250
      */
251 251
     protected function buildDirective(
252
-      LexerInterface $lexer,
253
-      bool $isConst
252
+        LexerInterface $lexer,
253
+        bool $isConst
254 254
     ): array {
255 255
         $start = $lexer->getToken();
256 256
 
257 257
         $this->expect($lexer, TokenKindEnum::AT);
258 258
 
259 259
         return [
260
-          'kind' => NodeKindEnum::DIRECTIVE,
261
-          'name' => $this->buildName($lexer),
262
-          'arguments' => $this->buildArguments($lexer, $isConst),
263
-          'loc' => $this->buildLocation($lexer, $start),
260
+            'kind' => NodeKindEnum::DIRECTIVE,
261
+            'name' => $this->buildName($lexer),
262
+            'arguments' => $this->buildArguments($lexer, $isConst),
263
+            'loc' => $this->buildLocation($lexer, $start),
264 264
         ];
265 265
     }
266 266
 
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
      * @throws SyntaxErrorException
273 273
      */
274 274
     protected function buildArguments(
275
-      LexerInterface $lexer,
276
-      bool $isConst = false
275
+        LexerInterface $lexer,
276
+        bool $isConst = false
277 277
     ): ?array
278 278
     {
279 279
         return $this->peek($lexer, TokenKindEnum::PAREN_L)
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
             TokenKindEnum::PAREN_L,
283 283
             [$this, $isConst ? 'buildConstArgument' : 'buildArgument'],
284 284
             TokenKindEnum::PAREN_R
285
-          )
285
+            )
286 286
           : [];
287 287
     }
288 288
 
@@ -304,13 +304,13 @@  discard block
 block discarded – undo
304 304
         };
305 305
 
306 306
         return [
307
-          'kind' => NodeKindEnum::FRAGMENT_DEFINITION,
308
-          'name' => $this->buildFragmentName($lexer),
309
-          'variableDefinitions' => $this->buildVariableDefinitions($lexer),
310
-          'typeCondition' => $buildTypeCondition($lexer),
311
-          'directives' => $this->buildDirectives($lexer),
312
-          'selectionSet' => $this->buildSelectionSet($lexer),
313
-          'loc' => $this->buildLocation($lexer, $start),
307
+            'kind' => NodeKindEnum::FRAGMENT_DEFINITION,
308
+            'name' => $this->buildFragmentName($lexer),
309
+            'variableDefinitions' => $this->buildVariableDefinitions($lexer),
310
+            'typeCondition' => $buildTypeCondition($lexer),
311
+            'directives' => $this->buildDirectives($lexer),
312
+            'selectionSet' => $this->buildSelectionSet($lexer),
313
+            'loc' => $this->buildLocation($lexer, $start),
314 314
         ];
315 315
     }
316 316
 
@@ -325,9 +325,9 @@  discard block
 block discarded – undo
325 325
         $start = $lexer->getToken();
326 326
 
327 327
         return [
328
-          'kind' => NodeKindEnum::NAMED_TYPE,
329
-          'name' => $this->buildName($lexer),
330
-          'loc' => $this->buildLocation($lexer, $start),
328
+            'kind' => NodeKindEnum::NAMED_TYPE,
329
+            'name' => $this->buildName($lexer),
330
+            'loc' => $this->buildLocation($lexer, $start),
331 331
         ];
332 332
     }
333 333
 
@@ -397,15 +397,15 @@  discard block
 block discarded – undo
397 397
         $this->expectKeyword($lexer, KeywordEnum::SCHEMA);
398 398
 
399 399
         return [
400
-          'kind' => NodeKindEnum::SCHEMA_DEFINITION,
401
-          'directives' => $this->buildDirectives($lexer),
402
-          'operationTypes' => $this->many(
400
+            'kind' => NodeKindEnum::SCHEMA_DEFINITION,
401
+            'directives' => $this->buildDirectives($lexer),
402
+            'operationTypes' => $this->many(
403 403
             $lexer,
404 404
             TokenKindEnum::BRACE_L,
405 405
             [$this, 'buildOperationTypeDefinition'],
406 406
             TokenKindEnum::BRACE_R
407
-          ),
408
-          'loc' => $this->buildLocation($lexer, $start),
407
+            ),
408
+            'loc' => $this->buildLocation($lexer, $start),
409 409
         ];
410 410
     }
411 411
 
@@ -424,11 +424,11 @@  discard block
 block discarded – undo
424 424
         $this->expectKeyword($lexer, KeywordEnum::SCALAR);
425 425
 
426 426
         return [
427
-          'kind' => NodeKindEnum::SCALAR_TYPE_DEFINITION,
428
-          'description' => $description,
429
-          'name' => $this->buildName($lexer),
430
-          'directives' => $this->buildDirectives($lexer),
431
-          'loc' => $this->buildLocation($lexer, $start),
427
+            'kind' => NodeKindEnum::SCALAR_TYPE_DEFINITION,
428
+            'description' => $description,
429
+            'name' => $this->buildName($lexer),
430
+            'directives' => $this->buildDirectives($lexer),
431
+            'loc' => $this->buildLocation($lexer, $start),
432 432
         ];
433 433
     }
434 434
 
@@ -449,10 +449,10 @@  discard block
 block discarded – undo
449 449
         $lexer->advance();
450 450
 
451 451
         return [
452
-          'kind' => NodeKindEnum::STRING,
453
-          'value' => $token->getValue(),
454
-          'block' => $token->getKind() === TokenKindEnum::BLOCK_STRING,
455
-          'loc' => $this->buildLocation($lexer, $token),
452
+            'kind' => NodeKindEnum::STRING,
453
+            'value' => $token->getValue(),
454
+            'block' => $token->getKind() === TokenKindEnum::BLOCK_STRING,
455
+            'loc' => $this->buildLocation($lexer, $token),
456 456
         ];
457 457
     }
458 458
 
@@ -471,13 +471,13 @@  discard block
 block discarded – undo
471 471
         $this->expectKeyword($lexer, KeywordEnum::TYPE);
472 472
 
473 473
         return [
474
-          'kind' => NodeKindEnum::OBJECT_TYPE_DEFINITION,
475
-          'description' => $description,
476
-          'name' => $this->buildName($lexer),
477
-          'interfaces' => $this->buildImplementsInterfaces($lexer),
478
-          'directives' => $this->buildDirectives($lexer),
479
-          'fields' => $this->buildFieldsDefinition($lexer),
480
-          'loc' => $this->buildLocation($lexer, $start),
474
+            'kind' => NodeKindEnum::OBJECT_TYPE_DEFINITION,
475
+            'description' => $description,
476
+            'name' => $this->buildName($lexer),
477
+            'interfaces' => $this->buildImplementsInterfaces($lexer),
478
+            'directives' => $this->buildDirectives($lexer),
479
+            'fields' => $this->buildFieldsDefinition($lexer),
480
+            'loc' => $this->buildLocation($lexer, $start),
481 481
         ];
482 482
     }
483 483
 
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
             TokenKindEnum::BRACE_L,
520 520
             [$this, 'buildFieldDefinition'],
521 521
             TokenKindEnum::BRACE_R
522
-          )
522
+            )
523 523
           : [];
524 524
     }
525 525
 
@@ -539,12 +539,12 @@  discard block
 block discarded – undo
539 539
         $this->expectKeyword($lexer, KeywordEnum::INTERFACE);
540 540
 
541 541
         return [
542
-          'kind' => NodeKindEnum::INTERFACE_TYPE_DEFINITION,
543
-          'description' => $description,
544
-          'name' => $this->buildName($lexer),
545
-          'directives' => $this->buildDirectives($lexer),
546
-          'fields' => $this->buildFieldsDefinition($lexer),
547
-          'loc' => $this->buildLocation($lexer, $start),
542
+            'kind' => NodeKindEnum::INTERFACE_TYPE_DEFINITION,
543
+            'description' => $description,
544
+            'name' => $this->buildName($lexer),
545
+            'directives' => $this->buildDirectives($lexer),
546
+            'fields' => $this->buildFieldsDefinition($lexer),
547
+            'loc' => $this->buildLocation($lexer, $start),
548 548
         ];
549 549
     }
550 550
 
@@ -563,12 +563,12 @@  discard block
 block discarded – undo
563 563
         $this->expectKeyword($lexer, KeywordEnum::UNION);
564 564
 
565 565
         return [
566
-          'kind' => NodeKindEnum::UNION_TYPE_DEFINITION,
567
-          'description' => $description,
568
-          'name' => $this->buildName($lexer),
569
-          'directives' => $this->buildDirectives($lexer),
570
-          'types' => $this->buildUnionMemberTypes($lexer),
571
-          'loc' => $this->buildLocation($lexer, $start),
566
+            'kind' => NodeKindEnum::UNION_TYPE_DEFINITION,
567
+            'description' => $description,
568
+            'name' => $this->buildName($lexer),
569
+            'directives' => $this->buildDirectives($lexer),
570
+            'types' => $this->buildUnionMemberTypes($lexer),
571
+            'loc' => $this->buildLocation($lexer, $start),
572 572
         ];
573 573
     }
574 574
 
@@ -609,12 +609,12 @@  discard block
 block discarded – undo
609 609
         $this->expectKeyword($lexer, KeywordEnum::ENUM);
610 610
 
611 611
         return [
612
-          'kind' => NodeKindEnum::ENUM_TYPE_DEFINITION,
613
-          'description' => $description,
614
-          'name' => $this->buildName($lexer),
615
-          'directives' => $this->buildDirectives($lexer),
616
-          'values' => $this->buildEnumValuesDefinition($lexer),
617
-          'loc' => $this->buildLocation($lexer, $start),
612
+            'kind' => NodeKindEnum::ENUM_TYPE_DEFINITION,
613
+            'description' => $description,
614
+            'name' => $this->buildName($lexer),
615
+            'directives' => $this->buildDirectives($lexer),
616
+            'values' => $this->buildEnumValuesDefinition($lexer),
617
+            'loc' => $this->buildLocation($lexer, $start),
618 618
         ];
619 619
     }
620 620
 
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
             TokenKindEnum::BRACE_L,
633 633
             [$this, 'buildEnumValueDefinition'],
634 634
             TokenKindEnum::BRACE_R
635
-          )
635
+            )
636 636
           : [];
637 637
     }
638 638
 
@@ -652,12 +652,12 @@  discard block
 block discarded – undo
652 652
         $this->expectKeyword($lexer, KeywordEnum::INPUT);
653 653
 
654 654
         return [
655
-          'kind' => NodeKindEnum::INPUT_OBJECT_TYPE_DEFINITION,
656
-          'description' => $description,
657
-          'name' => $this->buildName($lexer),
658
-          'directives' => $this->buildDirectives($lexer, true),
659
-          'fields' => $this->buildInputFieldsDefinition($lexer),
660
-          'loc' => $this->buildLocation($lexer, $start),
655
+            'kind' => NodeKindEnum::INPUT_OBJECT_TYPE_DEFINITION,
656
+            'description' => $description,
657
+            'name' => $this->buildName($lexer),
658
+            'directives' => $this->buildDirectives($lexer, true),
659
+            'fields' => $this->buildInputFieldsDefinition($lexer),
660
+            'loc' => $this->buildLocation($lexer, $start),
661 661
         ];
662 662
     }
663 663
 
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
             TokenKindEnum::BRACE_L,
680 680
             $buildFunction,
681 681
             TokenKindEnum::BRACE_R
682
-          )
682
+            )
683 683
           : [];
684 684
     }
685 685
 
@@ -699,15 +699,15 @@  discard block
 block discarded – undo
699 699
         $this->expect($lexer, TokenKindEnum::COLON);
700 700
 
701 701
         return [
702
-          'kind' => NodeKindEnum::INPUT_VALUE_DEFINITION,
703
-          'description' => $description,
704
-          'name' => $name,
705
-          'type' => $this->buildTypeReference($lexer),
706
-          'defaultValue' => $this->skip($lexer, TokenKindEnum::EQUALS)
702
+            'kind' => NodeKindEnum::INPUT_VALUE_DEFINITION,
703
+            'description' => $description,
704
+            'name' => $name,
705
+            'type' => $this->buildTypeReference($lexer),
706
+            'defaultValue' => $this->skip($lexer, TokenKindEnum::EQUALS)
707 707
             ? $this->buildValueLiteral($lexer, true)
708 708
             : null,
709
-          'directives' => $this->buildDirectives($lexer, true),
710
-          'loc' => $this->buildLocation($lexer, $start),
709
+            'directives' => $this->buildDirectives($lexer, true),
710
+            'loc' => $this->buildLocation($lexer, $start),
711 711
         ];
712 712
     }
713 713
 
@@ -738,9 +738,9 @@  discard block
 block discarded – undo
738 738
             $this->expect($lexer, TokenKindEnum::BRACKET_R);
739 739
 
740 740
             $type = [
741
-              'kind' => NodeKindEnum::LIST_TYPE,
742
-              'type' => $type,
743
-              'loc' => $this->buildLocation($lexer, $start),
741
+                'kind' => NodeKindEnum::LIST_TYPE,
742
+                'type' => $type,
743
+                'loc' => $this->buildLocation($lexer, $start),
744 744
             ];
745 745
         } else {
746 746
             $type = $this->buildNamedType($lexer);
@@ -748,9 +748,9 @@  discard block
 block discarded – undo
748 748
 
749 749
         if ($this->skip($lexer, TokenKindEnum::BANG)) {
750 750
             return [
751
-              'kind' => NodeKindEnum::NON_NULL_TYPE,
752
-              'type' => $type,
753
-              'loc' => $this->buildLocation($lexer, $start),
751
+                'kind' => NodeKindEnum::NON_NULL_TYPE,
752
+                'type' => $type,
753
+                'loc' => $this->buildLocation($lexer, $start),
754 754
             ];
755 755
         }
756 756
 
@@ -765,8 +765,8 @@  discard block
 block discarded – undo
765 765
      * @throws SyntaxErrorException
766 766
      */
767 767
     public function buildValueLiteral(
768
-      LexerInterface $lexer,
769
-      bool $isConst = false
768
+        LexerInterface $lexer,
769
+        bool $isConst = false
770 770
     ): ?array
771 771
     {
772 772
         return $this->parseValueLiteral($lexer, $isConst);
@@ -780,8 +780,8 @@  discard block
 block discarded – undo
780 780
      * @throws SyntaxErrorException
781 781
      */
782 782
     protected function parseValueLiteral(
783
-      LexerInterface $lexer,
784
-      bool $isConst
783
+        LexerInterface $lexer,
784
+        bool $isConst
785 785
     ): array {
786 786
         $token = $lexer->getToken();
787 787
 
@@ -794,17 +794,17 @@  discard block
 block discarded – undo
794 794
                 $lexer->advance();
795 795
 
796 796
                 return [
797
-                  'kind' => NodeKindEnum::INT,
798
-                  'value' => $token->getValue(),
799
-                  'loc' => $this->buildLocation($lexer, $token),
797
+                    'kind' => NodeKindEnum::INT,
798
+                    'value' => $token->getValue(),
799
+                    'loc' => $this->buildLocation($lexer, $token),
800 800
                 ];
801 801
             case TokenKindEnum::FLOAT:
802 802
                 $lexer->advance();
803 803
 
804 804
                 return [
805
-                  'kind' => NodeKindEnum::FLOAT,
806
-                  'value' => $token->getValue(),
807
-                  'loc' => $this->buildLocation($lexer, $token),
805
+                    'kind' => NodeKindEnum::FLOAT,
806
+                    'value' => $token->getValue(),
807
+                    'loc' => $this->buildLocation($lexer, $token),
808 808
                 ];
809 809
             case TokenKindEnum::STRING:
810 810
             case TokenKindEnum::BLOCK_STRING:
@@ -816,9 +816,9 @@  discard block
 block discarded – undo
816 816
                     $lexer->advance();
817 817
 
818 818
                     return [
819
-                      'kind' => NodeKindEnum::BOOLEAN,
820
-                      'value' => $value === 'true',
821
-                      'loc' => $this->buildLocation($lexer, $token),
819
+                        'kind' => NodeKindEnum::BOOLEAN,
820
+                        'value' => $value === 'true',
821
+                        'loc' => $this->buildLocation($lexer, $token),
822 822
                     ];
823 823
                 }
824 824
 
@@ -826,17 +826,17 @@  discard block
 block discarded – undo
826 826
                     $lexer->advance();
827 827
 
828 828
                     return [
829
-                      'kind' => NodeKindEnum::NULL,
830
-                      'loc' => $this->buildLocation($lexer, $token),
829
+                        'kind' => NodeKindEnum::NULL,
830
+                        'loc' => $this->buildLocation($lexer, $token),
831 831
                     ];
832 832
                 }
833 833
 
834 834
                 $lexer->advance();
835 835
 
836 836
                 return [
837
-                  'kind' => NodeKindEnum::ENUM,
838
-                  'value' => $token->getValue(),
839
-                  'loc' => $this->buildLocation($lexer, $token),
837
+                    'kind' => NodeKindEnum::ENUM,
838
+                    'value' => $token->getValue(),
839
+                    'loc' => $this->buildLocation($lexer, $token),
840 840
                 ];
841 841
             case TokenKindEnum::DOLLAR:
842 842
                 if (!$isConst) {
@@ -860,14 +860,14 @@  discard block
 block discarded – undo
860 860
         $start = $lexer->getToken();
861 861
 
862 862
         return [
863
-          'kind' => NodeKindEnum::LIST,
864
-          'values' => $this->any(
863
+            'kind' => NodeKindEnum::LIST,
864
+            'values' => $this->any(
865 865
             $lexer,
866 866
             TokenKindEnum::BRACKET_L,
867 867
             [$this, $isConst ? 'buildConstValue' : 'buildValue'],
868 868
             TokenKindEnum::BRACKET_R
869
-          ),
870
-          'loc' => $this->buildLocation($lexer, $start),
869
+            ),
870
+            'loc' => $this->buildLocation($lexer, $start),
871 871
         ];
872 872
     }
873 873
 
@@ -891,9 +891,9 @@  discard block
 block discarded – undo
891 891
         }
892 892
 
893 893
         return [
894
-          'kind' => NodeKindEnum::OBJECT,
895
-          'fields' => $fields,
896
-          'loc' => $this->buildLocation($lexer, $start),
894
+            'kind' => NodeKindEnum::OBJECT,
895
+            'fields' => $fields,
896
+            'loc' => $this->buildLocation($lexer, $start),
897 897
         ];
898 898
     }
899 899
 
@@ -905,8 +905,8 @@  discard block
 block discarded – undo
905 905
      * @throws SyntaxErrorException
906 906
      */
907 907
     protected function buildObjectField(
908
-      LexerInterface $lexer,
909
-      bool $isConst
908
+        LexerInterface $lexer,
909
+        bool $isConst
910 910
     ): array {
911 911
         $start = $lexer->getToken();
912 912
 
@@ -917,10 +917,10 @@  discard block
 block discarded – undo
917 917
         };
918 918
 
919 919
         return [
920
-          'kind' => NodeKindEnum::OBJECT_FIELD,
921
-          'name' => $this->buildName($lexer),
922
-          'value' => $buildValue($lexer, $isConst),
923
-          'loc' => $this->buildLocation($lexer, $start),
920
+            'kind' => NodeKindEnum::OBJECT_FIELD,
921
+            'name' => $this->buildName($lexer),
922
+            'value' => $buildValue($lexer, $isConst),
923
+            'loc' => $this->buildLocation($lexer, $start),
924 924
         ];
925 925
     }
926 926
 
@@ -937,9 +937,9 @@  discard block
 block discarded – undo
937 937
         $this->expect($lexer, TokenKindEnum::DOLLAR);
938 938
 
939 939
         return [
940
-          'kind' => NodeKindEnum::VARIABLE,
941
-          'name' => $this->buildName($lexer),
942
-          'loc' => $this->buildLocation($lexer, $start),
940
+            'kind' => NodeKindEnum::VARIABLE,
941
+            'name' => $this->buildName($lexer),
942
+            'loc' => $this->buildLocation($lexer, $start),
943 943
         ];
944 944
     }
945 945
 
@@ -967,12 +967,12 @@  discard block
 block discarded – undo
967 967
         $locations = $this->buildDirectiveLocations($lexer);
968 968
 
969 969
         return [
970
-          'kind' => NodeKindEnum::DIRECTIVE_DEFINITION,
971
-          'description' => $description,
972
-          'name' => $name,
973
-          'arguments' => $arguments,
974
-          'locations' => $locations,
975
-          'loc' => $this->buildLocation($lexer, $start),
970
+            'kind' => NodeKindEnum::DIRECTIVE_DEFINITION,
971
+            'description' => $description,
972
+            'name' => $name,
973
+            'arguments' => $arguments,
974
+            'locations' => $locations,
975
+            'loc' => $this->buildLocation($lexer, $start),
976 976
         ];
977 977
     }
978 978
 
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
             TokenKindEnum::PAREN_L,
995 995
             $buildFunction,
996 996
             TokenKindEnum::PAREN_R
997
-          )
997
+            )
998 998
           : [];
999 999
     }
1000 1000
 
@@ -1076,8 +1076,8 @@  discard block
 block discarded – undo
1076 1076
      * @throws SyntaxErrorException
1077 1077
      */
1078 1078
     protected function buildScalarTypeExtension(
1079
-      LexerInterface $lexer,
1080
-      bool $isConst = false
1079
+        LexerInterface $lexer,
1080
+        bool $isConst = false
1081 1081
     ): ?array
1082 1082
     {
1083 1083
         $start = $lexer->getToken();
@@ -1093,10 +1093,10 @@  discard block
 block discarded – undo
1093 1093
         }
1094 1094
 
1095 1095
         return [
1096
-          'kind' => NodeKindEnum::SCALAR_TYPE_EXTENSION,
1097
-          'name' => $name,
1098
-          'directives' => $directives,
1099
-          'loc' => $this->buildLocation($lexer, $start),
1096
+            'kind' => NodeKindEnum::SCALAR_TYPE_EXTENSION,
1097
+            'name' => $name,
1098
+            'directives' => $directives,
1099
+            'loc' => $this->buildLocation($lexer, $start),
1100 1100
         ];
1101 1101
     }
1102 1102
 
@@ -1123,12 +1123,12 @@  discard block
 block discarded – undo
1123 1123
         }
1124 1124
 
1125 1125
         return [
1126
-          'kind' => NodeKindEnum::OBJECT_TYPE_EXTENSION,
1127
-          'name' => $name,
1128
-          'interfaces' => $interfaces,
1129
-          'directives' => $directives,
1130
-          'fields' => $fields,
1131
-          'loc' => $this->buildLocation($lexer, $start),
1126
+            'kind' => NodeKindEnum::OBJECT_TYPE_EXTENSION,
1127
+            'name' => $name,
1128
+            'interfaces' => $interfaces,
1129
+            'directives' => $directives,
1130
+            'fields' => $fields,
1131
+            'loc' => $this->buildLocation($lexer, $start),
1132 1132
         ];
1133 1133
     }
1134 1134
 
@@ -1155,11 +1155,11 @@  discard block
 block discarded – undo
1155 1155
         }
1156 1156
 
1157 1157
         return [
1158
-          'kind' => NodeKindEnum::INTERFACE_TYPE_EXTENSION,
1159
-          'name' => $name,
1160
-          'directives' => $directives,
1161
-          'fields' => $fields,
1162
-          'loc' => $this->buildLocation($lexer, $start),
1158
+            'kind' => NodeKindEnum::INTERFACE_TYPE_EXTENSION,
1159
+            'name' => $name,
1160
+            'directives' => $directives,
1161
+            'fields' => $fields,
1162
+            'loc' => $this->buildLocation($lexer, $start),
1163 1163
         ];
1164 1164
     }
1165 1165
 
@@ -1185,11 +1185,11 @@  discard block
 block discarded – undo
1185 1185
         }
1186 1186
 
1187 1187
         return [
1188
-          'kind' => NodeKindEnum::UNION_TYPE_EXTENSION,
1189
-          'name' => $name,
1190
-          'directives' => $directives,
1191
-          'types' => $types,
1192
-          'loc' => $this->buildLocation($lexer, $start),
1188
+            'kind' => NodeKindEnum::UNION_TYPE_EXTENSION,
1189
+            'name' => $name,
1190
+            'directives' => $directives,
1191
+            'types' => $types,
1192
+            'loc' => $this->buildLocation($lexer, $start),
1193 1193
         ];
1194 1194
     }
1195 1195
 
@@ -1215,11 +1215,11 @@  discard block
 block discarded – undo
1215 1215
         }
1216 1216
 
1217 1217
         return [
1218
-          'kind' => NodeKindEnum::ENUM_TYPE_EXTENSION,
1219
-          'name' => $name,
1220
-          'directives' => $directives,
1221
-          'values' => $values,
1222
-          'loc' => $this->buildLocation($lexer, $start),
1218
+            'kind' => NodeKindEnum::ENUM_TYPE_EXTENSION,
1219
+            'name' => $name,
1220
+            'directives' => $directives,
1221
+            'values' => $values,
1222
+            'loc' => $this->buildLocation($lexer, $start),
1223 1223
         ];
1224 1224
     }
1225 1225
 
@@ -1246,11 +1246,11 @@  discard block
 block discarded – undo
1246 1246
         }
1247 1247
 
1248 1248
         return [
1249
-          'kind' => NodeKindEnum::INPUT_OBJECT_TYPE_EXTENSION,
1250
-          'name' => $name,
1251
-          'directives' => $directives,
1252
-          'fields' => $fields,
1253
-          'loc' => $this->buildLocation($lexer, $start),
1249
+            'kind' => NodeKindEnum::INPUT_OBJECT_TYPE_EXTENSION,
1250
+            'name' => $name,
1251
+            'directives' => $directives,
1252
+            'fields' => $fields,
1253
+            'loc' => $this->buildLocation($lexer, $start),
1254 1254
         ];
1255 1255
     }
1256 1256
 
@@ -1276,10 +1276,10 @@  discard block
 block discarded – undo
1276 1276
         };
1277 1277
 
1278 1278
         return [
1279
-          'kind' => NodeKindEnum::ARGUMENT,
1280
-          'name' => $this->buildName($lexer),
1281
-          'value' => $buildValue($lexer),
1282
-          'loc' => $this->buildLocation($lexer, $start),
1279
+            'kind' => NodeKindEnum::ARGUMENT,
1280
+            'name' => $this->buildName($lexer),
1281
+            'value' => $buildValue($lexer),
1282
+            'loc' => $this->buildLocation($lexer, $start),
1283 1283
         ];
1284 1284
     }
1285 1285
 
@@ -1305,10 +1305,10 @@  discard block
 block discarded – undo
1305 1305
         };
1306 1306
 
1307 1307
         return [
1308
-          'kind' => NodeKindEnum::ARGUMENT,
1309
-          'name' => $this->buildName($lexer),
1310
-          'value' => $buildValue($lexer),
1311
-          'loc' => $this->buildLocation($lexer, $start),
1308
+            'kind' => NodeKindEnum::ARGUMENT,
1309
+            'name' => $this->buildName($lexer),
1310
+            'value' => $buildValue($lexer),
1311
+            'loc' => $this->buildLocation($lexer, $start),
1312 1312
         ];
1313 1313
     }
1314 1314
 
@@ -1323,11 +1323,11 @@  discard block
 block discarded – undo
1323 1323
         $start = $lexer->getToken();
1324 1324
 
1325 1325
         return [
1326
-          'kind' => NodeKindEnum::ENUM_VALUE_DEFINITION,
1327
-          'description' => $this->buildDescription($lexer),
1328
-          'name' => $this->buildName($lexer),
1329
-          'directives' => $this->buildDirectives($lexer),
1330
-          'loc' => $this->buildLocation($lexer, $start),
1326
+            'kind' => NodeKindEnum::ENUM_VALUE_DEFINITION,
1327
+            'description' => $this->buildDescription($lexer),
1328
+            'name' => $this->buildName($lexer),
1329
+            'directives' => $this->buildDirectives($lexer),
1330
+            'loc' => $this->buildLocation($lexer, $start),
1331 1331
         ];
1332 1332
     }
1333 1333
 
@@ -1348,13 +1348,13 @@  discard block
 block discarded – undo
1348 1348
         $this->expect($lexer, TokenKindEnum::COLON);
1349 1349
 
1350 1350
         return [
1351
-          'kind' => NodeKindEnum::FIELD_DEFINITION,
1352
-          'description' => $description,
1353
-          'name' => $name,
1354
-          'arguments' => $arguments,
1355
-          'type' => $this->buildTypeReference($lexer),
1356
-          'directives' => $this->buildDirectives($lexer),
1357
-          'loc' => $this->buildLocation($lexer, $start),
1351
+            'kind' => NodeKindEnum::FIELD_DEFINITION,
1352
+            'description' => $description,
1353
+            'name' => $name,
1354
+            'arguments' => $arguments,
1355
+            'type' => $this->buildTypeReference($lexer),
1356
+            'directives' => $this->buildDirectives($lexer),
1357
+            'loc' => $this->buildLocation($lexer, $start),
1358 1358
         ];
1359 1359
     }
1360 1360
 
@@ -1373,10 +1373,10 @@  discard block
 block discarded – undo
1373 1373
         $this->expect($lexer, TokenKindEnum::COLON);
1374 1374
 
1375 1375
         return [
1376
-          'kind' => NodeKindEnum::OPERATION_TYPE_DEFINITION,
1377
-          'operation' => $operation,
1378
-          'type' => $this->buildNamedType($lexer),
1379
-          'loc' => $this->buildLocation($lexer, $start),
1376
+            'kind' => NodeKindEnum::OPERATION_TYPE_DEFINITION,
1377
+            'operation' => $operation,
1378
+            'type' => $this->buildNamedType($lexer),
1379
+            'loc' => $this->buildLocation($lexer, $start),
1380 1380
         ];
1381 1381
     }
1382 1382
 
@@ -1409,10 +1409,10 @@  discard block
 block discarded – undo
1409 1409
 
1410 1410
         if ($tokenValue !== 'on' && $this->peek($lexer, TokenKindEnum::NAME)) {
1411 1411
             return [
1412
-              'kind' => NodeKindEnum::FRAGMENT_SPREAD,
1413
-              'name' => $this->buildFragmentName($lexer),
1414
-              'directives' => $this->buildDirectives($lexer),
1415
-              'loc' => $this->buildLocation($lexer, $start),
1412
+                'kind' => NodeKindEnum::FRAGMENT_SPREAD,
1413
+                'name' => $this->buildFragmentName($lexer),
1414
+                'directives' => $this->buildDirectives($lexer),
1415
+                'loc' => $this->buildLocation($lexer, $start),
1416 1416
             ];
1417 1417
         }
1418 1418
 
@@ -1423,11 +1423,11 @@  discard block
 block discarded – undo
1423 1423
         }
1424 1424
 
1425 1425
         return [
1426
-          'kind' => NodeKindEnum::INLINE_FRAGMENT,
1427
-          'typeCondition' => $typeCondition ?? null,
1428
-          'directives' => $this->buildDirectives($lexer),
1429
-          'selectionSet' => $this->buildSelectionSet($lexer),
1430
-          'loc' => $this->buildLocation($lexer, $start),
1426
+            'kind' => NodeKindEnum::INLINE_FRAGMENT,
1427
+            'typeCondition' => $typeCondition ?? null,
1428
+            'directives' => $this->buildDirectives($lexer),
1429
+            'selectionSet' => $this->buildSelectionSet($lexer),
1430
+            'loc' => $this->buildLocation($lexer, $start),
1431 1431
         ];
1432 1432
     }
1433 1433
 
@@ -1451,15 +1451,15 @@  discard block
 block discarded – undo
1451 1451
         }
1452 1452
 
1453 1453
         return [
1454
-          'kind' => NodeKindEnum::FIELD,
1455
-          'alias' => $alias ?? null,
1456
-          'name' => $name,
1457
-          'arguments' => $this->buildArguments($lexer, false),
1458
-          'directives' => $this->buildDirectives($lexer),
1459
-          'selectionSet' => $this->peek($lexer, TokenKindEnum::BRACE_L)
1454
+            'kind' => NodeKindEnum::FIELD,
1455
+            'alias' => $alias ?? null,
1456
+            'name' => $name,
1457
+            'arguments' => $this->buildArguments($lexer, false),
1458
+            'directives' => $this->buildDirectives($lexer),
1459
+            'selectionSet' => $this->peek($lexer, TokenKindEnum::BRACE_L)
1460 1460
             ? $this->buildSelectionSet($lexer)
1461 1461
             : null,
1462
-          'loc' => $this->buildLocation($lexer, $start),
1462
+            'loc' => $this->buildLocation($lexer, $start),
1463 1463
         ];
1464 1464
     }
1465 1465
 
@@ -1508,13 +1508,13 @@  discard block
 block discarded – undo
1508 1508
         };
1509 1509
 
1510 1510
         return [
1511
-          'kind' => NodeKindEnum::VARIABLE_DEFINITION,
1512
-          'variable' => $this->buildVariable($lexer),
1513
-          'type' => $buildType($lexer),
1514
-          'defaultValue' => $this->skip($lexer, TokenKindEnum::EQUALS)
1511
+            'kind' => NodeKindEnum::VARIABLE_DEFINITION,
1512
+            'variable' => $this->buildVariable($lexer),
1513
+            'type' => $buildType($lexer),
1514
+            'defaultValue' => $this->skip($lexer, TokenKindEnum::EQUALS)
1515 1515
             ? $this->buildValueLiteral($lexer, true)
1516 1516
             : null,
1517
-          'loc' => $this->buildLocation($lexer, $start),
1517
+            'loc' => $this->buildLocation($lexer, $start),
1518 1518
         ];
1519 1519
     }
1520 1520
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 
299 299
         $this->expectKeyword($lexer, KeywordEnum::FRAGMENT);
300 300
 
301
-        $buildTypeCondition = function (LexerInterface $lexer) {
301
+        $buildTypeCondition = function(LexerInterface $lexer) {
302 302
             $this->expectKeyword($lexer, 'on');
303 303
             return $this->buildNamedType($lexer);
304 304
         };
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
      */
670 670
     protected function buildInputFieldsDefinition(LexerInterface $lexer): ?array
671 671
     {
672
-        $buildFunction = function (LexerInterface $lexer): array {
672
+        $buildFunction = function(LexerInterface $lexer): array {
673 673
             return $this->buildInputValueDefinition($lexer);
674 674
         };
675 675
 
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
     ): array {
911 911
         $start = $lexer->getToken();
912 912
 
913
-        $buildValue = function (LexerInterface $lexer, bool $isConst) {
913
+        $buildValue = function(LexerInterface $lexer, bool $isConst) {
914 914
             $this->expect($lexer, TokenKindEnum::COLON);
915 915
 
916 916
             return $this->buildValueLiteral($lexer, $isConst);
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
      */
985 985
     protected function buildArgumentsDefinition(LexerInterface $lexer): ?array
986 986
     {
987
-        $buildFunction = function (LexerInterface $lexer): array {
987
+        $buildFunction = function(LexerInterface $lexer): array {
988 988
             return $this->buildInputValueDefinition($lexer);
989 989
         };
990 990
 
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
          * @return mixed
1271 1271
          * @throws SyntaxErrorException
1272 1272
          */
1273
-        $buildValue = function (LexerInterface $lexer) {
1273
+        $buildValue = function(LexerInterface $lexer) {
1274 1274
             $this->expect($lexer, TokenKindEnum::COLON);
1275 1275
             return $this->buildValueLiteral($lexer);
1276 1276
         };
@@ -1299,7 +1299,7 @@  discard block
 block discarded – undo
1299 1299
          * @return mixed
1300 1300
          * @throws SyntaxErrorException
1301 1301
          */
1302
-        $buildValue = function (LexerInterface $lexer) {
1302
+        $buildValue = function(LexerInterface $lexer) {
1303 1303
             $this->expect($lexer, TokenKindEnum::COLON);
1304 1304
             return $this->buildValueLiteral($lexer);
1305 1305
         };
@@ -1501,7 +1501,7 @@  discard block
 block discarded – undo
1501 1501
          * @return mixed
1502 1502
          * @throws SyntaxErrorException
1503 1503
          */
1504
-        $buildType = function (LexerInterface $lexer) {
1504
+        $buildType = function(LexerInterface $lexer) {
1505 1505
             $this->expect($lexer, TokenKindEnum::COLON);
1506 1506
 
1507 1507
             return $this->buildTypeReference($lexer);
Please login to merge, or discard this patch.
src/Validation/ValidationProvider.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      * @var array
13 13
      */
14 14
     protected $provides = [
15
-      ValidatorInterface::class,
15
+        ValidatorInterface::class,
16 16
     ];
17 17
 
18 18
     /**
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function register()
22 22
     {
23 23
         $this->container->add(ValidatorInterface::class, Validator::class,
24
-          true/* $shared */)
25
-          ->withArgument(SchemaValidatorInterface::class);
24
+            true/* $shared */)
25
+            ->withArgument(SchemaValidatorInterface::class);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Validation/RulesProvider.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -38,31 +38,31 @@  discard block
 block discarded – undo
38 38
      * @var array
39 39
      */
40 40
     protected $provides = [
41
-      ExecutableDefinitionsRule::class,
42
-      FieldOnCorrectTypeRule::class,
43
-      FragmentsOnCompositeTypesRule::class,
44
-      KnownArgumentNamesRule::class,
45
-      KnownDirectivesRule::class,
46
-      KnownFragmentNamesRule::class,
47
-      KnownTypeNamesRule::class,
48
-      LoneAnonymousOperationRule::class,
49
-      NoFragmentCyclesRule::class,
50
-      NoUndefinedVariablesRule::class,
51
-      NoUnusedFragmentsRule::class,
52
-      NoUnusedVariablesRule::class,
53
-      OverlappingFieldsCanBeMergedRule::class,
54
-      PossibleFragmentSpreadsRule::class,
55
-      ProvidedNonNullArgumentsRule::class,
56
-      ScalarLeafsRule::class,
57
-      SingleFieldSubscriptionsRule::class,
58
-      UniqueArgumentNamesRule::class,
59
-      UniqueDirectivesPerLocationRule::class,
60
-      UniqueFragmentNamesRule::class,
61
-      UniqueVariableNamesRule::class,
62
-      ValuesOfCorrectTypeRule::class,
63
-      VariablesAreInputTypesRule::class,
64
-      VariablesDefaultValueAllowedRule::class,
65
-      VariablesInAllowedPositionRule::class,
41
+        ExecutableDefinitionsRule::class,
42
+        FieldOnCorrectTypeRule::class,
43
+        FragmentsOnCompositeTypesRule::class,
44
+        KnownArgumentNamesRule::class,
45
+        KnownDirectivesRule::class,
46
+        KnownFragmentNamesRule::class,
47
+        KnownTypeNamesRule::class,
48
+        LoneAnonymousOperationRule::class,
49
+        NoFragmentCyclesRule::class,
50
+        NoUndefinedVariablesRule::class,
51
+        NoUnusedFragmentsRule::class,
52
+        NoUnusedVariablesRule::class,
53
+        OverlappingFieldsCanBeMergedRule::class,
54
+        PossibleFragmentSpreadsRule::class,
55
+        ProvidedNonNullArgumentsRule::class,
56
+        ScalarLeafsRule::class,
57
+        SingleFieldSubscriptionsRule::class,
58
+        UniqueArgumentNamesRule::class,
59
+        UniqueDirectivesPerLocationRule::class,
60
+        UniqueFragmentNamesRule::class,
61
+        UniqueVariableNamesRule::class,
62
+        ValuesOfCorrectTypeRule::class,
63
+        VariablesAreInputTypesRule::class,
64
+        VariablesDefaultValueAllowedRule::class,
65
+        VariablesInAllowedPositionRule::class,
66 66
     ];
67 67
 
68 68
     /**
@@ -71,57 +71,57 @@  discard block
 block discarded – undo
71 71
     public function register()
72 72
     {
73 73
         $this->container->add(ExecutableDefinitionsRule::class,
74
-          ExecutableDefinitionsRule::class);
74
+            ExecutableDefinitionsRule::class);
75 75
         $this->container->add(FieldOnCorrectTypeRule::class,
76
-          FieldOnCorrectTypeRule::class);
76
+            FieldOnCorrectTypeRule::class);
77 77
         $this->container->add(FragmentsOnCompositeTypesRule::class,
78
-          FragmentsOnCompositeTypesRule::class);
78
+            FragmentsOnCompositeTypesRule::class);
79 79
         $this->container->add(KnownArgumentNamesRule::class,
80
-          KnownArgumentNamesRule::class);
80
+            KnownArgumentNamesRule::class);
81 81
         $this->container->add(KnownDirectivesRule::class,
82
-          KnownDirectivesRule::class);
82
+            KnownDirectivesRule::class);
83 83
         $this->container->add(KnownFragmentNamesRule::class,
84
-          KnownFragmentNamesRule::class);
84
+            KnownFragmentNamesRule::class);
85 85
         $this->container->add(KnownTypeNamesRule::class,
86
-          KnownTypeNamesRule::class);
86
+            KnownTypeNamesRule::class);
87 87
         $this->container->add(LoneAnonymousOperationRule::class,
88
-          LoneAnonymousOperationRule::class);
88
+            LoneAnonymousOperationRule::class);
89 89
         $this->container->add(NoFragmentCyclesRule::class,
90
-          NoFragmentCyclesRule::class);
90
+            NoFragmentCyclesRule::class);
91 91
         $this->container->add(NoUndefinedVariablesRule::class,
92
-          NoUndefinedVariablesRule::class);
92
+            NoUndefinedVariablesRule::class);
93 93
         $this->container->add(NoUnusedFragmentsRule::class,
94
-          NoUnusedFragmentsRule::class);
94
+            NoUnusedFragmentsRule::class);
95 95
         $this->container->add(NoUnusedVariablesRule::class,
96
-          NoUnusedVariablesRule::class);
96
+            NoUnusedVariablesRule::class);
97 97
         $this->container->add(OverlappingFieldsCanBeMergedRule::class,
98
-          OverlappingFieldsCanBeMergedRule::class);
98
+            OverlappingFieldsCanBeMergedRule::class);
99 99
         $this->container->add(PossibleFragmentSpreadsRule::class,
100
-          PossibleFragmentSpreadsRule::class);
100
+            PossibleFragmentSpreadsRule::class);
101 101
         $this->container->add(ProvidedNonNullArgumentsRule::class,
102
-          ProvidedNonNullArgumentsRule::class);
102
+            ProvidedNonNullArgumentsRule::class);
103 103
         $this->container->add(ScalarLeafsRule::class, ScalarLeafsRule::class);
104 104
         $this->container->add(SingleFieldSubscriptionsRule::class,
105
-          SingleFieldSubscriptionsRule::class);
105
+            SingleFieldSubscriptionsRule::class);
106 106
         $this->container->add(UniqueArgumentNamesRule::class,
107
-          UniqueArgumentNamesRule::class);
107
+            UniqueArgumentNamesRule::class);
108 108
         $this->container->add(UniqueDirectivesPerLocationRule::class,
109
-          UniqueDirectivesPerLocationRule::class);
109
+            UniqueDirectivesPerLocationRule::class);
110 110
         $this->container->add(UniqueFragmentNamesRule::class,
111
-          UniqueFragmentNamesRule::class);
111
+            UniqueFragmentNamesRule::class);
112 112
         $this->container->add(UniqueInputFieldNamesRule::class,
113
-          UniqueInputFieldNamesRule::class);
113
+            UniqueInputFieldNamesRule::class);
114 114
         $this->container->add(UniqueOperationNamesRule::class,
115
-          UniqueOperationNamesRule::class);
115
+            UniqueOperationNamesRule::class);
116 116
         $this->container->add(UniqueVariableNamesRule::class,
117
-          UniqueVariableNamesRule::class);
117
+            UniqueVariableNamesRule::class);
118 118
         $this->container->add(ValuesOfCorrectTypeRule::class,
119
-          ValuesOfCorrectTypeRule::class);
119
+            ValuesOfCorrectTypeRule::class);
120 120
         $this->container->add(VariablesAreInputTypesRule::class,
121
-          VariablesAreInputTypesRule::class);
121
+            VariablesAreInputTypesRule::class);
122 122
         $this->container->add(VariablesDefaultValueAllowedRule::class,
123
-          VariablesDefaultValueAllowedRule::class);
123
+            VariablesDefaultValueAllowedRule::class);
124 124
         $this->container->add(VariablesInAllowedPositionRule::class,
125
-          VariablesInAllowedPositionRule::class);
125
+            VariablesInAllowedPositionRule::class);
126 126
     }
127 127
 }
Please login to merge, or discard this patch.
src/Validation/ValidationContextInterface.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @return array
88 88
      */
89 89
     public function getRecursiveVariableUsages(
90
-      OperationDefinitionNode $operation
90
+        OperationDefinitionNode $operation
91 91
     ): array;
92 92
 
93 93
     /**
@@ -103,6 +103,6 @@  discard block
 block discarded – undo
103 103
      * @return array|FragmentDefinitionNode[]
104 104
      */
105 105
     public function getRecursivelyReferencedFragments(
106
-      OperationDefinitionNode $operation
106
+        OperationDefinitionNode $operation
107 107
     ): array;
108 108
 }
Please login to merge, or discard this patch.