pug-php/twig

View on GitHub

Showing 146 of 146 total issues

Checking instanceof against undeclared class \Phug\Formatter\MarkupInterface
Open

                    $firstChild instanceof MarkupInterface &&

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

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

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

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

Saw unextractable annotation for comment '* @return $compiler'
Open

     * @return $compiler
Severity: Info
Found in src/Phug/PugToTwig.php by phan

Class extends undeclared class \Phug\AbstractCompilerModule
Open

class TwigExtension extends AbstractCompilerModule
Severity: Critical
Found in src/Phug/TwigExtension.php by phan

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

    protected function formatAttributes(MarkupElement $element)

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

        $indentLevel = $this->formatter->getLevel();

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

        $this->setOptionsRecursive([

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

        return $this->pattern(

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

        $markup = $element->getContainer();

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

                $arguments[] = $this->formatAttributeAsArrayItem($attribute);

Reference to undeclared class \Phug\AbstractCompilerModule
Open

        parent::__construct($container);
Severity: Critical
Found in src/Phug/TwigExtension.php by phan

Checking instanceof against undeclared class \Phug\Formatter\Element\CodeElement
Open

        if ($child instanceof CodeElement &&
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

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

        $this->setPattern('doctype', $this->pattern(

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

    public function isWhiteSpaceSensitive(MarkupInterface $element)

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

                ? $this->getNewLine().'%s'.$this->getIndent()

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

        $compiler = new Compiler($options);
Severity: Critical
Found in src/Phug/PugToTwig.php by phan

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

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

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

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

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

    public function isSelfClosingTag(MarkupInterface $element, $isSelfClosing = false)
Severity
Category
Status
Source
Language