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 ( d3d564...b12eee )
by
unknown
02:02
created
src/Containers/SplServiceContainer.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function attach($offset, SplServiceRegistry $service)
46 46
     {
47
-        $this->services[ $offset ] = $service;
47
+        $this->services[$offset] = $service;
48 48
     }
49 49
 
50 50
     // ------------------------------------------------------------------------
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function detach($offset)
75 75
     {
76
-        if (isset($this->services[ $offset ])) {
77
-            unset($this->services[ $offset ]);
76
+        if (isset($this->services[$offset])) {
77
+            unset($this->services[$offset]);
78 78
         }
79 79
     }
80 80
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function has($offset)
110 110
     {
111
-        return (bool)isset($this->services[ $offset ]);
111
+        return (bool)isset($this->services[$offset]);
112 112
     }
113 113
 
114 114
     // ------------------------------------------------------------------------
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function &__get($offset)
127 127
     {
128
-        $get[ $offset ] = $this->get($offset);
128
+        $get[$offset] = $this->get($offset);
129 129
 
130
-        return $get[ $offset ];
130
+        return $get[$offset];
131 131
     }
132 132
 
133 133
     // ------------------------------------------------------------------------
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function &get($offset, array $arguments = [])
146 146
     {
147
-        $get[ $offset ] = false;
147
+        $get[$offset] = false;
148 148
 
149 149
         if ($this->has($offset)) {
150
-            $service = $this->services[ $offset ];
150
+            $service = $this->services[$offset];
151 151
 
152 152
             if ($service instanceof SplServiceRegistry) {
153 153
                 if (empty($arguments)) {
@@ -162,24 +162,24 @@  discard block
 block discarded – undo
162 162
                     if ($DocComment = $service->getDocComment()) {
163 163
                         preg_match_all('/@inject\s(.*)/', $DocComment, $matches);
164 164
 
165
-                        if (count($matches[ 1 ])) {
166
-                            foreach ($matches[ 1 ] as $className) {
165
+                        if (count($matches[1])) {
166
+                            foreach ($matches[1] as $className) {
167 167
                                 $className = trim($className, '\\');
168 168
                                 $className = trim($className);
169 169
 
170 170
                                 $map = strtolower(get_class_name($className));
171 171
 
172
-                                if (isset($this->map[ $className ])) {
173
-                                    $map = $this->map[ $className ];
172
+                                if (isset($this->map[$className])) {
173
+                                    $map = $this->map[$className];
174 174
                                 }
175 175
 
176 176
                                 $variable = $map;
177
-                                $object =& $this->get($map);
177
+                                $object = & $this->get($map);
178 178
 
179 179
                                 preg_match_all('/[$](.*)\s(.*)/', trim($className), $classMatches);
180 180
 
181
-                                if (count($classMatches[ 1 ])) {
182
-                                    $variable = $classMatches[ 1 ][ 0 ];
181
+                                if (count($classMatches[1])) {
182
+                                    $variable = $classMatches[1][0];
183 183
                                 }
184 184
 
185 185
                                 $setterMethod = ucwords(str_replace(['-', '_'], ' ', $variable));
@@ -191,18 +191,18 @@  discard block
 block discarded – undo
191 191
                                 } elseif (method_exists($newServiceInstance, '__set')) {
192 192
                                     $newServiceInstance->__set($variable, $object);
193 193
                                 } else {
194
-                                    $newServiceInstance->{$variable} =& $object;
194
+                                    $newServiceInstance->{$variable} = & $object;
195 195
                                 }
196 196
                             }
197 197
                         }
198 198
                     }
199 199
 
200
-                    $get[ $offset ] = $newServiceInstance;
200
+                    $get[$offset] = $newServiceInstance;
201 201
                 }
202 202
             }
203 203
         }
204 204
 
205
-        return $get[ $offset ];
205
+        return $get[$offset];
206 206
     }
207 207
 
208 208
     // ------------------------------------------------------------------------
Please login to merge, or discard this patch.