@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | public function resolve($root, $args, $context) |
18 | 18 | { |
19 | - return $root['prefix'].$args['message']; |
|
19 | + return $root['prefix'] . $args['message']; |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use GraphQL\Utils\Utils; |
5 | 5 | |
6 | -$outputFile = __DIR__ . '/../docs/reference.md'; |
|
6 | +$outputFile = __DIR__ . '/../docs/reference.md'; |
|
7 | 7 | |
8 | 8 | $entries = [ |
9 | 9 | \GraphQL\GraphQL::class, |
@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | if ($this->typeIndex > $this->config['totalTypes']) { |
58 | 58 | throw new \Exception( |
59 | - "Cannot create new type: there are already {$this->typeIndex} ". |
|
59 | + "Cannot create new type: there are already {$this->typeIndex} " . |
|
60 | 60 | "which exceeds allowed number of {$this->config['totalTypes']} types total" |
61 | 61 | ); |
62 | 62 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | 'args' => [ |
20 | 20 | 'message' => ['type' => Type::string()], |
21 | 21 | ], |
22 | - 'resolve' => function ($root, $args) { |
|
22 | + 'resolve' => function($root, $args) { |
|
23 | 23 | return $root['prefix'] . $args['message']; |
24 | 24 | } |
25 | 25 | ], |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | 'x' => ['type' => Type::int()], |
36 | 36 | 'y' => ['type' => Type::int()], |
37 | 37 | ], |
38 | - 'resolve' => function ($root, $args) { |
|
38 | + 'resolve' => function($root, $args) { |
|
39 | 39 | return $args['x'] + $args['y']; |
40 | 40 | }, |
41 | 41 | ], |