@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | public function __construct() |
| 12 | 12 | { |
| 13 | - $this->start = function ($peticion){ |
|
| 13 | + $this->start = function($peticion) { |
|
| 14 | 14 | return $peticion; |
| 15 | 15 | }; |
| 16 | 16 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $next = $this->start; |
| 21 | 21 | |
| 22 | - $this->start = function (PeticionInterface $peticion) use ($midleware, $next) |
|
| 22 | + $this->start = function(PeticionInterface $peticion) use ($midleware, $next) |
|
| 23 | 23 | { |
| 24 | 24 | return $midleware($peticion, $next); |
| 25 | 25 | }; |
@@ -23,9 +23,11 @@ |
||
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - private function do(MiddlewareInterface $midleware) |
|
| 26 | + private function do { |
|
| 27 | + (MiddlewareInterface $midleware) |
|
| 27 | 28 | { |
| 28 | - $this->midleware->add($midleware); |
|
| 29 | + $this->midleware->add($midleware); |
|
| 30 | + } |
|
| 29 | 31 | } |
| 30 | 32 | |
| 31 | 33 | public function run(PeticionInterface $Peticion) |