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.
Completed
Pull Request — master (#1)
by Šimon
05:05 queued 02:04
created
src/Validator/Rules/LoneAnonymousOperation.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
             NodeKind::DOCUMENT => function(DocumentNode $node) use (&$operationCount) {
29 29
                 $tmp = Utils::filter(
30 30
                     $node->definitions,
31
-                    function ($definition) {
31
+                    function($definition) {
32 32
                         return $definition->kind === NodeKind::OPERATION_DEFINITION;
33 33
                     }
34 34
                 );
Please login to merge, or discard this patch.
src/Validator/Rules/VariablesInAllowedPosition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     static function badVarPosMessage($varName, $varType, $expectedType)
17 17
     {
18
-        return "Variable \"\$$varName\" of type \"$varType\" used in position expecting ".
18
+        return "Variable \"\$$varName\" of type \"$varType\" used in position expecting " .
19 19
         "type \"$expectedType\".";
20 20
     }
21 21
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         return [
27 27
             NodeKind::OPERATION_DEFINITION => [
28
-                'enter' => function () {
28
+                'enter' => function() {
29 29
                     $this->varDefMap = [];
30 30
                 },
31 31
                 'leave' => function(OperationDefinitionNode $operation) use ($context) {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     }
57 57
                 }
58 58
             ],
59
-            NodeKind::VARIABLE_DEFINITION => function (VariableDefinitionNode $varDefNode) {
59
+            NodeKind::VARIABLE_DEFINITION => function(VariableDefinitionNode $varDefNode) {
60 60
                 $this->varDefMap[$varDefNode->variable->name->value] = $varDefNode;
61 61
             }
62 62
         ];
Please login to merge, or discard this patch.
src/Validator/Rules/OverlappingFieldsCanBeMerged.php 1 patch
Spacing   +8 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     static function reasonMessage($reason)
34 34
     {
35 35
         if (is_array($reason)) {
36
-            $tmp = array_map(function ($tmp) {
36
+            $tmp = array_map(function($tmp) {
37 37
                 list($responseName, $subReason) = $tmp;
38 38
                 $reasonMessage = self::reasonMessage($subReason);
39 39
                 return "subfields \"$responseName\" conflict because $reasonMessage";
@@ -692,23 +692,19 @@  discard block
 block discarded – undo
692 692
     {
693 693
         if ($type1 instanceof ListOfType) {
694 694
             return $type2 instanceof ListOfType ?
695
-                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) :
696
-                true;
695
+                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) : true;
697 696
         }
698 697
         if ($type2 instanceof ListOfType) {
699 698
             return $type1 instanceof ListOfType ?
700
-                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) :
701
-                true;
699
+                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) : true;
702 700
         }
703 701
         if ($type1 instanceof NonNull) {
704 702
             return $type2 instanceof NonNull ?
705
-                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) :
706
-                true;
703
+                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) : true;
707 704
         }
708 705
         if ($type2 instanceof NonNull) {
709 706
             return $type1 instanceof NonNull ?
710
-                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) :
711
-                true;
707
+                $this->doTypesConflict($type1->getWrappedType(), $type2->getWrappedType()) : true;
712 708
         }
713 709
         if (Type::isLeafType($type1) || Type::isLeafType($type2)) {
714 710
             return $type1 !== $type2;
@@ -858,20 +854,20 @@  discard block
 block discarded – undo
858 854
             return [
859 855
                 [
860 856
                     $responseName,
861
-                    array_map(function ($conflict) {
857
+                    array_map(function($conflict) {
862 858
                         return $conflict[0];
863 859
                     }, $conflicts),
864 860
                 ],
865 861
                 array_reduce(
866 862
                     $conflicts,
867
-                    function ($allFields, $conflict) {
863
+                    function($allFields, $conflict) {
868 864
                         return array_merge($allFields, $conflict[1]);
869 865
                     },
870 866
                     [$ast1]
871 867
                 ),
872 868
                 array_reduce(
873 869
                     $conflicts,
874
-                    function ($allFields, $conflict) {
870
+                    function($allFields, $conflict) {
875 871
                         return array_merge($allFields, $conflict[2]);
876 872
                     },
877 873
                     [$ast2]
Please login to merge, or discard this patch.
src/Validator/Rules/UniqueDirectivesPerLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     static function duplicateDirectiveMessage($directiveName)
12 12
     {
13
-        return 'The directive "'.$directiveName.'" can only be used once at this location.';
13
+        return 'The directive "' . $directiveName . '" can only be used once at this location.';
14 14
     }
15 15
 
16 16
     public function getVisitor(ValidationContext $context)
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
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             $context,
52 52
             [
53 53
                 NodeKind::OPERATION_DEFINITION => [
54
-                    'leave' => function (OperationDefinitionNode $operationDefinition) use ($context) {
54
+                    'leave' => function(OperationDefinitionNode $operationDefinition) use ($context) {
55 55
                         $maxDepth = $this->fieldDepth($operationDefinition);
56 56
 
57 57
                         if ($maxDepth > $this->getMaxQueryDepth()) {
Please login to merge, or discard this patch.
src/Validator/Rules/FieldsOnCorrectType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     static function undefinedFieldMessage($fieldName, $type, array $suggestedTypeNames, array $suggestedFieldNames)
17 17
     {
18
-        $message = 'Cannot query field "' . $fieldName . '" on type "' . $type.'".';
18
+        $message = 'Cannot query field "' . $fieldName . '" on type "' . $type . '".';
19 19
 
20 20
         if ($suggestedTypeNames) {
21 21
             $suggestions = Utils::quotedOrList($suggestedTypeNames);
@@ -86,14 +86,14 @@  discard block
 block discarded – undo
86 86
             $suggestedObjectTypes = [];
87 87
             $interfaceUsageCount = [];
88 88
 
89
-            foreach($schema->getPossibleTypes($type) as $possibleType) {
89
+            foreach ($schema->getPossibleTypes($type) as $possibleType) {
90 90
                 $fields = $possibleType->getFields();
91 91
                 if (!isset($fields[$fieldName])) {
92 92
                     continue;
93 93
                 }
94 94
                 // This object type defines this field.
95 95
                 $suggestedObjectTypes[] = $possibleType->name;
96
-                foreach($possibleType->getInterfaces() as $possibleInterface) {
96
+                foreach ($possibleType->getInterfaces() as $possibleInterface) {
97 97
                     $fields = $possibleInterface->getFields();
98 98
                     if (!isset($fields[$fieldName])) {
99 99
                         continue;
Please login to merge, or discard this patch.
src/Validator/Rules/KnownArgumentNames.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                                     $parentType->name,
52 52
                                     Utils::suggestionList(
53 53
                                         $node->name->value,
54
-                                        array_map(function ($arg) { return $arg->name; }, $fieldDef->args)
54
+                                        array_map(function($arg) { return $arg->name; }, $fieldDef->args)
55 55
                                     )
56 56
                                 ),
57 57
                                 [$node]
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                                     $directive->name,
67 67
                                     Utils::suggestionList(
68 68
                                         $node->name->value,
69
-                                        array_map(function ($arg) { return $arg->name; }, $directive->args)
69
+                                        array_map(function($arg) { return $arg->name; }, $directive->args)
70 70
                                     )
71 71
                                 ),
72 72
                                 [$node]
Please login to merge, or discard this patch.
src/Validator/Rules/NoUndefinedVariables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                                     $varName,
47 47
                                     $operation->name ? $operation->name->value : null
48 48
                                 ),
49
-                                [ $node, $operation ]
49
+                                [$node, $operation]
50 50
                             ));
51 51
                         }
52 52
                     }
Please login to merge, or discard this patch.
src/Validator/Rules/NoFragmentCycles.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
         $this->spreadPathIndexByName = [];
36 36
 
37 37
         return [
38
-            NodeKind::OPERATION_DEFINITION => function () {
38
+            NodeKind::OPERATION_DEFINITION => function() {
39 39
                 return Visitor::skipNode();
40 40
             },
41
-            NodeKind::FRAGMENT_DEFINITION => function (FragmentDefinitionNode $node) use ($context) {
41
+            NodeKind::FRAGMENT_DEFINITION => function(FragmentDefinitionNode $node) use ($context) {
42 42
                 if (!isset($this->visitedFrags[$node->name->value])) {
43 43
                     $this->detectCycleRecursive($node, $context);
44 44
                 }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 $context->reportError(new Error(
88 88
                     self::cycleErrorMessage(
89 89
                         $spreadName,
90
-                        Utils::map($cyclePath, function ($s) {
90
+                        Utils::map($cyclePath, function($s) {
91 91
                             return $s->name->value;
92 92
                         })
93 93
                     ),
Please login to merge, or discard this patch.