Passed
Branch master (a83404)
by Henri
01:29
created
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.
src/DefinitionsTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
         }
70 70
 
71 71
         $routes[strval($index)] = [
72
-			'uri' => serialize(new Uri(self::getInstance()->getHost().self::getInstance()->getPrefix().$uri)),
73
-			'action' => (is_callable($closure)) ? serialize(new SerializableClosure($closure)) : serialize($closure),
74
-			'method' => strtoupper($method),
72
+            'uri' => serialize(new Uri(self::getInstance()->getHost().self::getInstance()->getPrefix().$uri)),
73
+            'action' => (is_callable($closure)) ? serialize(new SerializableClosure($closure)) : serialize($closure),
74
+            'method' => strtoupper($method),
75 75
             'middlewares' => [],
76 76
             'where' => [],
77 77
             'before' => [],
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     private static function checkDuplicity(string $uri, string $method): void
90 90
     {
91 91
         foreach(self::getInstance()->getRoutes() as $route){
92
-    		if( md5($route['uri'].$route['method']) === md5($uri.$method) ){
92
+            if( md5($route['uri'].$route['method']) === md5($uri.$method) ){
93 93
                 throw new \RuntimeException("There is already a route with the URI {$uri} and with the {$method} METHOD configured.");
94 94
             }
95 95
         }
Please login to merge, or discard this patch.