| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class IndexController extends BaseController |
||
| 8 | { |
||
| 9 | public function httpMethods() |
||
| 10 | { |
||
| 11 | return [ |
||
| 12 | 'index' => ['GET'], |
||
| 13 | 'features' => ['GET'], |
||
| 14 | 'contact' => ['GET'], |
||
| 15 | 'post' => ['POST'] |
||
| 16 | ]; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function indexAction() |
||
| 22 | } |
||
| 23 | |||
| 24 | public function featuresAction() |
||
| 25 | { |
||
| 26 | return $this->render('features'); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function contactAction(int $a, int $b) |
||
| 32 | } |
||
| 33 | |||
| 34 | public function postAction() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.