@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx; |
11 | 11 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | $name = $definition->getName(); |
66 | 66 | |
67 | - if (! \array_key_exists($name, $this->types)) { |
|
67 | + if (!\array_key_exists($name, $this->types)) { |
|
68 | 68 | $this->types[$name] = $this->build($definition); |
69 | 69 | } |
70 | 70 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx; |
11 | 11 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $schema->assertValid(); |
89 | 89 | } |
90 | 90 | |
91 | - return function ($rootValue = null, $context = null) use ($reflection, $schema, $request): ExecutionResult { |
|
91 | + return function($rootValue = null, $context = null) use ($reflection, $schema, $request): ExecutionResult { |
|
92 | 92 | return GraphQL::executeQuery( |
93 | 93 | $schema, |
94 | 94 | $request->getQuery(), |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx; |
11 | 11 | |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | $name = $default->getName(); |
87 | 87 | |
88 | 88 | if ( |
89 | - ! \array_key_exists($name, $input) && // Empty argument |
|
90 | - ! $default->hasDefaultValue() && // And has no default value |
|
89 | + !\array_key_exists($name, $input) && // Empty argument |
|
90 | + !$default->hasDefaultValue() && // And has no default value |
|
91 | 91 | $default->isNonNull() // And required |
92 | 92 | ) { |
93 | 93 | $message = \sprintf('Argument %s required for field %s', |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx; |
11 | 11 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $this->loadRouteDirective($object, $field); |
64 | 64 | |
65 | 65 | |
66 | - if (! $this->router->has($object)) { |
|
66 | + if (!$this->router->has($object)) { |
|
67 | 67 | return null; |
68 | 68 | } |
69 | 69 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // TODO Match method |
77 | 77 | // $request->getMethod() |
78 | 78 | |
79 | - return function ($parent, array $arguments = [], $ctx, ResolveInfo $info) use ($route, $field) { |
|
79 | + return function($parent, array $arguments = [], $ctx, ResolveInfo $info) use ($route, $field) { |
|
80 | 80 | return $route->call([ |
81 | 81 | InputInterface::class => new Input($field, $info, $arguments, $parent), |
82 | 82 | TypeDefinition::class => $field, |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | private function loadRouteDirective(ObjectDefinition $object, FieldDefinition $field): void |
94 | 94 | { |
95 | - if (! $field->hasDirective(self::DIRECTIVE)) { |
|
95 | + if (!$field->hasDirective(self::DIRECTIVE)) { |
|
96 | 96 | return; |
97 | 97 | } |
98 | 98 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx\Builders; |
11 | 11 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx\Builders; |
11 | 11 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | return new InterfaceType([ |
27 | 27 | 'name' => $this->reflection->getName(), |
28 | 28 | 'description' => $this->reflection->getDescription(), |
29 | - 'fields' => function (): array { |
|
29 | + 'fields' => function(): array { |
|
30 | 30 | return []; |
31 | 31 | }, |
32 | 32 | ]); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx\Builders; |
11 | 11 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | return new ObjectType([ |
28 | 28 | 'name' => $this->reflection->getName(), |
29 | 29 | 'description' => $this->reflection->getDescription(), |
30 | - 'fields' => function (): array { |
|
30 | + 'fields' => function(): array { |
|
31 | 31 | return FieldBuilder::buildFields($this->reflection, $this->getRegistry()); |
32 | 32 | }, |
33 | 33 | 'interfaces' => $this->buildInterfaces(), |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx\Builders; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Adapters\Webonyx\Builders; |
11 | 11 |