pug-php/twig

View on GitHub

Showing 146 of 146 total issues

Call to method getAttributes from undeclared class \Phug\Formatter\Element\AssignmentElement
Open

                $attributes = iterator_to_array($attributesAssignment->getAttributes());

Call to method compile from undeclared class \Phug\Compiler
Open

        return $compiler->compile($pugCode);
Severity: Critical
Found in src/Phug/PugToTwig.php by phan

Checking instanceof against undeclared class \Phug\Renderer
Open

        if ($container instanceof Renderer) {
Severity: Critical
Found in src/Phug/TwigExtension.php by phan

Call to method isCodeBlock from undeclared class \Phug\Formatter\Element\CodeElement
Open

            $previous->isCodeBlock()
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::format
Open

            $this->format($value)

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::format
Open

            $this->format($name),

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::pattern
Open

                $this->pattern(

Parameter $attribute has undeclared type \Phug\Formatter\Element\AttributeElement
Open

            function (AttributeElement $attribute) use (&$arguments) {

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::pattern
Open

        return $this->pattern(

Call to undeclared method \Phug\Formatter\AbstractTwigFormat::setOptionsRecursive
Open

        $this
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

Parameter $formatter has undeclared type ?\Phug\Formatter
Open

    public function __construct(Formatter $formatter = null)

Call to method getAttributes from undeclared class \Phug\Formatter\Element\MarkupElement
Open

        foreach ($element->getAttributes() as $attribute) {
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

Reference to undeclared property \Phug\Formatter\AbstractTwigFormat->formatter
Open

        $this->formatter->setLevel($indentLevel);

Call to undeclared method \Phug\Formatter\Format\TwigXhtmlFormat::pattern
Open

            $this->pattern('doctype_language'),

Parameter $element has undeclared type \Phug\Formatter\ElementInterface
Open

    public function __invoke(ElementInterface $element)

Call to undeclared method \Phug\Formatter\Format\TwigXhtmlFormat::addPatterns
Open

        $this->addPatterns([

Call to method getChildren from undeclared class \Phug\Formatter\MarkupInterface
Open

            $visibleChildren = array_filter($element->getChildren(), function ($child) {

Parameter $element has undeclared type \Phug\Formatter\Element\MarkupElement
Open

    protected function formatPairTag($open, $close, MarkupElement $element)

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::pattern
Open

            $name = $this->pattern(

Parameter $element has undeclared type \Phug\Formatter\Element\MarkupElement
Open

    protected function formatPairTagChildren(MarkupElement $element)
Severity
Category
Status
Source
Language