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 ( 09ff6d...312062 )
by
unknown
02:21
created
src/Services/Language.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
             $this->setDefaultLocale(reset($xDefault));
87 87
         }
88 88
 
89
-        if(class_exists('O2System\Framework', false) or class_exists('\O2System\Reactor', false)) {
90
-            if(services()->has('session')) {
89
+        if (class_exists('O2System\Framework', false) or class_exists('\O2System\Reactor', false)) {
90
+            if (services()->has('session')) {
91 91
                 session()->set('language', $this->getDefault());
92 92
             }
93 93
 
94
-            if(count($this->isLoaded)) {
95
-                foreach($this->isLoaded as $fileIndex => $filePath) {
94
+            if (count($this->isLoaded)) {
95
+                foreach ($this->isLoaded as $fileIndex => $filePath) {
96 96
                     unset($this->isLoaded[$fileIndex]);
97 97
                     $this->loadFile($fileIndex);
98 98
                 }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
         foreach ($filename as $file) {
179 179
             $file = dash($file);
180
-            if(! $this->isLoaded($file)) {
180
+            if ( ! $this->isLoaded($file)) {
181 181
                 if (is_file($file)) {
182 182
                     $this->parseFile($file);
183 183
                 } else {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         if ( ! empty($lines)) {
236 236
             $fileIndex = pathinfo($filePath, PATHINFO_FILENAME);
237 237
             $fileIndex = str_replace('_' . $this->getDefault(), '', $fileIndex);
238
-            $this->isLoaded[ $fileIndex ] = $filePath;
238
+            $this->isLoaded[$fileIndex] = $filePath;
239 239
 
240 240
             $this->lines = array_merge($this->lines, $lines);
241 241
         }
@@ -258,9 +258,9 @@  discard block
 block discarded – undo
258 258
         $lineOffset = strtoupper($line);
259 259
 
260 260
         if (empty($context)) {
261
-            $lineContent = isset($this->lines[ $lineOffset ]) ? $this->lines[ $lineOffset ] : $line;
261
+            $lineContent = isset($this->lines[$lineOffset]) ? $this->lines[$lineOffset] : $line;
262 262
         } else {
263
-            $line = isset($this->lines[ $lineOffset ]) ? $this->lines[ $lineOffset ] : $line;
263
+            $line = isset($this->lines[$lineOffset]) ? $this->lines[$lineOffset] : $line;
264 264
             array_unshift($context, $line);
265 265
 
266 266
             $lineContent = @call_user_func_array('sprintf', $context);
Please login to merge, or discard this patch.