@@ -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\Builder; |
| 11 | 11 | |
@@ -40,17 +40,17 @@ discard block |
||
| 40 | 40 | return new ObjectType([ |
| 41 | 41 | 'name' => $this->type->getName(), |
| 42 | 42 | 'description' => $this->getDescription(), |
| 43 | - 'fields' => function (): array { |
|
| 43 | + 'fields' => function(): array { |
|
| 44 | 44 | return iterator_to_array($this->getObjectFields()); |
| 45 | 45 | }, |
| 46 | - 'resolveField' => function ($value, array $args = [], $context, ResolveInfo $info) { |
|
| 46 | + 'resolveField' => function($value, array $args = [], $context, ResolveInfo $info) { |
|
| 47 | 47 | $input = new Input($args, $info); |
| 48 | 48 | |
| 49 | - $this->events->dispatch('request:' . $input->getPath(), $input); |
|
| 49 | + $this->events->dispatch('request:'.$input->getPath(), $input); |
|
| 50 | 50 | |
| 51 | 51 | $value = $this->fetchData($input, $value); |
| 52 | 52 | |
| 53 | - $this->events->dispatch('response:' . $input->getPath(), $value, $input); |
|
| 53 | + $this->events->dispatch('response:'.$input->getPath(), $value, $input); |
|
| 54 | 54 | |
| 55 | 55 | return $value; |
| 56 | 56 | }, |
@@ -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; |
| 11 | 11 | |