x Sorry, these patches are not available anymore due to data migration. Please run a fresh inspection.
Passed
Push — master ( 17ee61...117441 )
by Petr
02:51 queued 12s
created
php-src/Redirect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         if (0 !== strncmp('cli', PHP_SAPI, 3)) {
22 22
             if (true !== headers_sent()) {
23 23
                 if ($step) {
24
-                    header( 'Refresh:' . $step . ';url=' . $this->removeNullBytes($redirectTo) );
24
+                    header('Refresh:' . $step . ';url=' . $this->removeNullBytes($redirectTo));
25 25
                 } else {
26 26
                     header('Location: ' . $this->removeNullBytes($redirectTo), true, $targetMethod);
27 27
                     exit(0);
Please login to merge, or discard this patch.
php-src/Handler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function getAddress(): ?string
70 70
     {
71
-        return $this->source ? $this->rebuild()->source->getAddress() : null ;
71
+        return $this->source ? $this->rebuild()->source->getAddress() : null;
72 72
     }
73 73
 
74 74
     protected function rebuild(): self
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $parts              = explode($argSeparator, $queryString);
112 112
 
113 113
         foreach ($parts as $part) {
114
-            list($paramName, $paramValue)   = array_pad(explode('=', $part, 2), 2, '');
114
+            list($paramName, $paramValue) = array_pad(explode('=', $part, 2), 2, '');
115 115
 
116 116
             switch ($decType) {
117 117
                 case PHP_QUERY_RFC3986:
@@ -134,14 +134,14 @@  discard block
 block discarded – undo
134 134
                 $keys           = [$paramName];
135 135
             }
136 136
 
137
-            $target         = &$result;
137
+            $target = &$result;
138 138
 
139 139
             foreach ($keys as $index) {
140 140
                 if ('' === $index) {
141 141
                     if (isset($target)) {
142 142
                         if (is_array($target)) {
143
-                            $intKeys        = array_filter(array_keys($target), 'is_int');
144
-                            $index  = count($intKeys) ? max($intKeys)+1 : 0;
143
+                            $intKeys = array_filter(array_keys($target), 'is_int');
144
+                            $index  = count($intKeys) ? max($intKeys) + 1 : 0;
145 145
                         } else {
146 146
                             $target = [$target];
147 147
                             $index  = 1;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                     $target[$index] = [$target[$index]];
155 155
                 }
156 156
 
157
-                $target         = &$target[$index];
157
+                $target = &$target[$index];
158 158
             }
159 159
 
160 160
             if (is_array($target)) {
Please login to merge, or discard this patch.