composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

View File

@@ -7,7 +7,6 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\CodeCoverage\Report;
use SebastianBergmann\CodeCoverage\CodeCoverage;
@@ -81,7 +80,7 @@ final class Text
public function process(CodeCoverage $coverage, bool $showColors = false): string
{
$output = PHP_EOL . PHP_EOL;
$output = \PHP_EOL . \PHP_EOL;
$report = $coverage->getReport();
$colors = [
@@ -90,7 +89,7 @@ final class Text
'methods' => '',
'lines' => '',
'reset' => '',
'eol' => ''
'eol' => '',
];
if ($showColors) {
@@ -169,7 +168,7 @@ final class Text
$output .= $this->format($colors['lines'], $padding, $lines);
if ($this->showOnlySummary) {
return $output . PHP_EOL;
return $output . \PHP_EOL;
}
$classCoverage = [];
@@ -234,14 +233,13 @@ final class Text
$resetColor = $colors['reset'];
}
$output .= PHP_EOL . $fullQualifiedPath . PHP_EOL
$output .= \PHP_EOL . $fullQualifiedPath . \PHP_EOL
. ' ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' '
. ' ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor
;
. ' ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor;
}
}
return $output . PHP_EOL;
return $output . \PHP_EOL;
}
private function getCoverageColor(int $numberOfCoveredElements, int $totalNumberOfElements): string
@@ -280,6 +278,6 @@ final class Text
{
$reset = $color ? self::COLOR_RESET : '';
return $color . \str_pad($string, $padding) . $reset . PHP_EOL;
return $color . \str_pad($string, $padding) . $reset . \PHP_EOL;
}
}