Passed
Push — main ( 301afd...180138 )
by Roberto
04:34 queued 02:56
created
src/Core/Handler/BaseHandler.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,13 +56,13 @@
 block discarded – undo
56 56
         if($matcher instanceof MatchRoute) {
57 57
 
58 58
             foreach($this->middlewares as $middleware => $args){
59
-              $middlewareInstance = new $middleware();
60
-              $middlewareInstance->addMatcher($matcher);
61
-              $middlewareInstance->setRequest($this->request);
62
-              $middlewareResult = $middlewareInstance(...$args);
63
-              if($middlewareResult instanceof HttpResponse){
59
+                $middlewareInstance = new $middleware();
60
+                $middlewareInstance->addMatcher($matcher);
61
+                $middlewareInstance->setRequest($this->request);
62
+                $middlewareResult = $middlewareInstance(...$args);
63
+                if($middlewareResult instanceof HttpResponse){
64 64
                 return $middlewareResult;
65
-              }
65
+                }
66 66
             }
67 67
 
68 68
             $controller = new $matcher->controller();
Please login to merge, or discard this patch.
src/Core/Handler/AbstractHandler.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     protected $middlewares = array();
16 16
 
17 17
     public function __construct($request){
18
-      $this->request = $request;
18
+        $this->request = $request;
19 19
     }
20 20
 
21 21
     public function addMiddlewares($middlewares) {
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
 
25 25
 
26 26
     public function getResponse() : HttpResponse{
27
-      $matcher = $this->resolveRequest();
28
-      return $this->handle($matcher);
27
+        $matcher = $this->resolveRequest();
28
+        return $this->handle($matcher);
29 29
 
30 30
     }
31 31
 
32 32
 
33 33
 
34
-  }
34
+    }
35 35
 
Please login to merge, or discard this patch.
src/Core/Application.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * Returns the appropriate handler for the pending request
62 62
      *
63 63
      * @return AbstractHandler $handler
64
-    */
64
+     */
65 65
     public static function getHandler(): AbstractHandler
66 66
     {
67 67
         $regex = '/\.(?:'.implode('|', static::$_config->static_files_extensions).')$/';
Please login to merge, or discard this patch.
src/Http/Response/SuccessResponse.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Lepton\Http\Response;
4 4
 
5
- class SuccessResponse extends HttpResponse
5
+    class SuccessResponse extends HttpResponse
6 6
 {
7 7
 
8 8
     public function __construct(
Please login to merge, or discard this patch.
src/Http/Response/FileResponse.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Lepton\Http\Response;
4 4
 
5
- class FileResponse extends SuccessResponse
5
+    class FileResponse extends SuccessResponse
6 6
 {
7 7
 
8 8
     public function __construct(
Please login to merge, or discard this patch.
src/Http/Response/NotFoundResponse.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Lepton\Http\Response;
4 4
 
5
- class NotFoundResponse extends HttpResponse
5
+    class NotFoundResponse extends HttpResponse
6 6
 {
7 7
 
8 8
     public function __construct(
Please login to merge, or discard this patch.
src/Http/Response/InternalErrorResponse.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Lepton\Http\Response;
4 4
 
5
- class InternalErrorResponse extends HttpResponse
5
+    class InternalErrorResponse extends HttpResponse
6 6
 {
7 7
 
8 8
     public function __construct(
Please login to merge, or discard this patch.