tbreuss /
pvc
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace example\controllers; |
||||
| 4 | |||||
| 5 | use Tebe\Pvc\Controller\BaseController; |
||||
| 6 | |||||
| 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() |
||||
| 20 | { |
||||
| 21 | return $this->render('index'); |
||||
| 22 | } |
||||
| 23 | |||||
| 24 | public function featuresAction() |
||||
| 25 | { |
||||
| 26 | return $this->render('features'); |
||||
| 27 | } |
||||
| 28 | |||||
| 29 | public function contactAction(int $a, int $b) |
||||
|
0 ignored issues
–
show
The parameter
$a is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 30 | { |
||||
| 31 | return $this->render('contact'); |
||||
| 32 | } |
||||
| 33 | |||||
| 34 | public function postAction() |
||||
| 35 | { |
||||
| 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.