for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace crocodicstudio\crudbooster\controllers\ApiController;
trait ApiHooks
{
public function hookBefore(&$postdata)
$postdata
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function hookBefore(/** @scrutinizer ignore-unused */ &$postdata)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
public function hookAfter($postdata, &$result)
public function hookAfter(/** @scrutinizer ignore-unused */ $postdata, &$result)
$result
public function hookAfter($postdata, /** @scrutinizer ignore-unused */ &$result)
public function hookValidate(&$postdata)
public function hookValidate(/** @scrutinizer ignore-unused */ &$postdata)
public function hookQuery(&$query)
$query
public function hookQuery(/** @scrutinizer ignore-unused */ &$query)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.