@@ -370,7 +370,7 @@ |
||
| 370 | 370 | */ |
| 371 | 371 | protected function printMany(array $nodes): array |
| 372 | 372 | { |
| 373 | - return \array_map(function ($node) { |
|
| 373 | + return \array_map(function($node) { |
|
| 374 | 374 | return $this->print($node); |
| 375 | 375 | }, $nodes); |
| 376 | 376 | } |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | |
| 156 | 156 | return printLines([ |
| 157 | 157 | 'schema {\n', |
| 158 | - printLines($operationTypes), |
|
| 158 | + printLines($operationTypes), |
|
| 159 | 159 | '}' |
| 160 | 160 | ]); |
| 161 | 161 | } |
@@ -36,10 +36,10 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | return $this->printFilteredSchema( |
| 38 | 38 | $schema, |
| 39 | - function (Directive $directive): bool { |
|
| 39 | + function(Directive $directive): bool { |
|
| 40 | 40 | return !isSpecifiedDirective($directive); |
| 41 | 41 | }, |
| 42 | - function (TypeInterface $type): bool { |
|
| 42 | + function(TypeInterface $type): bool { |
|
| 43 | 43 | return !isSpecifiedScalarType($type) && !isIntrospectionType($type); |
| 44 | 44 | } |
| 45 | 45 | ); |
@@ -55,10 +55,10 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | return $this->printFilteredSchema( |
| 57 | 57 | $schema, |
| 58 | - function (Directive $directive): bool { |
|
| 58 | + function(Directive $directive): bool { |
|
| 59 | 59 | return isSpecifiedDirective($directive); |
| 60 | 60 | }, |
| 61 | - function (TypeInterface $type): bool { |
|
| 61 | + function(TypeInterface $type): bool { |
|
| 62 | 62 | return isIntrospectionType($type); |
| 63 | 63 | } |
| 64 | 64 | ); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | { |
| 123 | 123 | $types = \array_filter(\array_values($schema->getTypeMap()), $filter); |
| 124 | 124 | |
| 125 | - \usort($types, function (TypeInterface $typeA, TypeInterface $typeB) { |
|
| 125 | + \usort($types, function(TypeInterface $typeA, TypeInterface $typeB) { |
|
| 126 | 126 | return \strcasecmp($typeA->getName(), $typeB->getName()); |
| 127 | 127 | }); |
| 128 | 128 | |
@@ -247,11 +247,11 @@ discard block |
||
| 247 | 247 | $description = $this->printDescription($type); |
| 248 | 248 | $name = $type->getName(); |
| 249 | 249 | $implements = $type->hasInterfaces() |
| 250 | - ? ' implements ' . printArray(\array_map(function (InterfaceType $interface) { |
|
| 250 | + ? ' implements ' . printArray(\array_map(function(InterfaceType $interface) { |
|
| 251 | 251 | return $interface->getName(); |
| 252 | 252 | }, $type->getInterfaces()), ' & ') |
| 253 | 253 | : ''; |
| 254 | - $fields = $this->printMany($type->getFields()); |
|
| 254 | + $fields = $this->printMany($type->getFields()); |
|
| 255 | 255 | |
| 256 | 256 | return printLines([ |
| 257 | 257 | $description, |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | */ |
| 344 | 344 | protected function printMany(array $definitions): array |
| 345 | 345 | { |
| 346 | - return \array_map(function ($definition) { |
|
| 346 | + return \array_map(function($definition) { |
|
| 347 | 347 | return $this->print($definition); |
| 348 | 348 | }, $definitions); |
| 349 | 349 | } |