File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ private function buildDirectoryStructure(ProcessedCodeCoverageData $data): array
140140 {
141141 $ result = [];
142142
143+ $ lineCoverage = $ data ->lineCoverage ();
144+ $ functionCoverage = $ data ->functionCoverage ();
143145 foreach ($ data ->coveredFiles () as $ originalPath ) {
144146 $ path = explode (DIRECTORY_SEPARATOR , $ originalPath );
145147 $ pointer = &$ result ;
@@ -156,8 +158,8 @@ private function buildDirectoryStructure(ProcessedCodeCoverageData $data): array
156158 }
157159
158160 $ pointer = [
159- 'lineCoverage ' => $ data -> lineCoverage () [$ originalPath ] ?? [],
160- 'functionCoverage ' => $ data -> functionCoverage () [$ originalPath ] ?? [],
161+ 'lineCoverage ' => $ lineCoverage [$ originalPath ] ?? [],
162+ 'functionCoverage ' => $ functionCoverage [$ originalPath ] ?? [],
161163 ];
162164 }
163165
You can’t perform that action at this time.
0 commit comments