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
Push — master ( 75a201...5e2ed9 )
by Dangerous
02:31
created
src/DiMaria.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     protected function getClassName(string $class): string
165 165
     {
166 166
         if (!$this->has($class)) {
167
-            throw new NotFoundException('Class or alias ' . $class . ' does not exist');
167
+            throw new NotFoundException('Class or alias '.$class.' does not exist');
168 168
         }
169 169
         while ($preference = $this->preferences[$class] ?? false) {
170 170
             $class = $preference;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                 $methodInfo = $this->getMethodInfo(new \ReflectionMethod($class, $method));
198 198
                 foreach ($instance as $methodParameters) {
199 199
                     $methodParams = $this->getParameters($methodInfo, $methodParameters);
200
-                    $callback = function ($params) use ($callback, $method, $methodParams) {
200
+                    $callback = function($params) use ($callback, $method, $methodParams) {
201 201
                         $object = $callback($params);
202 202
                         $object->$method(...$methodParams);
203 203
                         return $object;
@@ -212,14 +212,14 @@  discard block
 block discarded – undo
212 212
     {
213 213
         $constructor = (new \ReflectionClass($class))->getConstructor();
214 214
         if (!$constructor || !$constructor->getNumberOfParameters()) {
215
-            return function () use ($class) {
215
+            return function() use ($class) {
216 216
                 return new $class;
217 217
             };
218 218
         }
219 219
         $constructorInfo = $this->getMethodInfo($constructor);
220 220
         $predefinedParams = $this->params[$class] ?? [];
221 221
 
222
-        return function ($params) use ($class, $constructorInfo, $predefinedParams) {
222
+        return function($params) use ($class, $constructorInfo, $predefinedParams) {
223 223
             return new $class(...$this->getParameters($constructorInfo, $params + $predefinedParams));
224 224
         };
225 225
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
             } elseif ($param['type']) {
256 256
                 $parameters[] = $this->create($param['type']);
257 257
             } else {
258
-                throw new ContainerException('Required parameter $' . $param['name'] . ' is missing');
258
+                throw new ContainerException('Required parameter $'.$param['name'].' is missing');
259 259
             }
260 260
         }
261 261
         return $parameters;
Please login to merge, or discard this patch.