Passed
Branch v2-dev (abcc50)
by Henri
02:14
created
src/DefinitionsTrait.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
         
58 58
         self::checkDuplicity($uri,$method);
59 59
         
60
-		self::getInstance()->routes[] = [
61
-			'uri' => new Uri(self::getInstance()->host.self::getInstance()->prefix.$uri),
62
-			'action' => $closure,
63
-			'method' => strtoupper($method),
60
+        self::getInstance()->routes[] = [
61
+            'uri' => new Uri(self::getInstance()->host.self::getInstance()->prefix.$uri),
62
+            'action' => $closure,
63
+            'method' => strtoupper($method),
64 64
             'middlewares' => null,
65 65
             'where' => null,
66 66
             'before' => [],
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     private static function checkDuplicity(string $uri, string $method): void
76 76
     {
77 77
         foreach(self::getInstance()->routes as $route){
78
-    		if( md5($route['uri'].$route['method']) === md5($uri.$method) ){
78
+            if( md5($route['uri'].$route['method']) === md5($uri.$method) ){
79 79
                 throw new \RuntimeException("There is already a route with the URI {$uri} and with the {$method} METHOD configured.");
80 80
             }
81 81
         }
Please login to merge, or discard this patch.
examples/Middleware/Lasted.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 use Psr\Http\Server\RequestHandlerInterface;
9 9
 
10 10
 /** 
11
-  * @property string $error
12
-  */ 
11
+ * @property string $error
12
+ */ 
13 13
 class Lasted extends Middleware{
14 14
 
15 15
     public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
Please login to merge, or discard this patch.
examples/Middleware/Auth.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 use Psr\Http\Server\RequestHandlerInterface;
8 8
 
9 9
 /** 
10
-  * @property string $error
11
-  */ 
10
+ * @property string $error
11
+ */ 
12 12
 class Auth extends Middleware{
13 13
 
14 14
     public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
Please login to merge, or discard this patch.