Showing 93 of 93 total issues
@throws type of renderFile
has undeclared type \Phug\RendererException
Open
Open
protected function renderFile($file, $locals = [], $options = null): string
- Exclude checks
Call to method scanDirectory
from undeclared class \Phug\Renderer
Open
Open
foreach ($this->renderer->scanDirectory($path) as $file) {
- Exclude checks
Argument 1 (input)
is int
but \str_pad()
takes string
Open
Open
str_pad($_nodes, 3, ' ', STR_PAD_LEFT).' '.
- Exclude checks
Call to method getLine
from undeclared class \Phug\Util\SourceLocationInterface
Open
Open
$locationLine = $location->getLine() - 1;
- Exclude checks
Call to method getChildren
from undeclared class \Phug\Ast\NodeInterface
Open
Open
foreach ($node->getChildren() as $child) {
- Exclude checks
Call to method run
from undeclared class \PHPUnit\TextUI\Command
Open
Open
return !$this->command->run($arguments, false);
- Exclude checks
Call to method renderFile
from undeclared class \Phug\Renderer
Open
Open
return $this->renderer->renderFile($file, $locals);
- Exclude checks
Call to method getOption
from undeclared class \Phug\Renderer
Open
Open
return $this->renderer->getOption('paths');
- Exclude checks
Checking instanceof against undeclared class \Phug\Parser\Node\DocumentNode
Open
Open
if (!($node instanceof DocumentNode) && ($location = $node->getSourceLocation())) {
- Exclude checks
Reference to constant class
from undeclared class \Phug\Renderer
Open
Open
return Renderer::class;
- Exclude checks
Checking instanceof against undeclared class \Phug\Parser\NodeInterface
Open
Open
if ($node instanceof NodeInterface && !($node instanceof DocumentNode) && !$list->offsetExists($node)) {
- Exclude checks
Call to method initAdapter
from undeclared class \Phug\Renderer
Open
Open
$this->renderer->initAdapter();
- Exclude checks
Checking instanceof against undeclared class \Phug\Ast\NodeInterface
Open
Open
if ($node instanceof AstNodeInterface) {
- Exclude checks
@throws type of setUpCoverage
has undeclared type \Phug\RendererException
Open
Open
protected function setUpCoverage(): void
- Exclude checks
Reference to parent from trait \Phug\Tester\TestCaseTrait
Open
Open
parent::setUp();
- Exclude checks
Argument 1 (input)
is int
but \str_pad()
takes string
Open
Open
str_pad($id, $pad, ' ', STR_PAD_LEFT).
- Exclude checks
Property \Phug\Tester\Cli->command
has undeclared type \PHPUnit\TextUI\Command
Open
Open
private $command;
- Exclude checks
Call to method getOffset
from undeclared class \Phug\Util\SourceLocationInterface
Open
Open
$this->coverage[$locationPath][$locationLine][$location->getOffset() - 1] = $covered;
- Exclude checks
Argument #2 of this call to \str_pad
is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order. Open
Open
str_pad('Total', $pad, ' ', STR_PAD_RIGHT).
- Exclude checks
Reference to parent from trait \Phug\Tester\TestCaseTrait
Open
Open
if (method_exists(parent::class, 'tearDown')) {
- Exclude checks