| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class DefaultController extends AbstractXController |
||
| 13 | { |
||
| 14 | protected $logger; |
||
| 15 | |||
| 16 | public function loadActions() |
||
| 17 | { |
||
| 18 | $handleWrongApi = [$this, 'handleApiVersionNotSpecified']; |
||
| 19 | |||
| 20 | $this->pushEntrypoint(new Action( |
||
| 21 | 'GET', |
||
| 22 | '/', |
||
| 23 | ['application/vnd.seedapp.v1+json' => [$this, 'indexAction']], |
||
| 24 | $handleWrongApi |
||
| 25 | )); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function handleApiVersionNotSpecified(Response $response): Response |
||
| 31 | } |
||
| 32 | |||
| 33 | public function indexAction( |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.