Passed
Push — master ( 0ac9a3...3f373d )
by Yohann
02:09
created
src/core/http/Request.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
         $path = $_SERVER['REQUEST_URI'] ?? '/';
11 11
         $position = strpos($path, '?');
12 12
 
13
-        if ($position === false) return $path;
13
+        if ($position === false) {
14
+            return $path;
15
+        }
14 16
         return substr($path, 0, $position);
15 17
     }
16 18
 
Please login to merge, or discard this patch.