protected function logCollectedSourceFiles(JsonFile $jsonFile)
    {
        $sourceFiles = $jsonFile->getSourceFiles();
        $numFiles = count($sourceFiles);

        $this->logger->info(sprintf('Found <info>%s</info> source file%s:', number_format($numFiles), $numFiles > 1 ? 's' : ''));

        foreach ($sourceFiles as $sourceFile) {
            /* @var $sourceFile \PhpCoveralls\Bundle\CoverallsBundle\Entity\SourceFile */
            $coverage = $sourceFile->reportLineCoverage();
            $template = '  - ' . $this->colorizeCoverage($coverage, '%6.2f%%') . ' %s';

            $this->logger->info(sprintf($template, $coverage, $sourceFile->getName()));
        }

        $coverage = $jsonFile->reportLineCoverage();
        $template = 'Coverage: ' . $this->colorizeCoverage($coverage, '%6.2f%% (%d/%d)');
        $metrics = $jsonFile->getMetrics();

        $this->logger->info(sprintf($template, $coverage, $metrics->getCoveredStatements(), $metrics->getStatements()));
    }
protected function logCollectedSourceFiles(JsonFile $jsonFile)
    {
        $sourceFiles = $jsonFile->getSourceFiles();
        $numFiles = count($sourceFiles);

        $this->logger->info(sprintf('Found <info>%s</info> source file%s:', number_format($numFiles), $numFiles > 1 ? 's' : ''));

        foreach ($sourceFiles as $sourceFile) {
            /* @var $sourceFile \PhpCoveralls\Bundle\CoverallsBundle\Entity\SourceFile */
            $coverage = $sourceFile->reportLineCoverage();
            $template = '  - ' . $this->colorizeCoverage($coverage, '%6.2f%%') . ' %s';

            $this->logger->info(sprintf($template, $coverage, $sourceFile->getName()));
        }

        $coverage = $jsonFile->reportLineCoverage();
        $template = 'Coverage: ' . $this->colorizeCoverage($coverage, '%6.2f%% (%d/%d)');
        $metrics = $jsonFile->getMetrics();

        $this->logger->info(sprintf($template, $coverage, $metrics->getCoveredStatements(), $metrics->getStatements()));
    }
protected function logCollectedSourceFiles ( JsonFile $ jsonFile ) { $ sourceFiles = $ jsonFile -> getSourceFiles ( ) ; $ numFiles = count ( $ sourceFiles ) ; $ this -> logger -> info ( sprintf ( 'Found <info>%s</info> source file%s:' , number_format ( $ numFiles ) , $ numFiles > 1 ? 's' : '' ) ) ; foreach ( $ sourceFiles as $ sourceFile ) { /* @var $sourceFile \PhpCoveralls\Bundle\CoverallsBundle\Entity\SourceFile */ $ coverage = $ sourceFile -> reportLineCoverage ( ) ; $ template = '  - ' . $ this -> colorizeCoverage ( $ coverage , '%6.2f%%' ) . ' %s' ; $ this -> logger -> info ( sprintf ( $ template , $ coverage , $ sourceFile -> getName ( ) ) ) ; } $ coverage = $ jsonFile -> reportLineCoverage ( ) ; $ template = 'Coverage: ' . $ this -> colorizeCoverage ( $ coverage , '%6.2f%% (%d/%d)' ) ; $ metrics = $ jsonFile -> getMetrics ( ) ; $ this -> logger -> info ( sprintf ( $ template , $ coverage , $ metrics -> getCoveredStatements ( ) , $ metrics -> getStatements ( ) ) ) ; }
Log collected source files.

@param JsonFile $jsonFile json file
Log collected source files .