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
Push — master ( 486f90...5a9d2d )
by Šimon
08:57
created
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.
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.
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.
src/Validator/Rules/NoUnusedVariables.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 
23 23
         return [
24 24
             NodeKind::OPERATION_DEFINITION => [
25
-                'enter' => function () {
25
+                'enter' => function() {
26 26
                     $this->variableDefs = [];
27 27
                 },
28
-                'leave' => function (OperationDefinitionNode $operation) use ($context) {
28
+                'leave' => function(OperationDefinitionNode $operation) use ($context) {
29 29
                     $variableNameUsed = [];
30 30
                     $usages           = $context->getRecursiveVariableUsages($operation);
31 31
                     $opName           = $operation->name ? $operation->name->value : null;
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                     foreach ($this->variableDefs as $variableDef) {
39 39
                         $variableName = $variableDef->variable->name->value;
40 40
 
41
-                        if (! empty($variableNameUsed[$variableName])) {
41
+                        if (!empty($variableNameUsed[$variableName])) {
42 42
                             continue;
43 43
                         }
44 44
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                     }
50 50
                 },
51 51
             ],
52
-            NodeKind::VARIABLE_DEFINITION  => function ($def) {
52
+            NodeKind::VARIABLE_DEFINITION  => function($def) {
53 53
                 $this->variableDefs[] = $def;
54 54
             },
55 55
         ];
Please login to merge, or discard this patch.
src/Validator/Rules/PossibleFragmentSpreads.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
     public function getVisitor(ValidationContext $context)
24 24
     {
25 25
         return [
26
-            NodeKind::INLINE_FRAGMENT => function (InlineFragmentNode $node) use ($context) {
26
+            NodeKind::INLINE_FRAGMENT => function(InlineFragmentNode $node) use ($context) {
27 27
                 $fragType   = $context->getType();
28 28
                 $parentType = $context->getParentType();
29 29
 
30
-                if (! ($fragType instanceof CompositeType) ||
31
-                    ! ($parentType instanceof CompositeType) ||
30
+                if (!($fragType instanceof CompositeType) ||
31
+                    !($parentType instanceof CompositeType) ||
32 32
                     $this->doTypesOverlap($context->getSchema(), $fragType, $parentType)) {
33 33
                     return;
34 34
                 }
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
                     [$node]
39 39
                 ));
40 40
             },
41
-            NodeKind::FRAGMENT_SPREAD => function (FragmentSpreadNode $node) use ($context) {
41
+            NodeKind::FRAGMENT_SPREAD => function(FragmentSpreadNode $node) use ($context) {
42 42
                 $fragName   = $node->name->value;
43 43
                 $fragType   = $this->getFragmentType($context, $fragName);
44 44
                 $parentType = $context->getParentType();
45 45
 
46
-                if (! $fragType ||
47
-                    ! $parentType ||
46
+                if (!$fragType ||
47
+                    !$parentType ||
48 48
                     $this->doTypesOverlap($context->getSchema(), $fragType, $parentType)
49 49
                 ) {
50 50
                     return;
Please login to merge, or discard this patch.
src/Validator/Rules/UniqueVariableNames.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
         $this->knownVariableNames = [];
22 22
 
23 23
         return [
24
-            NodeKind::OPERATION_DEFINITION => function () {
24
+            NodeKind::OPERATION_DEFINITION => function() {
25 25
                 $this->knownVariableNames = [];
26 26
             },
27
-            NodeKind::VARIABLE_DEFINITION  => function (VariableDefinitionNode $node) use ($context) {
27
+            NodeKind::VARIABLE_DEFINITION  => function(VariableDefinitionNode $node) use ($context) {
28 28
                 $variableName = $node->variable->name->value;
29 29
                 if (empty($this->knownVariableNames[$variableName])) {
30 30
                     $this->knownVariableNames[$variableName] = $node->variable->name;
Please login to merge, or discard this patch.
src/Validator/Rules/UniqueInputFieldNames.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,18 +27,18 @@
 block discarded – undo
27 27
 
28 28
         return [
29 29
             NodeKind::OBJECT       => [
30
-                'enter' => function () {
30
+                'enter' => function() {
31 31
                     $this->knownNameStack[] = $this->knownNames;
32 32
                     $this->knownNames       = [];
33 33
                 },
34
-                'leave' => function () {
34
+                'leave' => function() {
35 35
                     $this->knownNames = array_pop($this->knownNameStack);
36 36
                 },
37 37
             ],
38
-            NodeKind::OBJECT_FIELD => function (ObjectFieldNode $node) use ($context) {
38
+            NodeKind::OBJECT_FIELD => function(ObjectFieldNode $node) use ($context) {
39 39
                 $fieldName = $node->name->value;
40 40
 
41
-                if (! empty($this->knownNames[$fieldName])) {
41
+                if (!empty($this->knownNames[$fieldName])) {
42 42
                     $context->reportError(new Error(
43 43
                         self::duplicateInputFieldMessage($fieldName),
44 44
                         [$this->knownNames[$fieldName], $node->name]
Please login to merge, or discard this patch.