Passed
Branch master (d3e071)
by Nícollas
02:37
created
src/Http/Request.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
         $allWithExcession = $this->data;
296 296
         $except = explode(',', $except);
297 297
 
298
-        $except = array_map(function ($excession) {
298
+        $except = array_map(function($excession) {
299 299
             return trim(rtrim($excession));
300 300
         }, $except);
301 301
 
Please login to merge, or discard this patch.
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,9 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $path = $this->getParsedRoute();
105 105
 
106
-        if (!$path) return null;
106
+        if (!$path) {
107
+            return null;
108
+        }
107 109
 
108 110
         return "{$path['scheme']}://{$path['host']}{$this->path()}";
109 111
     }
@@ -198,7 +200,9 @@  discard block
 block discarded – undo
198 200
 
199 201
         if (!empty($diff)) {
200 202
             foreach ($routeParams as $index => $param) {
201
-                if (!isset($diff[$index])) return;
203
+                if (!isset($diff[$index])) {
204
+                    return;
205
+                }
202 206
 
203 207
                 if ($this->httpMethod != 'GET') {
204 208
                     $this->params[$param] = rawurldecode($diff[$index]);
@@ -300,7 +304,9 @@  discard block
 block discarded – undo
300 304
         }, $except);
301 305
 
302 306
         foreach ($except as $excession) {
303
-            if (!isset($this->data[$excession])) return;
307
+            if (!isset($this->data[$excession])) {
308
+                return;
309
+            }
304 310
 
305 311
             unset($allWithExcession[$excession]);
306 312
         }
@@ -376,7 +382,9 @@  discard block
 block discarded – undo
376 382
     {
377 383
         $authorizationHeader = $this->header('Authorization');
378 384
 
379
-        if (!$authorizationHeader) return null;
385
+        if (!$authorizationHeader) {
386
+            return null;
387
+        }
380 388
 
381 389
         if (preg_match("/^Bearer\s(.*)+$/", $authorizationHeader, $found)) {
382 390
             return $authorizationHeader;
Please login to merge, or discard this patch.