@@ -212,10 +212,10 @@ |
||
212 | 212 | $newUsages = []; |
213 | 213 | $typeInfo = new TypeInfo($this->schema); |
214 | 214 | Visitor::visit($node, Visitor::visitWithTypeInfo($typeInfo, [ |
215 | - NodeKind::VARIABLE_DEFINITION => function () { |
|
215 | + NodeKind::VARIABLE_DEFINITION => function() { |
|
216 | 216 | return false; |
217 | 217 | }, |
218 | - NodeKind::VARIABLE => function (VariableNode $variable) use (&$newUsages, $typeInfo) { |
|
218 | + NodeKind::VARIABLE => function(VariableNode $variable) use (&$newUsages, $typeInfo) { |
|
219 | 219 | $newUsages[] = ['node' => $variable, 'type' => $typeInfo->getInputType()]; |
220 | 220 | } |
221 | 221 | ])); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | { |
179 | 179 | $commentReplies = isset(self::$commentReplies[$commentId]) ? self::$commentReplies[$commentId] : []; |
180 | 180 | |
181 | - $start = isset($after) ? (int) array_search($afterId, $commentReplies) + 1: 0; |
|
181 | + $start = isset($after) ? (int) array_search($afterId, $commentReplies) + 1 : 0; |
|
182 | 182 | $commentReplies = array_slice($commentReplies, $start, $limit); |
183 | 183 | |
184 | 184 | return array_map( |
@@ -201,6 +201,6 @@ discard block |
||
201 | 201 | |
202 | 202 | public static function findStoryMentions($storyId) |
203 | 203 | { |
204 | - return isset(self::$storyMentions[$storyId]) ? self::$storyMentions[$storyId] :[]; |
|
204 | + return isset(self::$storyMentions[$storyId]) ? self::$storyMentions[$storyId] : []; |
|
205 | 205 | } |
206 | 206 | } |
@@ -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 | ], |
@@ -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 | ], |