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 merge-clovers (56f774)
by Šimon
04:26
created
Category
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.
src/Validator/Rules/UniqueArgumentNames.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@
 block discarded – undo
22 22
         $this->knownArgNames = [];
23 23
 
24 24
         return [
25
-            NodeKind::FIELD     => function () {
25
+            NodeKind::FIELD     => function() {
26 26
                 $this->knownArgNames = [];
27 27
             },
28
-            NodeKind::DIRECTIVE => function () {
28
+            NodeKind::DIRECTIVE => function() {
29 29
                 $this->knownArgNames = [];
30 30
             },
31
-            NodeKind::ARGUMENT  => function (ArgumentNode $node) use ($context) {
31
+            NodeKind::ARGUMENT  => function(ArgumentNode $node) use ($context) {
32 32
                 $argName = $node->name->value;
33
-                if (! empty($this->knownArgNames[$argName])) {
33
+                if (!empty($this->knownArgNames[$argName])) {
34 34
                     $context->reportError(new Error(
35 35
                         self::duplicateArgMessage($argName),
36 36
                         [$this->knownArgNames[$argName], $node->name]
Please login to merge, or discard this patch.
src/Validator/Rules/FieldsOnCorrectType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
     public function getVisitor(ValidationContext $context)
24 24
     {
25 25
         return [
26
-            NodeKind::FIELD => function (FieldNode $node) use ($context) {
26
+            NodeKind::FIELD => function(FieldNode $node) use ($context) {
27 27
                 $type = $context->getParentType();
28
-                if (! $type) {
28
+                if (!$type) {
29 29
                     return;
30 30
                 }
31 31
 
@@ -84,19 +84,19 @@  discard block
 block discarded – undo
84 84
 
85 85
             foreach ($schema->getPossibleTypes($type) as $possibleType) {
86 86
                 $fields = $possibleType->getFields();
87
-                if (! isset($fields[$fieldName])) {
87
+                if (!isset($fields[$fieldName])) {
88 88
                     continue;
89 89
                 }
90 90
                 // This object type defines this field.
91 91
                 $suggestedObjectTypes[] = $possibleType->name;
92 92
                 foreach ($possibleType->getInterfaces() as $possibleInterface) {
93 93
                     $fields = $possibleInterface->getFields();
94
-                    if (! isset($fields[$fieldName])) {
94
+                    if (!isset($fields[$fieldName])) {
95 95
                         continue;
96 96
                     }
97 97
                     // This interface type defines this field.
98 98
                     $interfaceUsageCount[$possibleInterface->name] =
99
-                        ! isset($interfaceUsageCount[$possibleInterface->name])
99
+                        !isset($interfaceUsageCount[$possibleInterface->name])
100 100
                             ? 0
101 101
                             : $interfaceUsageCount[$possibleInterface->name] + 1;
102 102
                 }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             $suggestions = Utils::quotedOrList($suggestedTypeNames);
154 154
 
155 155
             $message .= sprintf(' Did you mean to use an inline fragment on %s?', $suggestions);
156
-        } elseif (! empty($suggestedFieldNames)) {
156
+        } elseif (!empty($suggestedFieldNames)) {
157 157
             $suggestions = Utils::quotedOrList($suggestedFieldNames);
158 158
 
159 159
             $message .= sprintf(' Did you mean %s?', $suggestions);
Please login to merge, or discard this patch.
src/Validator/Rules/QueryDepth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             $context,
29 29
             [
30 30
                 NodeKind::OPERATION_DEFINITION => [
31
-                    'leave' => function (OperationDefinitionNode $operationDefinition) use ($context) {
31
+                    'leave' => function(OperationDefinitionNode $operationDefinition) use ($context) {
32 32
                         $maxDepth = $this->fieldDepth($operationDefinition);
33 33
 
34 34
                         if ($maxDepth <= $this->getMaxQueryDepth()) {
Please login to merge, or discard this patch.
src/Validator/Rules/NoUnusedFragments.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,18 +26,18 @@  discard block
 block discarded – undo
26 26
         $this->fragmentDefs  = [];
27 27
 
28 28
         return [
29
-            NodeKind::OPERATION_DEFINITION => function ($node) {
29
+            NodeKind::OPERATION_DEFINITION => function($node) {
30 30
                 $this->operationDefs[] = $node;
31 31
 
32 32
                 return Visitor::skipNode();
33 33
             },
34
-            NodeKind::FRAGMENT_DEFINITION  => function (FragmentDefinitionNode $def) {
34
+            NodeKind::FRAGMENT_DEFINITION  => function(FragmentDefinitionNode $def) {
35 35
                 $this->fragmentDefs[] = $def;
36 36
 
37 37
                 return Visitor::skipNode();
38 38
             },
39 39
             NodeKind::DOCUMENT             => [
40
-                'leave' => function () use ($context) {
40
+                'leave' => function() use ($context) {
41 41
                     $fragmentNameUsed = [];
42 42
 
43 43
                     foreach ($this->operationDefs as $operation) {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
                     foreach ($this->fragmentDefs as $fragmentDef) {
50 50
                         $fragName = $fragmentDef->name->value;
51
-                        if (! empty($fragmentNameUsed[$fragName])) {
51
+                        if (!empty($fragmentNameUsed[$fragName])) {
52 52
                             continue;
53 53
                         }
54 54
 
Please login to merge, or discard this patch.
src/Language/AST/Location.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $this->endToken   = $endToken;
68 68
         $this->source     = $source;
69 69
 
70
-        if (! $startToken || ! $endToken) {
70
+        if (!$startToken || !$endToken) {
71 71
             return;
72 72
         }
73 73
 
Please login to merge, or discard this patch.