nilsabegg/sesame

View on GitHub
src/Sesame/Command/CrawlArticleCommand.php

Summary

Maintainability
A
0 mins
Test Coverage

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

class CrawlArticleCommand extends Command
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

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

            $output->writeln($exception->getMessage());
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

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

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

Call to method request from undeclared class \GuzzleHttp\Client
Open

            $response = $client->request('GET', $articleUrl);
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

Call to method __construct from undeclared class \GuzzleHttp\Client
Open

            $client = new Client();
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

Call to undeclared method \Sesame\Command\CrawlArticleCommand::setName
Open

        $this
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

Call to method getArgument from undeclared class \Symfony\Component\Console\Input\InputInterface
Open

        $articleUrl = $input->getArgument('articleUrl');
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

Reference to constant REQUIRED from undeclared class \Symfony\Component\Console\Input\InputArgument
Open

                InputArgument::REQUIRED,
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

Reference to constant VALUE_REQUIRED from undeclared class \Symfony\Component\Console\Input\InputOption
Open

                InputOption::VALUE_REQUIRED,
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

Call to method getOption from undeclared class \Symfony\Component\Console\Input\InputInterface
Open

        $crawlVariations = $input->getOption('crawlVariations');
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

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

        parent::__construct($name);
Severity: Critical
Found in src/Sesame/Command/CrawlArticleCommand.php by phan

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

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

Line exceeds 120 characters; contains 185 characters
Open

                'With this option you can control if Sesame will crawl the variations for the article too. Syntax "-cv0" to ignore variations or "--crawlVariations=1" to include them.',

There are no issues that match your filters.

Category
Status