@@ -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 | ], |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | if (self::$warningHandler) { |
| 87 | 87 | $fn = self::$warningHandler; |
| 88 | 88 | $fn($errorMessage, $warningId); |
| 89 | - } elseif ((self::$enableWarnings & $warningId) > 0 && ! isset(self::$warned[$warningId])) { |
|
| 89 | + } elseif ((self::$enableWarnings & $warningId) > 0 && !isset(self::$warned[$warningId])) { |
|
| 90 | 90 | self::$warned[$warningId] = true; |
| 91 | 91 | trigger_error($errorMessage, $messageLevel ?: E_USER_WARNING); |
| 92 | 92 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | if (is_array($config)) { |
| 75 | 75 | $config = ServerConfig::create($config); |
| 76 | 76 | } |
| 77 | - if (! $config instanceof ServerConfig) { |
|
| 77 | + if (!$config instanceof ServerConfig) { |
|
| 78 | 78 | throw new InvariantViolation('Expecting valid server config, but got ' . Utils::printSafe($config)); |
| 79 | 79 | } |
| 80 | 80 | $this->config = $config; |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | if (is_string($params['variables'])) { |
| 84 | 84 | $tmp = json_decode($params['variables'], true); |
| 85 | - if (! json_last_error()) { |
|
| 85 | + if (!json_last_error()) { |
|
| 86 | 86 | $params['variables'] = $tmp; |
| 87 | 87 | } |
| 88 | 88 | } |