Passed
Push — master ( c1faee...1058d7 )
by Nícollas
01:48
created
src/Router/RouteCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         $methods = array_map("strtoupper", $methods);
106 106
 
107
-        array_map(function ($method) use ($uri, $callback) {
107
+        array_map(function($method) use ($uri, $callback) {
108 108
             $this->routes[$method][$uri] = $this->addRouter($uri, $callback);
109 109
         }, $methods);
110 110
     }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
         $this->resolveRequestMethod();
266 266
 
267
-        if(!isset($this->routes[$this->requestMethod])) {
267
+        if (!isset($this->routes[$this->requestMethod])) {
268 268
             $this->throwException(
269 269
                 "badRequest",
270 270
                 BadMethodCallException::class,
Please login to merge, or discard this patch.
src/Router/Middlewares/MiddlewareCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function resolveNestedMiddleware(Array $middlewares): void
146 146
     {
147
-        $this->queue = array_map(function ($middleware) {
147
+        $this->queue = array_map(function($middleware) {
148 148
             $middleware = trim(rtrim($middleware));
149 149
 
150 150
             return $this->instanceMiddleware($middleware);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
         return $currentMiddleware->handle(
243 243
             $this->currentRequest,
244
-            fn () => $this->next()
244
+            fn() => $this->next()
245 245
         );
246 246
     }
247 247
 }
Please login to merge, or discard this patch.
src/Traits/RouteManagerUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function where(array $matches)
15 15
     {
16
-        array_map(function ($key, $value) {
16
+        array_map(function($key, $value) {
17 17
             $this->where[$key] = $value;
18 18
         }, array_keys($matches), $matches);
19 19
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function name(String $name, Bool $ignoreDefault = false)
94 94
     {
95
-        if($ignoreDefault) {
95
+        if ($ignoreDefault) {
96 96
             $this->name = $name;
97 97
         } else {
98 98
             $this->name = $this->defaultName . $name;
Please login to merge, or discard this patch.