public function addCheckResults(File $file, array $checkResults)
{
foreach ($checkResults as $checkResult) {
foreach ($checkResult->getViolations() as $violation) {
$key = $this->getArrayKey($violation);
if (!isset($this->report[$key])) {
$this->report[$key] = [];
}
$this->report[$key][] = ['file' => $file->getFilename(), 'line' => $violation->getLine(), 'column' => $violation->getColumn(), 'severity' => $violation->getSeverity(), 'message' => $violation->getMessage()];
}
}
}