Method configure
has 54 lines of code (exceeds 25 allowed). Consider refactoring.
protected function configure()
{
$this->setName('check')
->addOption(
'report',
Method execute
has 33 lines of code (exceeds 25 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output)
{
$app = $this->getApplication();
$coverageFilePath = $app->getWorkingDirectory().'/coverage.xml';
Method runCoverage
has 26 lines of code (exceeds 25 allowed). Consider refactoring.
protected function runCoverage(InputInterface $input, OutputInterface $output, $coverageFilePath)
{
$app = $this->getApplication();
$phpVersion = $input->getOption('coverage-php-version');
Function execute
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output)
{
$app = $this->getApplication();
$coverageFilePath = $app->getWorkingDirectory().'/coverage.xml';
Avoid assigning values to variables in if clauses and the like (line '91', column '14').
protected function runCoverage(InputInterface $input, OutputInterface $output, $coverageFilePath)
{
$app = $this->getApplication();
$phpVersion = $input->getOption('coverage-php-version');
Avoid assigning values to variables in if clauses and the like (line '97', column '14').
protected function runCoverage(InputInterface $input, OutputInterface $output, $coverageFilePath)
{
$app = $this->getApplication();
$phpVersion = $input->getOption('coverage-php-version');
Avoid assigning values to variables in if clauses and the like (line '129', column '14').
protected function execute(InputInterface $input, OutputInterface $output)
{
$app = $this->getApplication();
$coverageFilePath = $app->getWorkingDirectory().'/coverage.xml';
Avoid assigning values to variables in if clauses and the like (line '124', column '17').
protected function execute(InputInterface $input, OutputInterface $output)
{
$app = $this->getApplication();
$coverageFilePath = $app->getWorkingDirectory().'/coverage.xml';
Avoid assigning values to variables in if clauses and the like (line '133', column '33').
protected function execute(InputInterface $input, OutputInterface $output)
{
$app = $this->getApplication();
$coverageFilePath = $app->getWorkingDirectory().'/coverage.xml';
Avoid assigning values to variables in if clauses and the like (line '137', column '60').
protected function execute(InputInterface $input, OutputInterface $output)
{
$app = $this->getApplication();
$coverageFilePath = $app->getWorkingDirectory().'/coverage.xml';
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
'--ignore-tests' => $input->getOption('ignore-tests'),
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
protected function runCoverage(InputInterface $input, OutputInterface $output, $coverageFilePath)
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_NONE,
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
if ($value = $input->getOption($option)) {
Parameter $output
has undeclared type \Symfony\Component\Console\Output\OutputInterface
protected function runCoverage(InputInterface $input, OutputInterface $output, $coverageFilePath)
Call to method writeln
from undeclared class \Symfony\Component\Console\Output\OutputInterface
$output->writeln(
Parameter $output
has undeclared type \Symfony\Component\Console\Output\OutputInterface
protected function execute(InputInterface $input, OutputInterface $output)
Argument #1 of this call to \preg_match
is typically a literal or constant but isn't, but argument #2 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
if (!preg_match('/^'.preg_quote($phpVersion).'(\D.*)?$/', PHP_VERSION)) {
Call to method writeln
from undeclared class \Symfony\Component\Console\Output\OutputInterface
$output->writeln(
Reference to constant VALUE_OPTIONAL
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_OPTIONAL,
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_NONE,
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_NONE,
Call to undeclared method \Phug\DevTool\Command\CheckCommand::setName
$this->setName('check')
Reference to constant VALUE_OPTIONAL
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_OPTIONAL,
Reference to constant VALUE_OPTIONAL
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_OPTIONAL,
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
$phpVersion = $input->getOption('coverage-php-version');
Reference to constant VALUE_OPTIONAL
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_OPTIONAL,
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
protected function execute(InputInterface $input, OutputInterface $output)
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
InputOption::VALUE_NONE,
There are no issues that match your filters.