pug-php/twig

View on GitHub

Showing 146 of 146 total issues

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

            $isSelfClosing || $element->isAutoClosed() || $element->belongsTo(

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

        if ($element->hasParent()) {

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

        $this->registerHelper($name.'_attribute_assignment', $handler);

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

    public function __invoke(ElementInterface $element)

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

                    $this->formatCode($name->getValue(), $name->isChecked())

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

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

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

            $newElements[] = $this->attributesAssignmentsFromPairs($arguments);

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

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

Parameter $compiler has undeclared type \Phug\CompilerInterface
Open

    public static function enableTwigFormatter(CompilerInterface $compiler)
Severity: Minor
Found in src/Phug/PugToTwig.php by phan

Reference to undeclared class \Phug\Formatter\Format\XhtmlFormat
Open

        parent::__construct($formatter);
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

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

        foreach ($element->getAssignments() as $assignment) {
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.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

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

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

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

            if ($child instanceof ElementInterface) {
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

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

            $this->pattern('doctype_dtd'),

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

        $this

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

        if ($isSelfClosing && $element->hasChildren()) {

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

                $this->throwException(

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

        $formattedName = $this->format($name);

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

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