1 | <?php |
||
17 | 1 | class IndexController |
|
18 | 1 | { |
|
19 | |||
20 | 2 | /** @var ViewEngine $view */ |
|
21 | private $view; |
||
22 | 2 | ||
23 | 1 | /** |
|
24 | * DragonController constructor. |
||
25 | 2 | */ |
|
26 | public function __construct(ViewEngine $view) |
||
27 | 1 | { |
|
28 | $this->view = $view; |
||
29 | } |
||
30 | 1 | ||
31 | /** |
||
32 | 1 | * @param ServerRequestInterface $request |
|
33 | * @param array $args |
||
34 | * @return ResponseInterface |
||
35 | */ |
||
36 | 1 | public function indexAction(ServerRequestInterface $request, array $args) : ResponseInterface |
|
42 | |||
43 | /** |
||
44 | * @param ServerRequestInterface $request |
||
45 | * @param array $args |
||
46 | * @return ResponseInterface |
||
47 | */ |
||
48 | public function learnAction(ServerRequestInterface $request, array $args) : ResponseInterface |
||
54 | } |
||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.