File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ private function buildDirectoryStructure(ProcessedCodeCoverageData $data): array
140140 {
141141 $ result = [];
142142
143+ $ lineCoverage = $ data ->lineCoverage ();
144+ $ functionCoverage = $ data ->functionCoverage ();
145+
143146 foreach ($ data ->coveredFiles () as $ originalPath ) {
144147 $ path = explode (DIRECTORY_SEPARATOR , $ originalPath );
145148 $ pointer = &$ result ;
@@ -156,8 +159,8 @@ private function buildDirectoryStructure(ProcessedCodeCoverageData $data): array
156159 }
157160
158161 $ pointer = [
159- 'lineCoverage ' => $ data -> lineCoverage () [$ originalPath ] ?? [],
160- 'functionCoverage ' => $ data -> functionCoverage () [$ originalPath ] ?? [],
162+ 'lineCoverage ' => $ lineCoverage [$ originalPath ] ?? [],
163+ 'functionCoverage ' => $ functionCoverage [$ originalPath ] ?? [],
161164 ];
162165 }
163166
You can’t perform that action at this time.
0 commit comments