@@ -13,8 +13,8 @@ |
||
13 | 13 | { |
14 | 14 | |
15 | 15 | /** |
16 | - * @param $module |
|
17 | - * @param $controller |
|
16 | + * @param string $module |
|
17 | + * @param string $controller |
|
18 | 18 | * @return Controller |
19 | 19 | */ |
20 | 20 | public static function resolveFromParams($module, $controller) |
@@ -16,7 +16,6 @@ |
||
16 | 16 | protected $command; |
17 | 17 | |
18 | 18 | /** |
19 | - * @param Command $methodCall |
|
20 | 19 | * @return Command |
21 | 20 | */ |
22 | 21 | public function __invoke(Command $command): Command |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Nip\Controllers\Controller; |
6 | 6 | use Nip\Dispatcher\Exceptions\InvalidCommandException; |
7 | -use Psr\Http\Message\RequestInterface; |
|
8 | 7 | use Psr\Http\Message\ResponseInterface; |
9 | 8 | |
10 | 9 | /** |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * Run the route action and return the response. |
36 | 36 | * |
37 | - * @return mixed |
|
37 | + * @return \Psr\Http\Message\ResponseInterface |
|
38 | 38 | */ |
39 | 39 | protected function runClosure() |
40 | 40 | { |
@@ -5,10 +5,6 @@ |
||
5 | 5 | use Nip\Dispatcher\Dispatcher; |
6 | 6 | use Nip\Dispatcher\Commands\Command; |
7 | 7 | use Nip\Dispatcher\Exceptions\InvalidCommandException; |
8 | - |
|
9 | -use League\Pipeline\PipelineInterface; |
|
10 | -use Nip\Dispatcher\Resolver\Pipeline\PipelineBuilder; |
|
11 | - |
|
12 | 8 | use Psr\Http\Message\RequestInterface; |
13 | 9 | use Psr\Http\Message\ResponseInterface; |
14 | 10 |