src/Pug3/Filter/Base.php
Avoid unused parameters such as '$options'. Open
Open
public function __invoke($code, array $options = null)
- 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
Class \Pug\Filter\Base
defined at /code/src/Pug3/Filter/Base.php:7
was previously defined as Class \Pug\Filter\Base
at /code/src/Pug2/Filter/Base.php:9
Open
Open
class Base extends BaseFilter
- Exclude checks
Class extends undeclared class \Pug\AbstractFilter
Open
Open
class Base extends BaseFilter
- Exclude checks