src/Rules/UserTermExist.php
Avoid unused parameters such as '$attribute'. Open
Open
public function passes($attribute, $value)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private ?int $consultationUserId;
- Exclude checks