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 ( 312062...7faace )
by
unknown
02:02
created
src/Cli/Router.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function parseRequest()
65 65
     {
66
-        $argv = $_SERVER[ 'argv' ];
66
+        $argv = $_SERVER['argv'];
67 67
 
68
-        if ($_SERVER[ 'SCRIPT_NAME' ] === $_SERVER[ 'argv' ][ 0 ]) {
68
+        if ($_SERVER['SCRIPT_NAME'] === $_SERVER['argv'][0]) {
69 69
             array_shift($argv);
70 70
 
71 71
             if (empty($argv)) {
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
             }
74 74
         }
75 75
 
76
-        $this->string = str_replace(['/', '\\', ':'], '/', $argv[ 0 ]);
76
+        $this->string = str_replace(['/', '\\', ':'], '/', $argv[0]);
77 77
         $this->segments = explode('/', $this->string);
78 78
 
79
-        if (strpos($this->segments[ 0 ], '--') !== false
80
-            || strpos($this->segments[ 0 ], '-') !== false
79
+        if (strpos($this->segments[0], '--') !== false
80
+            || strpos($this->segments[0], '-') !== false
81 81
         ) {
82 82
             $options = $this->segments;
83 83
             $this->segments = [];
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
 
97 97
                 if (strpos($option, '=') !== false) {
98 98
                     $optionParts = explode('=', $option);
99
-                    $option = $optionParts[ 0 ];
100
-                    $value = $optionParts[ 1 ];
99
+                    $option = $optionParts[0];
100
+                    $value = $optionParts[1];
101 101
                 } else {
102 102
                     $value = current($options);
103 103
                 }
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
                 if (strpos($value, '--') === false
112 112
                     || strpos($value, '-') === false
113 113
                 ) {
114
-                    $_GET[ $option ] = $value;
114
+                    $_GET[$option] = $value;
115 115
                 } else {
116
-                    $_GET[ $option ] = null;
116
+                    $_GET[$option] = null;
117 117
                 }
118 118
             } else {
119 119
                 $keys = array_keys($_GET);
120
-                if(count($keys)) {
120
+                if (count($keys)) {
121 121
                     $key = end($keys);
122 122
                     $_GET[$key] = $option;
123 123
                 }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         }
126 126
 
127 127
         if (array_key_exists('verbose', $_GET) or array_key_exists('v', $_GET)) {
128
-            $_ENV[ 'VERBOSE' ] = true;
128
+            $_ENV['VERBOSE'] = true;
129 129
         }
130 130
 
131 131
         $this->parseSegments($this->segments);
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         $commanderRegistry = null;
261 261
         $uriSegments = [];
262 262
 
263
-        if(class_exists('O2System\Framework', false)) {
263
+        if (class_exists('O2System\Framework', false)) {
264 264
             $commandersDirectories = modules()->getDirs('Commanders');
265 265
         } else {
266 266
             $commandersDirectories = [
Please login to merge, or discard this patch.