for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace example\controllers;
use Tebe\Pvc\Controller\BaseController;
class IndexController extends BaseController
{
public function httpMethods()
return [
'index' => ['GET'],
'features' => ['GET'],
'contact' => ['GET'],
'post' => ['POST']
];
}
public function indexAction()
return $this->render('index');
public function featuresAction()
return $this->render('features');
public function contactAction(int $a, int $b)
$b
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function contactAction(int $a, /** @scrutinizer ignore-unused */ int $b)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$a
public function contactAction(/** @scrutinizer ignore-unused */ int $a, int $b)
return $this->render('contact');
public function postAction()
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.