@@ -22,10 +22,12 @@ |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - private function do(MiddlewareInterface $midleware) |
|
| 25 | + private function do { |
|
| 26 | + (MiddlewareInterface $midleware) |
|
| 26 | 27 | { |
| 27 | 28 | $this->midleware->add($midleware); |
| 28 | 29 | } |
| 30 | + } |
|
| 29 | 31 | |
| 30 | 32 | public function run(PeticionInterface $Peticion) |
| 31 | 33 | { |
@@ -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 | return $midleware($peticion, $next); |
| 24 | 24 | }; |
| 25 | 25 | } |