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
src/Validator/Rules/KnownArgumentNamesOnDirectives.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         foreach ($definedDirectives as $directive) {
40 40
             $directiveArgs[$directive->name] = array_map(
41
-                static function (FieldArgument $arg) : string {
41
+                static function(FieldArgument $arg) : string {
42 42
                     return $arg->name;
43 43
                 },
44 44
                 $directive->args
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         $astDefinitions = $context->getDocument()->definitions;
49 49
         foreach ($astDefinitions as $def) {
50
-            if (! ($def instanceof DirectiveDefinitionNode)) {
50
+            if (!($def instanceof DirectiveDefinitionNode)) {
51 51
                 continue;
52 52
             }
53 53
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                     $arguments = iterator_to_array($arguments->getIterator());
60 60
                 }
61 61
 
62
-                $directiveArgs[$name] = array_map(static function (InputValueDefinitionNode $arg) : string {
62
+                $directiveArgs[$name] = array_map(static function(InputValueDefinitionNode $arg) : string {
63 63
                     return $arg->name->value;
64 64
                 }, $arguments);
65 65
             } else {
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
         }
69 69
 
70 70
         return [
71
-            NodeKind::DIRECTIVE => static function (DirectiveNode $directiveNode) use ($directiveArgs, $context) {
71
+            NodeKind::DIRECTIVE => static function(DirectiveNode $directiveNode) use ($directiveArgs, $context) {
72 72
                 $directiveName = $directiveNode->name->value;
73 73
                 $knownArgs     = $directiveArgs[$directiveName] ?? null;
74 74
 
75
-                if ($directiveNode->arguments === null || ! $knownArgs) {
75
+                if ($directiveNode->arguments === null || !$knownArgs) {
76 76
                     return;
77 77
                 }
78 78
 
Please login to merge, or discard this patch.
src/Validator/Rules/KnownFragmentNames.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function getVisitor(ValidationContext $context)
16 16
     {
17 17
         return [
18
-            NodeKind::FRAGMENT_SPREAD => static function (FragmentSpreadNode $node) use ($context) {
18
+            NodeKind::FRAGMENT_SPREAD => static function(FragmentSpreadNode $node) use ($context) {
19 19
                 $fragmentName = $node->name->value;
20 20
                 $fragment     = $context->getFragment($fragmentName);
21 21
                 if ($fragment) {
Please login to merge, or discard this patch.
src/Validator/Rules/UniqueFragmentNames.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
         $this->knownFragmentNames = [];
23 23
 
24 24
         return [
25
-            NodeKind::OPERATION_DEFINITION => static function () {
25
+            NodeKind::OPERATION_DEFINITION => static function() {
26 26
                 return Visitor::skipNode();
27 27
             },
28
-            NodeKind::FRAGMENT_DEFINITION  => function (FragmentDefinitionNode $node) use ($context) {
28
+            NodeKind::FRAGMENT_DEFINITION  => function(FragmentDefinitionNode $node) use ($context) {
29 29
                 $fragmentName = $node->name->value;
30 30
                 if (empty($this->knownFragmentNames[$fragmentName])) {
31 31
                     $this->knownFragmentNames[$fragmentName] = $node->name;
Please login to merge, or discard this patch.
src/Validator/Rules/FragmentsOnCompositeTypes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
     public function getVisitor(ValidationContext $context)
20 20
     {
21 21
         return [
22
-            NodeKind::INLINE_FRAGMENT     => static function (InlineFragmentNode $node) use ($context) {
23
-                if (! $node->typeCondition) {
22
+            NodeKind::INLINE_FRAGMENT     => static function(InlineFragmentNode $node) use ($context) {
23
+                if (!$node->typeCondition) {
24 24
                     return;
25 25
                 }
26 26
 
27 27
                 $type = TypeInfo::typeFromAST($context->getSchema(), $node->typeCondition);
28
-                if (! $type || Type::isCompositeType($type)) {
28
+                if (!$type || Type::isCompositeType($type)) {
29 29
                     return;
30 30
                 }
31 31
 
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
                     [$node->typeCondition]
35 35
                 ));
36 36
             },
37
-            NodeKind::FRAGMENT_DEFINITION => static function (FragmentDefinitionNode $node) use ($context) {
37
+            NodeKind::FRAGMENT_DEFINITION => static function(FragmentDefinitionNode $node) use ($context) {
38 38
                 $type = TypeInfo::typeFromAST($context->getSchema(), $node->typeCondition);
39 39
 
40
-                if (! $type || Type::isCompositeType($type)) {
40
+                if (!$type || Type::isCompositeType($type)) {
41 41
                     return;
42 42
                 }
43 43
 
Please login to merge, or discard this patch.
src/Validator/Rules/QuerySecurityRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     protected function invokeIfNeeded(ValidationContext $context, array $validators)
65 65
     {
66 66
         // is disabled?
67
-        if (! $this->isEnabled()) {
67
+        if (!$this->isEnabled()) {
68 68
             return [];
69 69
         }
70 70
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         // Importantly this does not include inline fragments.
82 82
         $definitions = $context->getDocument()->definitions;
83 83
         foreach ($definitions as $node) {
84
-            if (! ($node instanceof FragmentDefinitionNode)) {
84
+            if (!($node instanceof FragmentDefinitionNode)) {
85 85
                 continue;
86 86
             }
87 87
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                         }
137 137
                     }
138 138
                     $responseName = $this->getFieldName($selection);
139
-                    if (! isset($_astAndDefs[$responseName])) {
139
+                    if (!isset($_astAndDefs[$responseName])) {
140 140
                         $_astAndDefs[$responseName] = new ArrayObject();
141 141
                     }
142 142
                     // create field context
Please login to merge, or discard this patch.
src/Validator/Rules/KnownTypeNames.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 {
24 24
     public function getVisitor(ValidationContext $context)
25 25
     {
26
-        $skip = static function () {
26
+        $skip = static function() {
27 27
             return Visitor::skipNode();
28 28
         };
29 29
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             NodeKind::INTERFACE_TYPE_DEFINITION    => $skip,
36 36
             NodeKind::UNION_TYPE_DEFINITION        => $skip,
37 37
             NodeKind::INPUT_OBJECT_TYPE_DEFINITION => $skip,
38
-            NodeKind::NAMED_TYPE                   => static function (NamedTypeNode $node) use ($context) {
38
+            NodeKind::NAMED_TYPE                   => static function(NamedTypeNode $node) use ($context) {
39 39
                 $schema   = $context->getSchema();
40 40
                 $typeName = $node->name->value;
41 41
                 $type     = $schema->getType($typeName);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     public static function unknownTypeMessage($type, array $suggestedTypes)
62 62
     {
63 63
         $message = sprintf('Unknown type "%s".', $type);
64
-        if (! empty($suggestedTypes)) {
64
+        if (!empty($suggestedTypes)) {
65 65
             $suggestions = Utils::quotedOrList($suggestedTypes);
66 66
 
67 67
             $message .= sprintf(' Did you mean %s?', $suggestions);
Please login to merge, or discard this patch.
src/Validator/Rules/VariablesAreInputTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     public function getVisitor(ValidationContext $context)
19 19
     {
20 20
         return [
21
-            NodeKind::VARIABLE_DEFINITION => static function (VariableDefinitionNode $node) use ($context) {
21
+            NodeKind::VARIABLE_DEFINITION => static function(VariableDefinitionNode $node) use ($context) {
22 22
                 $type = TypeInfo::typeFromAST($context->getSchema(), $node->type);
23 23
 
24 24
                 // If the variable type is not an input type, return an error.
25
-                if (! $type || Type::isInputType($type)) {
25
+                if (!$type || Type::isInputType($type)) {
26 26
                     return;
27 27
                 }
28 28
 
Please login to merge, or discard this patch.
src/Validator/Rules/UniqueOperationNames.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $this->knownOperationNames = [];
23 23
 
24 24
         return [
25
-            NodeKind::OPERATION_DEFINITION => function (OperationDefinitionNode $node) use ($context) {
25
+            NodeKind::OPERATION_DEFINITION => function(OperationDefinitionNode $node) use ($context) {
26 26
                 $operationName = $node->name;
27 27
 
28 28
                 if ($operationName) {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
                 return Visitor::skipNode();
40 40
             },
41
-            NodeKind::FRAGMENT_DEFINITION  => static function () {
41
+            NodeKind::FRAGMENT_DEFINITION  => static function() {
42 42
                 return Visitor::skipNode();
43 43
             },
44 44
         ];
Please login to merge, or discard this patch.
src/Validator/Rules/ScalarLeafs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
     public function getVisitor(ValidationContext $context)
17 17
     {
18 18
         return [
19
-            NodeKind::FIELD => static function (FieldNode $node) use ($context) {
19
+            NodeKind::FIELD => static function(FieldNode $node) use ($context) {
20 20
                 $type = $context->getType();
21
-                if (! $type) {
21
+                if (!$type) {
22 22
                     return;
23 23
                 }
24 24
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                             [$node->selectionSet]
30 30
                         ));
31 31
                     }
32
-                } elseif (! $node->selectionSet) {
32
+                } elseif (!$node->selectionSet) {
33 33
                     $context->reportError(new Error(
34 34
                         self::requiredSubselectionMessage($node->name->value, $type),
35 35
                         [$node]
Please login to merge, or discard this patch.