$jsCoveragePerArea[$moduleDirectory->
getFilename()][$areaDirectory->
getFilename()] =
$xml;
} } $originalLoader =
$this->twig->
getLoader();
$this->twig->
setLoader(new ArrayLoader([ 'coverage-by-area-report.html.twig' =>
file_get_contents(self::TEMPLATE_FILE
),
]));
$jsCoverages =
[];
foreach ($jsCoveragePerArea as $coverageModuleName =>
$coverageModule) { $jsCoverages[$coverageModuleName] =
$this->
getCoverage($coverageModule);
} $data =
[ 'php' =>
[ 'shopware/platform' =>
$this->
getCoverage($phpCoveragePerArea),
],
'js' =>
$jsCoverages,
];
try { file_put_contents('coverageSummary.json',
json_encode($data));