Showing 7 of 7 total issues
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
Call to undeclared method \Pug\Filter\Base::getNodeString
Open
Open
return $this->getNodeString($node, $compiler);
- Exclude checks
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 \Jade\Filter\AbstractFilter
Open
Open
class Base extends AbstractFilter
- Exclude checks
Parameter $node
has undeclared type \Jade\Nodes\Filter
Open
Open
public function __invoke(Filter $node, Compiler $compiler)
- Exclude checks
Parameter $compiler
has undeclared type \Jade\Compiler
Open
Open
public function __invoke(Filter $node, Compiler $compiler)
- Exclude checks
Class extends undeclared class \Pug\AbstractFilter
Open
Open
class Base extends BaseFilter
- Exclude checks