GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch cleanup-warning (a34f18)
by Šimon
11:06
created
Category
examples/01-blog/Blog/Data/DataSource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
examples/00-hello-world/graphql.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ],
Please login to merge, or discard this patch.
examples/02-shorthand/rootvalue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tools/gendocs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
benchmarks/Utils/SchemaGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
examples/03-server/graphql.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ],
Please login to merge, or discard this patch.
src/Error/Warning.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Server/StandardServer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Server/ServerConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $instance = new static();
44 44
         foreach ($config as $key => $value) {
45 45
             $method = 'set' . ucfirst($key);
46
-            if (! method_exists($instance, $method)) {
46
+            if (!method_exists($instance, $method)) {
47 47
                 throw new InvariantViolation(sprintf('Unknown server config option "%s"', $key));
48 48
             }
49 49
             $instance->$method($value);
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function setValidationRules($validationRules)
157 157
     {
158
-        if (! is_callable($validationRules) && ! is_array($validationRules) && $validationRules !== null) {
158
+        if (!is_callable($validationRules) && !is_array($validationRules) && $validationRules !== null) {
159 159
             throw new InvariantViolation(
160 160
                 'Server config expects array of validation rules or callable returning such array, but got ' .
161 161
                 Utils::printSafe($validationRules)
Please login to merge, or discard this patch.