pug-php/twig

View on GitHub

Showing 146 of 146 total issues

Call to undeclared method \Phug\Formatter\Format\TwigHtmlFormat::addPattern
Open

        $this->addPattern('explicit_closing_tag', static::EXPLICIT_CLOSING_TAG);

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

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

Call to method getValue from undeclared class \Phug\Formatter\Element\ExpressionElement
Open

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

Call to method isChecked from undeclared class \Phug\Formatter\Element\AbstractValueElement
Open

                        $checked = method_exists($value, 'isChecked') && $value->isChecked();

Call to undeclared method format in callable. Possible object type(s) for that method are \Phug\Formatter\Format\TwigXmlFormat
Open

        return implode('', array_map([$this, 'format'], $newElements));

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

    protected function formatElementChildren(ElementInterface $element, $indentStep = 1)

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

    protected function isBlockTag(MarkupInterface $element)

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

            for ($element = $element->getParent(); $element->hasParent(); $element = $element->getParent()) {

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

        return $this->format($element);

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

                $this->throwException(

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

                    '<'.$element->getName().'/> but contains nested content.',

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

        if ($value instanceof ExpressionElement) {

Call to method getValue from undeclared class \Phug\Formatter\Element\ExpressionElement
Open

            if ($nonEmptyAttribute && in_array(trim($value->getValue()), ['', '""', "''"])) {

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

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

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

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

Class extends undeclared class \Phug\Formatter\Format\XhtmlFormat
Open

abstract class AbstractTwigFormat extends XhtmlFormat
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

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

        $childContent = $this->formatter->format($child);

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\TwigXmlFormat::format
Open

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

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

        return $this->pattern(
Severity
Category
Status
Source
Language