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 ( 21c599...486f90 )
by Šimon
03:24
created
src/Executor/Promise/Adapter/SyncPromise.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public static function runQueue() : void
49 49
     {
50 50
         $q = self::$queue;
51
-        while ($q !== null && ! $q->isEmpty()) {
51
+        while ($q !== null && !$q->isEmpty()) {
52 52
             $task = $q->dequeue();
53 53
             $task();
54 54
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         if ($executor === null) {
63 63
             return;
64 64
         }
65
-        self::getQueue()->enqueue(function () use ($executor) : void {
65
+        self::getQueue()->enqueue(function() use ($executor) : void {
66 66
             try {
67 67
                 $this->resolve($executor());
68 68
             } catch (Throwable $e) {
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
                 }
81 81
                 if (is_object($value) && method_exists($value, 'then')) {
82 82
                     $value->then(
83
-                        function ($resolvedValue) : void {
83
+                        function($resolvedValue) : void {
84 84
                             $this->resolve($resolvedValue);
85 85
                         },
86
-                        function ($reason) : void {
86
+                        function($reason) : void {
87 87
                             $this->reject($reason);
88 88
                         }
89 89
                     );
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     public function reject($reason) : self
111 111
     {
112
-        if (! $reason instanceof Throwable) {
112
+        if (!$reason instanceof Throwable) {
113 113
             throw new Exception('SyncPromise::reject() has to be called with an instance of \Throwable');
114 114
         }
115 115
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         );
140 140
 
141 141
         foreach ($this->waiting as $descriptor) {
142
-            self::getQueue()->enqueue(function () use ($descriptor) : void {
142
+            self::getQueue()->enqueue(function() use ($descriptor) : void {
143 143
                 /** @var self $promise */
144 144
                 [$promise, $onFulfilled, $onRejected] = $descriptor;
145 145
 
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     /**
196 196
      * @param callable(Throwable) : mixed $onRejected
197 197
      */
198
-    public function catch(callable $onRejected) : self
198
+    public function catch (callable $onRejected) : self
199 199
     {
200 200
         return $this->then(null, $onRejected);
201 201
     }
Please login to merge, or discard this patch.
src/Validator/Rules/ValuesOfCorrectType.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
 
52 52
         return [
53 53
             NodeKind::FIELD        => [
54
-                'enter' => static function (FieldNode $node) use (&$fieldName) {
54
+                'enter' => static function(FieldNode $node) use (&$fieldName) {
55 55
                     $fieldName = $node->name->value;
56 56
                 },
57 57
             ],
58
-            NodeKind::NULL         => static function (NullValueNode $node) use ($context, &$fieldName) {
58
+            NodeKind::NULL         => static function(NullValueNode $node) use ($context, &$fieldName) {
59 59
                 $type = $context->getInputType();
60
-                if (! ($type instanceof NonNull)) {
60
+                if (!($type instanceof NonNull)) {
61 61
                     return;
62 62
                 }
63 63
 
@@ -68,21 +68,21 @@  discard block
 block discarded – undo
68 68
                     )
69 69
                 );
70 70
             },
71
-            NodeKind::LST          => function (ListValueNode $node) use ($context, &$fieldName) {
71
+            NodeKind::LST          => function(ListValueNode $node) use ($context, &$fieldName) {
72 72
                 // Note: TypeInfo will traverse into a list's item type, so look to the
73 73
                 // parent input type to check if it is a list.
74 74
                 $type = Type::getNullableType($context->getParentInputType());
75
-                if (! $type instanceof ListOfType) {
75
+                if (!$type instanceof ListOfType) {
76 76
                     $this->isValidScalar($context, $node, $fieldName);
77 77
 
78 78
                     return Visitor::skipNode();
79 79
                 }
80 80
             },
81
-            NodeKind::OBJECT       => function (ObjectValueNode $node) use ($context, &$fieldName) {
81
+            NodeKind::OBJECT       => function(ObjectValueNode $node) use ($context, &$fieldName) {
82 82
                 // Note: TypeInfo will traverse into a list's item type, so look to the
83 83
                 // parent input type to check if it is a list.
84 84
                 $type = Type::getNamedType($context->getInputType());
85
-                if (! $type instanceof InputObjectType) {
85
+                if (!$type instanceof InputObjectType) {
86 86
                     $this->isValidScalar($context, $node, $fieldName);
87 87
 
88 88
                     return Visitor::skipNode();
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 $nodeFields   = iterator_to_array($node->fields);
94 94
                 $fieldNodeMap = array_combine(
95 95
                     array_map(
96
-                        static function ($field) {
96
+                        static function($field) {
97 97
                             return $field->name->value;
98 98
                         },
99 99
                         $nodeFields
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 );
103 103
                 foreach ($inputFields as $fieldName => $fieldDef) {
104 104
                     $fieldType = $fieldDef->getType();
105
-                    if (isset($fieldNodeMap[$fieldName]) || ! ($fieldType instanceof NonNull) || ($fieldDef->defaultValueExists())) {
105
+                    if (isset($fieldNodeMap[$fieldName]) || !($fieldType instanceof NonNull) || ($fieldDef->defaultValueExists())) {
106 106
                         continue;
107 107
                     }
108 108
 
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
                     );
115 115
                 }
116 116
             },
117
-            NodeKind::OBJECT_FIELD => static function (ObjectFieldNode $node) use ($context) {
117
+            NodeKind::OBJECT_FIELD => static function(ObjectFieldNode $node) use ($context) {
118 118
                 $parentType = Type::getNamedType($context->getParentInputType());
119 119
                 /** @var ScalarType|EnumType|InputObjectType|ListOfType|NonNull $fieldType */
120 120
                 $fieldType = $context->getInputType();
121
-                if ($fieldType || ! ($parentType instanceof InputObjectType)) {
121
+                if ($fieldType || !($parentType instanceof InputObjectType)) {
122 122
                     return;
123 123
                 }
124 124
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                     $node->name->value,
127 127
                     array_keys($parentType->getFields())
128 128
                 );
129
-                $didYouMean  = $suggestions
129
+                $didYouMean = $suggestions
130 130
                     ? 'Did you mean ' . Utils::orList($suggestions) . '?'
131 131
                     : null;
132 132
 
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
                     )
138 138
                 );
139 139
             },
140
-            NodeKind::ENUM         => function (EnumValueNode $node) use ($context, &$fieldName) {
140
+            NodeKind::ENUM         => function(EnumValueNode $node) use ($context, &$fieldName) {
141 141
                 $type = Type::getNamedType($context->getInputType());
142
-                if (! $type instanceof EnumType) {
142
+                if (!$type instanceof EnumType) {
143 143
                     $this->isValidScalar($context, $node, $fieldName);
144
-                } elseif (! $type->getValue($node->value)) {
144
+                } elseif (!$type->getValue($node->value)) {
145 145
                     $context->reportError(
146 146
                         new Error(
147 147
                             self::getBadValueMessage(
@@ -156,16 +156,16 @@  discard block
 block discarded – undo
156 156
                     );
157 157
                 }
158 158
             },
159
-            NodeKind::INT          => function (IntValueNode $node) use ($context, &$fieldName) {
159
+            NodeKind::INT          => function(IntValueNode $node) use ($context, &$fieldName) {
160 160
                 $this->isValidScalar($context, $node, $fieldName);
161 161
             },
162
-            NodeKind::FLOAT        => function (FloatValueNode $node) use ($context, &$fieldName) {
162
+            NodeKind::FLOAT        => function(FloatValueNode $node) use ($context, &$fieldName) {
163 163
                 $this->isValidScalar($context, $node, $fieldName);
164 164
             },
165
-            NodeKind::STRING       => function (StringValueNode $node) use ($context, &$fieldName) {
165
+            NodeKind::STRING       => function(StringValueNode $node) use ($context, &$fieldName) {
166 166
                 $this->isValidScalar($context, $node, $fieldName);
167 167
             },
168
-            NodeKind::BOOLEAN      => function (BooleanValueNode $node) use ($context, &$fieldName) {
168
+            NodeKind::BOOLEAN      => function(BooleanValueNode $node) use ($context, &$fieldName) {
169 169
                 $this->isValidScalar($context, $node, $fieldName);
170 170
             },
171 171
         ];
@@ -186,13 +186,13 @@  discard block
 block discarded – undo
186 186
         /** @var ScalarType|EnumType|InputObjectType|ListOfType|NonNull $locationType */
187 187
         $locationType = $context->getInputType();
188 188
 
189
-        if (! $locationType) {
189
+        if (!$locationType) {
190 190
             return;
191 191
         }
192 192
 
193 193
         $type = Type::getNamedType($locationType);
194 194
 
195
-        if (! $type instanceof ScalarType) {
195
+        if (!$type instanceof ScalarType) {
196 196
             $context->reportError(
197 197
                 new Error(
198 198
                     self::getBadValueMessage(
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             $suggestions = Utils::suggestionList(
240 240
                 Printer::doPrint($node),
241 241
                 array_map(
242
-                    static function (EnumValueDefinition $value) : string {
242
+                    static function(EnumValueDefinition $value) : string {
243 243
                         return $value->name;
244 244
                     },
245 245
                     $type->getValues()
Please login to merge, or discard this patch.