phug-php/dev-tool

View on GitHub
src/Phug/DevTool/Command/CoverageCheckCommand.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        $xmlFile = realpath($input->getArgument('input-file'));

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

            ->addArgument('input-file', InputArgument::REQUIRED, 'The XML file to check coverage on')

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

            $output->writeln(

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

        $requiredCoverage = intval($input->getOption('required-coverage'));

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

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

Call to method __construct from undeclared class \SimpleXMLElement
Open

        $xml = new SimpleXMLElement(file_get_contents($xmlFile));

Call to method xpath from undeclared class \SimpleXMLElement
Open

        $metrics = $xml->xpath('//metrics');

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

        $output->writeln("<fg=green>Pass: Code Coverage {$coverage}%!</>");

Call to undeclared method \Phug\DevTool\Command\CoverageCheckCommand::setName
Open

        $this->setName('coverage:check')

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

        $output->writeln('Validating code coverage...');

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

            ->addOption('required-coverage', null, InputOption::VALUE_OPTIONAL, 'The minimum coverage to pass', 80)

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

            $output->writeln('<fg=red>Error: Code coverage files not found. Please run `unit-tests:run`.</>');

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

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

There are no issues that match your filters.

Category
Status