@@ -1251,7 +1251,7 @@ |
||
1251 | 1251 | Token::BRACE_L, |
1252 | 1252 | [$this, 'parseEnumValueDefinition'], |
1253 | 1253 | Token::BRACE_R |
1254 | - ) |
|
1254 | + ) |
|
1255 | 1255 | : new NodeList([]); |
1256 | 1256 | } |
1257 | 1257 |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | }, |
150 | 150 | NodeKind::STRING => function(StringValueNode $node, $key) { |
151 | 151 | if ($node->block) { |
152 | - return $this->printBlockString($node->value, $key === 'description'); |
|
152 | + return $this->printBlockString($node->value, $key === 'description'); |
|
153 | 153 | } |
154 | 154 | return json_encode($node->value); |
155 | 155 | }, |
@@ -222,9 +222,9 @@ discard block |
||
222 | 222 | return $this->join([ |
223 | 223 | $def->description, |
224 | 224 | $def->name |
225 | - . $this->wrap('(', $this->join($def->arguments, ', '), ')') |
|
226 | - . ': ' . $def->type |
|
227 | - . $this->wrap(' ', $this->join($def->directives, ' ')) |
|
225 | + . $this->wrap('(', $this->join($def->arguments, ', '), ')') |
|
226 | + . ': ' . $def->type |
|
227 | + . $this->wrap(' ', $this->join($def->directives, ' ')) |
|
228 | 228 | ], "\n"); |
229 | 229 | }, |
230 | 230 | NodeKind::INPUT_VALUE_DEFINITION => function(InputValueDefinitionNode $def) { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | private static function leadingWhitespace($str) { |
54 | 54 | $i = 0; |
55 | 55 | while ($i < mb_strlen($str) && ($str[$i] === ' ' || $str[$i] === '\t')) { |
56 | - $i++; |
|
56 | + $i++; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | return $i; |
@@ -470,7 +470,7 @@ |
||
470 | 470 | function($field) use ($variables) { return self::valueFromASTUntyped($field->value, $variables); }, |
471 | 471 | iterator_to_array($valueNode->fields) |
472 | 472 | ) |
473 | - ); |
|
473 | + ); |
|
474 | 474 | case $valueNode instanceof VariableNode: |
475 | 475 | $variableName = $valueNode->name->value; |
476 | 476 | return ($variables && isset($variables[$variableName])) |
@@ -331,48 +331,48 @@ |
||
331 | 331 | 'description' => 'Location adjacent to an inline fragment.' |
332 | 332 | ], |
333 | 333 | 'SCHEMA' => [ |
334 | - 'value' => DirectiveLocation::SCHEMA, |
|
335 | - 'description' => 'Location adjacent to a schema definition.' |
|
334 | + 'value' => DirectiveLocation::SCHEMA, |
|
335 | + 'description' => 'Location adjacent to a schema definition.' |
|
336 | 336 | ], |
337 | 337 | 'SCALAR' => [ |
338 | - 'value' => DirectiveLocation::SCALAR, |
|
339 | - 'description' => 'Location adjacent to a scalar definition.' |
|
338 | + 'value' => DirectiveLocation::SCALAR, |
|
339 | + 'description' => 'Location adjacent to a scalar definition.' |
|
340 | 340 | ], |
341 | 341 | 'OBJECT' => [ |
342 | - 'value' => DirectiveLocation::OBJECT, |
|
343 | - 'description' => 'Location adjacent to an object type definition.' |
|
342 | + 'value' => DirectiveLocation::OBJECT, |
|
343 | + 'description' => 'Location adjacent to an object type definition.' |
|
344 | 344 | ], |
345 | 345 | 'FIELD_DEFINITION' => [ |
346 | - 'value' => DirectiveLocation::FIELD_DEFINITION, |
|
347 | - 'description' => 'Location adjacent to a field definition.' |
|
346 | + 'value' => DirectiveLocation::FIELD_DEFINITION, |
|
347 | + 'description' => 'Location adjacent to a field definition.' |
|
348 | 348 | ], |
349 | 349 | 'ARGUMENT_DEFINITION' => [ |
350 | - 'value' => DirectiveLocation::ARGUMENT_DEFINITION, |
|
351 | - 'description' => 'Location adjacent to an argument definition.' |
|
350 | + 'value' => DirectiveLocation::ARGUMENT_DEFINITION, |
|
351 | + 'description' => 'Location adjacent to an argument definition.' |
|
352 | 352 | ], |
353 | 353 | 'INTERFACE' => [ |
354 | - 'value' => DirectiveLocation::IFACE, |
|
355 | - 'description' => 'Location adjacent to an interface definition.' |
|
354 | + 'value' => DirectiveLocation::IFACE, |
|
355 | + 'description' => 'Location adjacent to an interface definition.' |
|
356 | 356 | ], |
357 | 357 | 'UNION' => [ |
358 | - 'value' => DirectiveLocation::UNION, |
|
359 | - 'description' => 'Location adjacent to a union definition.' |
|
358 | + 'value' => DirectiveLocation::UNION, |
|
359 | + 'description' => 'Location adjacent to a union definition.' |
|
360 | 360 | ], |
361 | 361 | 'ENUM' => [ |
362 | - 'value' => DirectiveLocation::ENUM, |
|
363 | - 'description' => 'Location adjacent to an enum definition.' |
|
362 | + 'value' => DirectiveLocation::ENUM, |
|
363 | + 'description' => 'Location adjacent to an enum definition.' |
|
364 | 364 | ], |
365 | 365 | 'ENUM_VALUE' => [ |
366 | - 'value' => DirectiveLocation::ENUM_VALUE, |
|
367 | - 'description' => 'Location adjacent to an enum value definition.' |
|
366 | + 'value' => DirectiveLocation::ENUM_VALUE, |
|
367 | + 'description' => 'Location adjacent to an enum value definition.' |
|
368 | 368 | ], |
369 | 369 | 'INPUT_OBJECT' => [ |
370 | - 'value' => DirectiveLocation::INPUT_OBJECT, |
|
371 | - 'description' => 'Location adjacent to an input object type definition.' |
|
370 | + 'value' => DirectiveLocation::INPUT_OBJECT, |
|
371 | + 'description' => 'Location adjacent to an input object type definition.' |
|
372 | 372 | ], |
373 | 373 | 'INPUT_FIELD_DEFINITION' => [ |
374 | - 'value' => DirectiveLocation::INPUT_FIELD_DEFINITION, |
|
375 | - 'description' => 'Location adjacent to an input object field definition.' |
|
374 | + 'value' => DirectiveLocation::INPUT_FIELD_DEFINITION, |
|
375 | + 'description' => 'Location adjacent to an input object field definition.' |
|
376 | 376 | ] |
377 | 377 | |
378 | 378 | ] |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | static function duplicateOperationNameMessage($operationName) |
13 | 13 | { |
14 | - return "There can be only one operation named \"$operationName\"."; |
|
14 | + return "There can be only one operation named \"$operationName\"."; |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public $knownOperationNames; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | static function duplicateInputFieldMessage($fieldName) |
13 | 13 | { |
14 | - return "There can be only one input field named \"$fieldName\"."; |
|
14 | + return "There can be only one input field named \"$fieldName\"."; |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public $knownNames; |
@@ -249,11 +249,11 @@ discard block |
||
249 | 249 | // (D) First collect any conflicts between the provided collection of fields |
250 | 250 | // and the collection of fields represented by the given fragment. |
251 | 251 | $this->collectConflictsBetween( |
252 | - $context, |
|
253 | - $conflicts, |
|
254 | - $areMutuallyExclusive, |
|
255 | - $fieldMap, |
|
256 | - $fieldMap2 |
|
252 | + $context, |
|
253 | + $conflicts, |
|
254 | + $areMutuallyExclusive, |
|
255 | + $fieldMap, |
|
256 | + $fieldMap2 |
|
257 | 257 | ); |
258 | 258 | |
259 | 259 | // (E) Then collect any conflicts between the provided collection of fields |
@@ -327,11 +327,11 @@ discard block |
||
327 | 327 | // (F) First, collect all conflicts between these two collections of fields |
328 | 328 | // (not including any nested fragments). |
329 | 329 | $this->collectConflictsBetween( |
330 | - $context, |
|
331 | - $conflicts, |
|
332 | - $areMutuallyExclusive, |
|
333 | - $fieldMap1, |
|
334 | - $fieldMap2 |
|
330 | + $context, |
|
331 | + $conflicts, |
|
332 | + $areMutuallyExclusive, |
|
333 | + $fieldMap1, |
|
334 | + $fieldMap2 |
|
335 | 335 | ); |
336 | 336 | |
337 | 337 | // (G) Then collect conflicts between the first fragment and any nested |
@@ -36,14 +36,14 @@ |
||
36 | 36 | $type = $context->getInputType(); |
37 | 37 | if ($type instanceof NonNull && $defaultValue) { |
38 | 38 | $context->reportError( |
39 | - new Error( |
|
40 | - self::defaultForRequiredVarMessage( |
|
41 | - $name, |
|
42 | - $type, |
|
43 | - $type->getWrappedType() |
|
44 | - ), |
|
45 | - [$defaultValue] |
|
46 | - ) |
|
39 | + new Error( |
|
40 | + self::defaultForRequiredVarMessage( |
|
41 | + $name, |
|
42 | + $type, |
|
43 | + $type->getWrappedType() |
|
44 | + ), |
|
45 | + [$defaultValue] |
|
46 | + ) |
|
47 | 47 | ); |
48 | 48 | } |
49 | 49 |