function hackedProject::compute_details in Hacked! 8.2
Return a nice detailed report.
File
- src/
hackedProject.php, line 334
Class
- hackedProject
- Encapsulates a Hacked! project.
Namespace
Drupal\hackedCode
function compute_details() {
// Ensure we know the differences.
$report = $this
->compute_report();
$report['files'] = array();
// Add extra details about every file.
$states = array(
'access_denied' => HACKED_STATUS_PERMISSION_DENIED,
'missing' => HACKED_STATUS_DELETED,
'different' => HACKED_STATUS_HACKED,
'same' => HACKED_STATUS_UNHACKED,
);
foreach ($states as $state => $status) {
foreach ($this->result[$state] as $file) {
$report['files'][$file] = $status;
$report['diffable'][$file] = $this
->file_is_diffable($file);
}
}
return $report;
}