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 ( 9449cf...4032bb )
by Steeven
02:31
created
src/Http/Router.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $this->handleExtensionRequest();
50 50
         } else {
51 51
             $uriPath = urldecode(
52
-                parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH)
52
+                parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
53 53
             );
54 54
 
55 55
             $uriPathParts = explode('public/', $uriPath);
@@ -304,8 +304,8 @@  discard block
 block discarded – undo
304 304
     public function handleAppRequest(FrameworkModuleDataStructure $app)
305 305
     {
306 306
         // Find App module
307
-        foreach([null,'modules', 'plugins'] as $additionalSegment) {
308
-            if(empty($additionalSegment)) {
307
+        foreach ([null, 'modules', 'plugins'] as $additionalSegment) {
308
+            if (empty($additionalSegment)) {
309 309
                 $segments = [
310 310
                     $app->getParameter(),
311 311
                     $this->uri->segments->first(),
@@ -344,11 +344,11 @@  discard block
 block discarded – undo
344 344
                 $uriRoutedSegments = array_diff($uriSegments,
345 345
                     array_slice($uriSegments, ($numOfUriSegments - $i)));
346 346
 
347
-                if(count($uriRoutedSegments)) {
348
-                    if($module instanceof FrameworkModuleDataStructure) {
347
+                if (count($uriRoutedSegments)) {
348
+                    if ($module instanceof FrameworkModuleDataStructure) {
349 349
                         $moduleSegments = $module->getSegments();
350 350
 
351
-                        if(count($moduleSegments)) {
351
+                        if (count($moduleSegments)) {
352 352
                             $uriRoutedSegments = array_merge($moduleSegments, $uriRoutedSegments);
353 353
                         }
354 354
                     }
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
                 if (class_exists($controllerClassName)) {
441 441
                     $this->addresses->any(
442 442
                         '/',
443
-                        function () use ($controllerClassName) {
443
+                        function() use ($controllerClassName) {
444 444
                             return new $controllerClassName();
445 445
                         }
446 446
                     );
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
             if (class_exists($controllerClassName)) {
456 456
                 $this->addresses->any(
457 457
                     '/',
458
-                    function () use ($controllerClassName) {
458
+                    function() use ($controllerClassName) {
459 459
                         return new $controllerClassName();
460 460
                     }
461 461
                 );
@@ -507,12 +507,12 @@  discard block
 block discarded – undo
507 507
                 );
508 508
             } elseif (preg_match("/([a-zA-Z0-9\\\]+)(@)([a-zA-Z0-9\\\]+)/", $closure, $matches)) {
509 509
                 $this->setController(
510
-                    (new KernelControllerDataStructure($matches[ 1 ]))
511
-                        ->setRequestMethod($matches[ 3 ]),
510
+                    (new KernelControllerDataStructure($matches[1]))
511
+                        ->setRequestMethod($matches[3]),
512 512
                     $uriSegments
513 513
                 );
514 514
             } elseif ($theme = presenter()->theme) {
515
-                if($theme->use === true) {
515
+                if ($theme->use === true) {
516 516
                     if ( ! presenter()->partials->offsetExists('content') && $closure !== '') {
517 517
                         presenter()->partials->offsetSet('content', $closure);
518 518
                     }
Please login to merge, or discard this patch.
src/Cli/Commanders/Registry.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function update()
113 113
     {
114
-        if($this->optionModules) {
114
+        if ($this->optionModules) {
115 115
             modules()->updateRegistry();
116
-        } elseif($this->optionLanguages) {
116
+        } elseif ($this->optionLanguages) {
117 117
             language()->updateRegistry();
118 118
         } else {
119 119
             modules()->updateRegistry();
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function flush()
134 134
     {
135
-        if($this->optionModules) {
135
+        if ($this->optionModules) {
136 136
             modules()->flushRegistry();
137
-        } elseif($this->optionLanguages) {
137
+        } elseif ($this->optionLanguages) {
138 138
             language()->flushRegistry();
139 139
         } else {
140 140
             modules()->flushRegistry();
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function metadata()
186 186
     {
187
-        if($this->optionModules) {
187
+        if ($this->optionModules) {
188 188
             $line = PHP_EOL . print_r(modules()->getRegistry(), true);
189
-        } elseif($this->optionLanguages) {
189
+        } elseif ($this->optionLanguages) {
190 190
             $line = PHP_EOL . print_r(language()->getRegistry(), true);
191 191
         } else {
192 192
             $line = PHP_EOL . print_r(modules()->getRegistry(), true);
193
-            $line.= PHP_EOL . print_r(language()->getRegistry(), true);
193
+            $line .= PHP_EOL . print_r(language()->getRegistry(), true);
194 194
         }
195 195
 
196 196
         if (isset($line)) {
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Migration.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $className = studlycase(pathinfo($this->optionFilename, PATHINFO_FILENAME));
104 104
 
105
-        if(empty($this->optionFileVersion)) {
105
+        if (empty($this->optionFileVersion)) {
106 106
             $filename = date('YmdHis') . '_' . underscore($this->optionFilename);
107 107
         } else {
108 108
             $filename = $this->optionFileVersion . '_' . underscore($this->optionFilename);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $filePath = PATH_DATABASE . 'migrations' . DIRECTORY_SEPARATOR;
112 112
 
113
-        if( ! empty($this->optionPath) ) {
113
+        if ( ! empty($this->optionPath)) {
114 114
             $filePath = $filePath . $this->optionPath;
115 115
         }
116 116
 
@@ -133,15 +133,15 @@  discard block
 block discarded – undo
133 133
             exit(EXIT_ERROR);
134 134
         }
135 135
 
136
-        $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m');
137
-        $vars[ 'BASE_MIGRATION' ] = 'O2System\Framework\Models\Sql\Migration';
136
+        $vars['CREATE_DATETIME'] = date('d/m/Y H:m');
137
+        $vars['BASE_MIGRATION'] = 'O2System\Framework\Models\Sql\Migration';
138 138
 
139
-        if($this->optionNoSql) {
140
-            $vars[ 'BASE_MIGRATION' ] = 'O2System\Framework\Models\NoSql\Migration';
139
+        if ($this->optionNoSql) {
140
+            $vars['BASE_MIGRATION'] = 'O2System\Framework\Models\NoSql\Migration';
141 141
         }
142 142
 
143
-        $vars[ 'CLASS' ] = $className;
144
-        $vars[ 'FILEPATH' ] = $filePath;
143
+        $vars['CLASS'] = $className;
144
+        $vars['FILEPATH'] = $filePath;
145 145
 
146 146
         $phpTemplate = <<<PHPTEMPLATE
147 147
 <?php
Please login to merge, or discard this patch.