protected function colorizeCoverage($coverage, $format)
    {
        if ($coverage >= 90) {
            return sprintf('<info>%s</info>', $format);
        }

        if ($coverage >= 80) {
            return sprintf('<comment>%s</comment>', $format);
        }

        return sprintf('<fg=red>%s</fg=red>', $format);
    }
protected function colorizeCoverage($coverage, $format)
    {
        if ($coverage >= 90) {
            return sprintf('<info>%s</info>', $format);
        }

        if ($coverage >= 80) {
            return sprintf('<comment>%s</comment>', $format);
        }

        return sprintf('<fg=red>%s</fg=red>', $format);
    }
protected function colorizeCoverage ( $ coverage , $ format ) { if ( $ coverage >= 90 ) { return sprintf ( '<info>%s</info>' , $ format ) ; } if ( $ coverage >= 80 ) { return sprintf ( '<comment>%s</comment>' , $ format ) ; } return sprintf ( '<fg=red>%s</fg=red>' , $ format ) ; }
Colorize coverage.

* green  90% - 100% <info>
* yellow 80% -  90% <comment>
* red     0% -  80% <fg=red>

@param float  $coverage coverage
@param string $format   format string to colorize

@return string
Colorize coverage .