for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace crocodicstudio\crudbooster\CBCoreModule;
trait Hooks
{
public function hookBeforeDelete($id)
$id
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function hookBeforeDelete(/** @scrutinizer ignore-unused */ $id)
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 hookAfterDelete($id)
public function hookAfterDelete(/** @scrutinizer ignore-unused */ $id)
public function hookBeforeEdit(&$arr, $id)
public function hookBeforeEdit(&$arr, /** @scrutinizer ignore-unused */ $id)
$arr
public function hookBeforeEdit(/** @scrutinizer ignore-unused */ &$arr, $id)
public function hookAfterEdit($id)
public function hookAfterEdit(/** @scrutinizer ignore-unused */ $id)
public function hookAfterAdd($id)
public function hookAfterAdd(/** @scrutinizer ignore-unused */ $id)
public function hookBeforeAdd(&$arr)
public function hookBeforeAdd(/** @scrutinizer ignore-unused */ &$arr)
public function hookQueryIndex(&$query)
$query
public function hookQueryIndex(/** @scrutinizer ignore-unused */ &$query)
public function hookRowIndex($index, &$value)
$index
public function hookRowIndex(/** @scrutinizer ignore-unused */ $index, &$value)
$value
public function hookRowIndex($index, /** @scrutinizer ignore-unused */ &$value)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.