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 ( 4f2ecb...531312 )
by Dangerous
07:26 queued 01:48
created
Category
src/DiMaria.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function setInjection(string $className, string $method, array $params = []): self
78 78
     {
79
-        if (! isset($this->injections[$className])) {
79
+        if (!isset($this->injections[$className])) {
80 80
             $this->injections[$className] = [];
81 81
         }
82
-        if (! isset($this->injections[$className][$method])) {
82
+        if (!isset($this->injections[$className][$method])) {
83 83
             $this->injections[$className][$method] = [];
84 84
         }
85 85
         $this->injections[$className][$method][] = $params;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function setParams(string $className, array $params): self
96 96
     {
97
-        $this->params[$className] = $params + ($this->params[$className] ?? []);
97
+        $this->params[$className] = $params + ($this->params[$className] ? ? []);
98 98
         return $this;
99 99
     }
100 100
 
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
             return $this->sharedInstance[$className];
122 122
         }
123 123
         $originalClassName = $className;
124
-        while ($alias = $this->aliases[$className] ?? false) {
124
+        while ($alias = $this->aliases[$className] ? ? false) {
125 125
             $params = $params + $alias['params'];
126 126
             $className = $alias['className'];
127 127
         }
128
-        $callback = $this->cache[$originalClassName] ?? $this->getCallback($className, $originalClassName);
128
+        $callback = $this->cache[$originalClassName] ? ? $this->getCallback($className, $originalClassName);
129 129
         $object = $callback($params);
130 130
         if (isset($this->shared[$originalClassName])) {
131 131
             $this->sharedInstance[$originalClassName] = $object;
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 $methodInfo = $this->getMethodInfo(new \ReflectionMethod($className, $method));
142 142
                 foreach ($instance as $methodParameters) {
143 143
                     $methodParams = $this->getParameters($methodInfo, $methodParameters);
144
-                    $callback = function ($params) use ($callback, $method, $methodParams) {
144
+                    $callback = function($params) use ($callback, $method, $methodParams) {
145 145
                         $object = $callback($params);
146 146
                         $object->$method(...$methodParams);
147 147
                         return $object;
@@ -157,14 +157,14 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $constructor = (new \ReflectionClass($className))->getConstructor();
159 159
 
160
-        if (! $constructor || ! $constructor->getNumberOfParameters()) {
161
-            return function ($params) use ($className) {
160
+        if (!$constructor || !$constructor->getNumberOfParameters()) {
161
+            return function($params) use ($className) {
162 162
                 return new $className;
163 163
             };
164 164
         }
165 165
         $constructorInfo = $this->getMethodInfo($constructor);
166
-        $predefinedParams = $this->params[$className] ?? [];
167
-        return function ($params) use ($className, $constructorInfo, $predefinedParams) {
166
+        $predefinedParams = $this->params[$className] ? ? [];
167
+        return function($params) use ($className, $constructorInfo, $predefinedParams) {
168 168
             return new $className(...$this->getParameters($constructorInfo, $params + $predefinedParams));
169 169
         };
170 170
     }
Please login to merge, or discard this patch.