@@ -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 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | return new ObjectType([ |
| 60 | 60 | 'name' => $this->type->getName(), |
| 61 | 61 | 'description' => $this->type->getDescription(), |
| 62 | - 'fields' => function (): array { |
|
| 62 | + 'fields' => function(): array { |
|
| 63 | 63 | return iterator_to_array($this->getObjectFields()); |
| 64 | 64 | }, |
| 65 | 65 | 'resolveField' => $this->getFieldResolver(), |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | private function getObjectFields(): \Traversable |
| 74 | 74 | { |
| 75 | 75 | foreach ($this->type->getFields() as $field) { |
| 76 | - if ((bool)$this->dispatchFieldEvent($field)) { |
|
| 76 | + if ((bool) $this->dispatchFieldEvent($field)) { |
|
| 77 | 77 | yield $field->getName() => $this->make($field, FieldBuilder::class); |
| 78 | 78 | } |
| 79 | 79 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | private function getFieldResolver(): \Closure |
| 97 | 97 | { |
| 98 | - return function ($value, array $args = [], $context, ResolveInfo $info) { |
|
| 98 | + return function($value, array $args = [], $context, ResolveInfo $info) { |
|
| 99 | 99 | $input = $this->createInput($info, $args); |
| 100 | 100 | |
| 101 | 101 | $input = $this->dispatchRequestEvent($input); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | private function dispatchRequestEvent(InputInterface $input): InputInterface |
| 126 | 126 | { |
| 127 | - $name = 'request:' . $input->getPath(); |
|
| 127 | + $name = 'request:'.$input->getPath(); |
|
| 128 | 128 | |
| 129 | 129 | return $this->events->dispatch($name, $input); |
| 130 | 130 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | private function dispatchResponseEvent(InputInterface $input, $output) |
| 138 | 138 | { |
| 139 | - $name = 'request:' . $input->getPath(); |
|
| 139 | + $name = 'request:'.$input->getPath(); |
|
| 140 | 140 | |
| 141 | 141 | return $this->events->dispatch($name, $output); |
| 142 | 142 | } |
@@ -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 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | { |
| 83 | 83 | $output = new Output($parent, $parent); |
| 84 | 84 | |
| 85 | - return (object)$route->call($this->router->getContainer(), [ |
|
| 85 | + return (object) $route->call($this->router->getContainer(), [ |
|
| 86 | 86 | 'route' => $route, |
| 87 | 87 | 'input' => $input, |
| 88 | 88 | 'output' => $output, |