src/Phug/DevTool/Command/CoverageCheckCommand.php
Call to method getArgument
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
Open
$xmlFile = realpath($input->getArgument('input-file'));
- Exclude checks
Reference to constant REQUIRED
from undeclared class \Symfony\Component\Console\Input\InputArgument
Open
Open
->addArgument('input-file', InputArgument::REQUIRED, 'The XML file to check coverage on')
- Exclude checks
Call to method writeln
from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open
Open
$output->writeln(
- Exclude checks
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
Open
$requiredCoverage = intval($input->getOption('required-coverage'));
- Exclude checks
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Call to method __construct
from undeclared class \SimpleXMLElement
Open
Open
$xml = new SimpleXMLElement(file_get_contents($xmlFile));
- Exclude checks
Call to method xpath
from undeclared class \SimpleXMLElement
Open
Open
$metrics = $xml->xpath('//metrics');
- Exclude checks
Call to method writeln
from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open
Open
$output->writeln("<fg=green>Pass: Code Coverage {$coverage}%!</>");
- Exclude checks
Call to undeclared method \Phug\DevTool\Command\CoverageCheckCommand::setName
Open
Open
$this->setName('coverage:check')
- Exclude checks
Call to method writeln
from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open
Open
$output->writeln('Validating code coverage...');
- Exclude checks
Reference to constant VALUE_OPTIONAL
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
Open
->addOption('required-coverage', null, InputOption::VALUE_OPTIONAL, 'The minimum coverage to pass', 80)
- Exclude checks
Call to method writeln
from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open
Open
$output->writeln('<fg=red>Error: Code coverage files not found. Please run `unit-tests:run`.</>');
- Exclude checks
Parameter $output
has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks