Passed
Branch v2-dev (b2175f)
by Henri
01:32
created
src/DefinitionsTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         $routes[$index] = [
67
-			'uri' => new Uri(self::getInstance()->getHost().self::getInstance()->getPrefix().$uri),
68
-			'action' => $closure,
69
-			'method' => strtoupper($method),
67
+            'uri' => new Uri(self::getInstance()->getHost().self::getInstance()->getPrefix().$uri),
68
+            'action' => $closure,
69
+            'method' => strtoupper($method),
70 70
             'middlewares' => [],
71 71
             'where' => null,
72 72
             'before' => [],
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     private static function checkDuplicity(string $uri, string $method): void
84 84
     {
85 85
         foreach(self::getInstance()->getRoutes() as $route){
86
-    		if( md5($route['uri'].$route['method']) === md5($uri.$method) ){
86
+            if( md5($route['uri'].$route['method']) === md5($uri.$method) ){
87 87
                 throw new \RuntimeException("There is already a route with the URI {$uri} and with the {$method} METHOD configured.");
88 88
             }
89 89
         }
Please login to merge, or discard this patch.
examples/Routes/default.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
 
36 36
 Router::get('/6my-accounttttt/{param1}/{param2}','HnrAzevedo\Router\Example\Controllers\User@requireLogin')
37
-      ->middleware([HnrAzevedo\Router\Example\Middleware\Auth::class,'Lasted']);
37
+        ->middleware([HnrAzevedo\Router\Example\Middleware\Auth::class,'Lasted']);
38 38
 
39 39
 Router::get('/7my-account/{:teste}','Controller\\User:my_account')->where([
40 40
     'teste'=>'[a-zA-Z]{1,10}'
Please login to merge, or discard this patch.