pug-php/pug-filter-base

View on GitHub

Showing 7 of 7 total issues

Avoid unused parameters such as '$options'.
Open

    public function __invoke($code, array $options = null)
Severity: Minor
Found in src/Pug3/Filter/Base.php by phpmd

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

        return $this->getNodeString($node, $compiler);
Severity: Critical
Found in src/Pug2/Filter/Base.php by phan

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

class Base extends BaseFilter
Severity: Minor
Found in src/Pug3/Filter/Base.php by phan

Class extends undeclared class \Jade\Filter\AbstractFilter
Open

class Base extends AbstractFilter
Severity: Critical
Found in src/Pug2/Filter/Base.php by phan

Parameter $node has undeclared type \Jade\Nodes\Filter
Open

    public function __invoke(Filter $node, Compiler $compiler)
Severity: Minor
Found in src/Pug2/Filter/Base.php by phan

Parameter $compiler has undeclared type \Jade\Compiler
Open

    public function __invoke(Filter $node, Compiler $compiler)
Severity: Minor
Found in src/Pug2/Filter/Base.php by phan

Class extends undeclared class \Pug\AbstractFilter
Open

class Base extends BaseFilter
Severity: Critical
Found in src/Pug3/Filter/Base.php by phan
Severity
Category
Status
Source
Language