@@ -92,14 +92,14 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
9292 $ report = $ coverage ->getReport ();
9393
9494 $ colors = [
95- 'header ' => '' ,
96- 'classes ' => '' ,
97- 'methods ' => '' ,
98- 'lines ' => '' ,
99- 'branches ' => '' ,
100- 'paths ' => '' ,
101- 'reset ' => '' ,
102- 'eol ' => '' ,
95+ 'header ' => '' ,
96+ 'classes ' => '' ,
97+ 'methods ' => '' ,
98+ 'lines ' => '' ,
99+ 'branches ' => '' ,
100+ 'paths ' => '' ,
101+ 'reset ' => '' ,
102+ 'eol ' => '' ,
103103 ];
104104
105105 if ($ showColors ) {
@@ -113,17 +113,17 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
113113 $ report ->numberOfMethods ()
114114 );
115115
116- $ colors ['lines ' ] = $ this ->coverageColor (
116+ $ colors ['lines ' ] = $ this ->coverageColor (
117117 $ report ->numberOfExecutedLines (),
118118 $ report ->numberOfExecutableLines ()
119119 );
120120
121- $ colors ['branches ' ] = $ this ->coverageColor (
121+ $ colors ['branches ' ] = $ this ->coverageColor (
122122 $ report ->numberOfExecutedBranches (),
123123 $ report ->numberOfExecutableBranches ()
124124 );
125125
126- $ colors ['paths ' ] = $ this ->coverageColor (
126+ $ colors ['paths ' ] = $ this ->coverageColor (
127127 $ report ->numberOfExecutedPaths (),
128128 $ report ->numberOfExecutablePaths ()
129129 );
@@ -228,14 +228,14 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
228228 $ classes = $ item ->classesAndTraits ();
229229
230230 foreach ($ classes as $ className => $ class ) {
231- $ classExecutableLines = 0 ;
232- $ classExecutedLines = 0 ;
233- $ classExecutableBranches = 0 ;
234- $ classExecutedBranches = 0 ;
235- $ classExecutablePaths = 0 ;
236- $ classExecutedPaths = 0 ;
237- $ coveredMethods = 0 ;
238- $ classMethods = 0 ;
231+ $ classExecutableLines = 0 ;
232+ $ classExecutedLines = 0 ;
233+ $ classExecutableBranches = 0 ;
234+ $ classExecutedBranches = 0 ;
235+ $ classExecutablePaths = 0 ;
236+ $ classExecutedPaths = 0 ;
237+ $ coveredMethods = 0 ;
238+ $ classMethods = 0 ;
239239
240240 foreach ($ class ['methods ' ] as $ method ) {
241241 if ($ method ['executableLines ' ] == 0 ) {
@@ -272,20 +272,20 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
272272
273273 ksort ($ classCoverage );
274274
275- $ methodColor = '' ;
276- $ pathsColor = '' ;
277- $ branchesColor = '' ;
278- $ linesColor = '' ;
279- $ resetColor = '' ;
275+ $ methodColor = '' ;
276+ $ pathsColor = '' ;
277+ $ branchesColor = '' ;
278+ $ linesColor = '' ;
279+ $ resetColor = '' ;
280280
281281 foreach ($ classCoverage as $ fullQualifiedPath => $ classInfo ) {
282282 if ($ this ->showUncoveredFiles || $ classInfo ['statementsCovered ' ] != 0 ) {
283283 if ($ showColors ) {
284- $ methodColor = $ this ->coverageColor ($ classInfo ['methodsCovered ' ], $ classInfo ['methodCount ' ]);
285- $ pathsColor = $ this ->coverageColor ($ classInfo ['pathsCovered ' ], $ classInfo ['pathsCount ' ]);
286- $ branchesColor = $ this ->coverageColor ($ classInfo ['branchesCovered ' ], $ classInfo ['branchesCount ' ]);
287- $ linesColor = $ this ->coverageColor ($ classInfo ['statementsCovered ' ], $ classInfo ['statementCount ' ]);
288- $ resetColor = $ colors ['reset ' ];
284+ $ methodColor = $ this ->coverageColor ($ classInfo ['methodsCovered ' ], $ classInfo ['methodCount ' ]);
285+ $ pathsColor = $ this ->coverageColor ($ classInfo ['pathsCovered ' ], $ classInfo ['pathsCount ' ]);
286+ $ branchesColor = $ this ->coverageColor ($ classInfo ['branchesCovered ' ], $ classInfo ['branchesCount ' ]);
287+ $ linesColor = $ this ->coverageColor ($ classInfo ['statementsCovered ' ], $ classInfo ['statementCount ' ]);
288+ $ resetColor = $ colors ['reset ' ];
289289 }
290290
291291 $ output .= PHP_EOL . $ fullQualifiedPath . PHP_EOL
0 commit comments