Passed
Push — master ( 8b9701...6cad0a )
by Nícollas
02:00 queued 30s
created
src/Http/Request.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,9 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $parsedRoute = parse_url($this->fullUrl ?? "/");
71 71
 
72
-        if (empty($data)) return $parsedRoute;
72
+        if (empty($data)) {
73
+            return $parsedRoute;
74
+        }
73 75
 
74 76
         if (isset($parsedRoute[$data])) {
75 77
             return $parsedRoute[$data];
@@ -101,7 +103,9 @@  discard block
 block discarded – undo
101 103
     {
102 104
         $path = $this->getParsedRoute();
103 105
 
104
-        if (!$path) return null;
106
+        if (!$path) {
107
+            return null;
108
+        }
105 109
 
106 110
         return "{$path['scheme']}://{$path['host']}{$this->path()}";
107 111
     }
@@ -295,7 +299,9 @@  discard block
 block discarded – undo
295 299
         }, $except);
296 300
 
297 301
         foreach ($except as $excession) {
298
-            if (!isset($this->data[$excession])) return;
302
+            if (!isset($this->data[$excession])) {
303
+                return;
304
+            }
299 305
 
300 306
             unset($allWithExcession[$excession]);
301 307
         }
@@ -371,7 +377,9 @@  discard block
 block discarded – undo
371 377
     {
372 378
         $authorizationHeader = $this->header('Authorization');
373 379
 
374
-        if (!$authorizationHeader) return null;
380
+        if (!$authorizationHeader) {
381
+            return null;
382
+        }
375 383
 
376 384
         if (preg_match("/^Bearer\s(.*)+$/", $authorizationHeader, $found)) {
377 385
             return $authorizationHeader;
Please login to merge, or discard this patch.