| @@ -36,14 +36,14 @@ | ||
| 36 | 36 | */ | 
| 37 | 37 | public function register() | 
| 38 | 38 |      { | 
| 39 | -        $this->container->add(NodeBuilderInterface::class, function () { | |
| 39 | +        $this->container->add(NodeBuilderInterface::class, function() { | |
| 40 | 40 | return new NodeBuilder(SupportedBuilders::get()); | 
| 41 | 41 | }); | 
| 42 | 42 | |
| 43 | 43 | $this->container->add(ParserInterface::class, Parser::class, true/* $shared */) | 
| 44 | 44 | ->withArgument(NodeBuilderInterface::class); | 
| 45 | 45 | |
| 46 | -        $this->container->add(LexerInterface::class, function () { | |
| 46 | +        $this->container->add(LexerInterface::class, function() { | |
| 47 | 47 | return new Lexer(SupportedReaders::get()); | 
| 48 | 48 | }); | 
| 49 | 49 | |
| @@ -88,7 +88,7 @@ discard block | ||
| 88 | 88 | |
| 89 | 89 | $builtInTypes = keyMap( | 
| 90 | 90 | array_merge(specifiedScalarTypes(), introspectionTypes()), | 
| 91 | -            function (NamedTypeInterface $type) { | |
| 91 | +            function(NamedTypeInterface $type) { | |
| 92 | 92 | return $type->getName(); | 
| 93 | 93 | } | 
| 94 | 94 | ); | 
| @@ -151,7 +151,7 @@ discard block | ||
| 151 | 151 | return GraphQLDirective([ | 
| 152 | 152 | 'name' => $node->getNameValue(), | 
| 153 | 153 | 'description' => $node->getDescriptionValue(), | 
| 154 | -            'locations'   => array_map(function (NameNode $node) { | |
| 154 | +            'locations'   => array_map(function(NameNode $node) { | |
| 155 | 155 | return $node->getValue(); | 
| 156 | 156 | }, $node->getLocations()), | 
| 157 | 157 | 'arguments' => $node->hasArguments() ? $this->buildArguments($node->getArguments()) : [], | 
| @@ -198,10 +198,10 @@ discard block | ||
| 198 | 198 |      { | 
| 199 | 199 | return keyValMap( | 
| 200 | 200 | $nodes, | 
| 201 | -            function (InputValueDefinitionNode $value) { | |
| 201 | +            function(InputValueDefinitionNode $value) { | |
| 202 | 202 | return $value->getNameValue(); | 
| 203 | 203 | }, | 
| 204 | -            function (InputValueDefinitionNode $value): array { | |
| 204 | +            function(InputValueDefinitionNode $value): array { | |
| 205 | 205 | $type = $this->buildWrappedType($value->getType()); | 
| 206 | 206 | return [ | 
| 207 | 207 | 'type' => $type, | 
| @@ -250,11 +250,11 @@ discard block | ||
| 250 | 250 | return GraphQLObjectType([ | 
| 251 | 251 | 'name' => $node->getNameValue(), | 
| 252 | 252 | 'description' => $node->getDescriptionValue(), | 
| 253 | -            'fields'      => function () use ($node) { | |
| 253 | +            'fields'      => function() use ($node) { | |
| 254 | 254 | return $this->buildFields($node); | 
| 255 | 255 | }, | 
| 256 | -            'interfaces'  => function () use ($node) { | |
| 257 | -                return $node->hasInterfaces() ? array_map(function (NodeInterface $interface) { | |
| 256 | +            'interfaces'  => function() use ($node) { | |
| 257 | +                return $node->hasInterfaces() ? array_map(function(NodeInterface $interface) { | |
| 258 | 258 | return $this->buildType($interface); | 
| 259 | 259 | }, $node->getInterfaces()) : []; | 
| 260 | 260 | }, | 
| @@ -271,11 +271,11 @@ discard block | ||
| 271 | 271 | |
| 272 | 272 | return $node->hasFields() ? keyValMap( | 
| 273 | 273 | $node->getFields(), | 
| 274 | -            function ($value) { | |
| 274 | +            function($value) { | |
| 275 | 275 | /** @noinspection PhpUndefinedMethodInspection */ | 
| 276 | 276 | return $value->getNameValue(); | 
| 277 | 277 | }, | 
| 278 | -            function ($value) use ($resolverMap) { | |
| 278 | +            function($value) use ($resolverMap) { | |
| 279 | 279 | return $this->buildField($value, $resolverMap); | 
| 280 | 280 | } | 
| 281 | 281 | ) : []; | 
| @@ -290,7 +290,7 @@ discard block | ||
| 290 | 290 | return GraphQLInterfaceType([ | 
| 291 | 291 | 'name' => $node->getNameValue(), | 
| 292 | 292 | 'description' => $node->getDescriptionValue(), | 
| 293 | -            'fields'      => function () use ($node): array { | |
| 293 | +            'fields'      => function() use ($node): array { | |
| 294 | 294 | return $this->buildFields($node); | 
| 295 | 295 | }, | 
| 296 | 296 | 'astNode' => $node, | 
| @@ -308,10 +308,10 @@ discard block | ||
| 308 | 308 | 'description' => $node->getDescriptionValue(), | 
| 309 | 309 | 'values' => $node->hasValues() ? keyValMap( | 
| 310 | 310 | $node->getValues(), | 
| 311 | -                function (EnumValueDefinitionNode $value): string { | |
| 311 | +                function(EnumValueDefinitionNode $value): string { | |
| 312 | 312 | return $value->getNameValue(); | 
| 313 | 313 | }, | 
| 314 | -                function (EnumValueDefinitionNode $value): array { | |
| 314 | +                function(EnumValueDefinitionNode $value): array { | |
| 315 | 315 | return [ | 
| 316 | 316 | 'description' => $value->getDescriptionValue(), | 
| 317 | 317 | 'deprecationReason' => $this->getDeprecationReason($value), | 
| @@ -332,7 +332,7 @@ discard block | ||
| 332 | 332 | return GraphQLUnionType([ | 
| 333 | 333 | 'name' => $node->getNameValue(), | 
| 334 | 334 | 'description' => $node->getDescriptionValue(), | 
| 335 | -            'types'       => $node->hasTypes() ? array_map(function (TypeNodeInterface $type) { | |
| 335 | +            'types'       => $node->hasTypes() ? array_map(function(TypeNodeInterface $type) { | |
| 336 | 336 | return $this->buildType($type); | 
| 337 | 337 | }, $node->getTypes()) : [], | 
| 338 | 338 | 'astNode' => $node, | 
| @@ -348,7 +348,7 @@ discard block | ||
| 348 | 348 | return GraphQLScalarType([ | 
| 349 | 349 | 'name' => $node->getNameValue(), | 
| 350 | 350 | 'description' => $node->getDescriptionValue(), | 
| 351 | -            'serialize'   => function ($value) { | |
| 351 | +            'serialize'   => function($value) { | |
| 352 | 352 | return $value; | 
| 353 | 353 | }, | 
| 354 | 354 | 'astNode' => $node, | 
| @@ -366,10 +366,10 @@ discard block | ||
| 366 | 366 | 'description' => $node->getDescriptionValue(), | 
| 367 | 367 | 'fields' => $node->hasFields() ? keyValMap( | 
| 368 | 368 | $node->getFields(), | 
| 369 | -                function (InputValueDefinitionNode $value): string { | |
| 369 | +                function(InputValueDefinitionNode $value): string { | |
| 370 | 370 | return $value->getNameValue(); | 
| 371 | 371 | }, | 
| 372 | -                function (InputValueDefinitionNode $value): array { | |
| 372 | +                function(InputValueDefinitionNode $value): array { | |
| 373 | 373 | $type = $this->buildWrappedType($value->getType()); | 
| 374 | 374 | return [ | 
| 375 | 375 | 'type' => $type, |