public function TemporaryFiles::getMessage in Security Review 8
Converts a result integer to a human-readable result message.
Parameters
int $result_const: The result integer.
Return value
string The human-readable result message.
Overrides Check::getMessage
File
- src/
Checks/ TemporaryFiles.php, line 115
Class
- TemporaryFiles
- Check for sensitive temporary files like settings.php~.
Namespace
Drupal\security_review\ChecksCode
public function getMessage($result_const) {
switch ($result_const) {
case CheckResult::SUCCESS:
return $this
->t('No sensitive temporary files were found.');
case CheckResult::FAIL:
return $this
->t('Sensitive temporary files were found on your files system.');
default:
return $this
->t('Unexpected result.');
}
}