pug-php/pug-symfony

View on GitHub
src/Pug/PugSymfonyBundle/Command/AssetsPublishCommand.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln($count.' '.($count === 1 ? 'directory' : 'directories').' scanned: '.implode(', ', $directories).'.');

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln($error->getMessage());

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln($error->getTraceAsString());

Argument 1 (pug) is \Pug\Pug but \Pug\PugSymfonyBundle\Command\AssetsPublishCommand::cacheTemplates() takes \Phug\Renderer defined at src/Pug/PugSymfonyBundle/Command/AssetsPublishCommand.php:29
Open

        [$directories, $success, $errors, $errorDetails] = $this->cacheTemplates($this->pugSymfonyEngine->getRenderer());

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

            $output->writeln("\n".($index + 1).') '.$detail['inputFile']);

Call to method getOption from undeclared class \Phug\Renderer
Open

        foreach ($pug->getOption('viewDirectories') as $viewDirectory) {

Call to method cacheDirectory from undeclared class \Phug\Renderer
Open

                $data = $pug->cacheDirectory($viewDirectory);

Parameter $input has undeclared type \Symfony\Component\Console\Input\InputInterface
Open

    protected function execute(InputInterface $input, OutputInterface $output): int

Reference to undeclared class \Symfony\Component\Console\Command\Command
Open

        parent::__construct(null);

Parameter $output has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open

    protected function outputError(OutputInterface $output, Throwable $error): void

Call to undeclared method \Pug\PugSymfonyBundle\Command\AssetsPublishCommand::setName
Open

        $this

Parameter $output has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open

    protected function execute(InputInterface $input, OutputInterface $output): int

Parameter $pug has undeclared type \Phug\Renderer
Open

    protected function cacheTemplates(Renderer $pug)

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln($success.' templates cached.');

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln($errors.' templates failed to be cached.');

Class extends undeclared class \Symfony\Component\Console\Command\Command
Open

class AssetsPublishCommand extends Command

Line exceeds 120 characters; contains 121 characters
Open

        [$directories, $success, $errors, $errorDetails] = $this->cacheTemplates($this->pugSymfonyEngine->getRenderer());

Line exceeds 120 characters; contains 127 characters
Open

        $output->writeln($count.' '.($count === 1 ? 'directory' : 'directories').' scanned: '.implode(', ', $directories).'.');

There are no issues that match your filters.

Category
Status