Passed
Push — master ( d2743c...7dbeaf )
by Nícollas
01:44
created
src/Router/RouteCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
         $methods = array_map("strtoupper", $methods);
104 104
 
105
-        array_map(function ($method) use ($uri, $callback) {
105
+        array_map(function($method) use ($uri, $callback) {
106 106
             $this->routes[$method][$uri] = $this->addRouter($uri, $callback);
107 107
         }, $methods);
108 108
     }
Please login to merge, or discard this patch.
src/Helpers/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use MinasRouter\Helpers\Functions;
4 4
 
5
-if (! function_exists('router')) {
5
+if (!function_exists('router')) {
6 6
     /**
7 7
      * Method responsible for returning a
8 8
      * new instance of Functions.
Please login to merge, or discard this patch.
src/Http/Request.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function query(?String $name = null, ?String $asDefault = null)
145 145
     {
146
-        if(!$name) {
146
+        if (!$name) {
147 147
             return $this->queryStrings;
148 148
         }
149 149
 
@@ -295,7 +295,7 @@  discard block
 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
 
@@ -384,9 +384,9 @@  discard block
 block discarded – undo
384 384
     {
385 385
         $authorizationHeader = $this->header('Authorization');
386 386
 
387
-        if(!$authorizationHeader) return null;
387
+        if (!$authorizationHeader) return null;
388 388
 
389
-        if(preg_match("/^Bearer\s(.*)+$/", $authorizationHeader, $found)) {
389
+        if (preg_match("/^Bearer\s(.*)+$/", $authorizationHeader, $found)) {
390 390
             return $authorizationHeader;
391 391
         }
392 392
 
Please login to merge, or discard this patch.