@@ -73,15 +73,14 @@ final class Text
7373 /**
7474 * @var bool
7575 */
76- private $ determineBranchCoverage ;
76+ private $ determineBranchCoverage = false ;
7777
78- public function __construct (int $ lowUpperBound = 50 , int $ highLowerBound = 90 , bool $ showUncoveredFiles = false , bool $ showOnlySummary = false , bool $ determineBranchCoverage = false )
78+ public function __construct (int $ lowUpperBound = 50 , int $ highLowerBound = 90 , bool $ showUncoveredFiles = false , bool $ showOnlySummary = false )
7979 {
80- $ this ->lowUpperBound = $ lowUpperBound ;
81- $ this ->highLowerBound = $ highLowerBound ;
82- $ this ->showUncoveredFiles = $ showUncoveredFiles ;
83- $ this ->showOnlySummary = $ showOnlySummary ;
84- $ this ->determineBranchCoverage = $ determineBranchCoverage ;
80+ $ this ->lowUpperBound = $ lowUpperBound ;
81+ $ this ->highLowerBound = $ highLowerBound ;
82+ $ this ->showUncoveredFiles = $ showUncoveredFiles ;
83+ $ this ->showOnlySummary = $ showOnlySummary ;
8584 }
8685
8786 public function process (CodeCoverage $ coverage , bool $ showColors = false ): string
@@ -351,6 +350,11 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
351350 return $ output . \PHP_EOL ;
352351 }
353352
353+ public function setDetermineBranchCoverage (bool $ determineBranchCoverage ): void
354+ {
355+ $ this ->determineBranchCoverage = $ determineBranchCoverage ;
356+ }
357+
354358 private function getCoverageColor (int $ numberOfCoveredElements , int $ totalNumberOfElements ): string
355359 {
356360 $ coverage = Util::percent (
0 commit comments