Showing 146 of 146 total issues
Call to undeclared method \Phug\Formatter\Format\TwigHtmlFormat::addPattern
Open
Open
$this->addPattern('explicit_closing_tag', static::EXPLICIT_CLOSING_TAG);
- Exclude checks
Call to method hasChildren
from undeclared class \Phug\Formatter\MarkupInterface
Open
Open
if ($isSelfClosing && $element->hasChildren()) {
- Exclude checks
Call to method getValue
from undeclared class \Phug\Formatter\Element\ExpressionElement
Open
Open
$this->formatCode($name->getValue(), $name->isChecked())
- Exclude checks
Call to method isChecked
from undeclared class \Phug\Formatter\Element\AbstractValueElement
Open
Open
$checked = method_exists($value, 'isChecked') && $value->isChecked();
- Exclude checks
Call to undeclared method format
in callable. Possible object type(s) for that method are \Phug\Formatter\Format\TwigXmlFormat
Open
Open
return implode('', array_map([$this, 'format'], $newElements));
- Exclude checks
Parameter $element
has undeclared type \Phug\Formatter\ElementInterface
Open
Open
protected function formatElementChildren(ElementInterface $element, $indentStep = 1)
- Exclude checks
Parameter $element
has undeclared type \Phug\Formatter\MarkupInterface
Open
Open
protected function isBlockTag(MarkupInterface $element)
- Exclude checks
Call to method getParent
from undeclared class \Phug\Formatter\MarkupInterface
Open
Open
for ($element = $element->getParent(); $element->hasParent(); $element = $element->getParent()) {
- Exclude checks
Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::format
Open
Open
return $this->format($element);
- Exclude checks
Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::throwException
Open
Open
$this->throwException(
- Exclude checks
Call to method getName
from undeclared class \Phug\Formatter\MarkupInterface
Open
Open
'<'.$element->getName().'/> but contains nested content.',
- Exclude checks
Checking instanceof against undeclared class \Phug\Formatter\Element\ExpressionElement
Open
Open
if ($value instanceof ExpressionElement) {
- Exclude checks
Call to method getValue
from undeclared class \Phug\Formatter\Element\ExpressionElement
Open
Open
if ($nonEmptyAttribute && in_array(trim($value->getValue()), ['', '""', "''"])) {
- Exclude checks
Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::getIndent
Open
Open
? $this->getNewLine().'%s'.$this->getIndent()
- Exclude checks
Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::attributesAssignmentsFromPairs
Open
Open
$newElements[] = $this->attributesAssignmentsFromPairs($arguments);
- Exclude checks
Class extends undeclared class \Phug\Formatter\Format\XhtmlFormat
Open
Open
abstract class AbstractTwigFormat extends XhtmlFormat
- Exclude checks
Reference to undeclared property \Phug\Formatter\AbstractTwigFormat->formatter
Open
Open
$childContent = $this->formatter->format($child);
- Exclude checks
Checking instanceof against undeclared class \Phug\Formatter\ElementInterface
Open
Open
if ($child instanceof ElementInterface) {
- Exclude checks
Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::format
Open
Open
$formattedName = $this->format($name);
- Exclude checks
Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::pattern
Open
Open
return $this->pattern(
- Exclude checks