for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
Check for code that has been commented out.
* Class Main. Default website entry point
* @package Apps\Controller\Front
class Main extends Controller
* Before action method call injection
public function before()
//self::$layout = 'other.php';
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have
checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that
someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.
* Default index action
* @return null|string
public function actionIndex()
$this->wtf = 'Test global variable';
return $this->view->render('main/index', ['t1' => 'test1', 't2' => 'test2']);
* Pass id inside example
* @param int $id
public function actionRead($id)
echo "Action read called" . $id;