public function SiteAuditCheckCodebaseManagedFileSize::getResultInfo in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Codebase/ManagedFileSize.php \SiteAuditCheckCodebaseManagedFileSize::getResultInfo()
Implements \SiteAudit\Check\Abstract\getResultInfo().
Overrides SiteAuditCheckAbstract::getResultInfo
File
- Check/
Codebase/ ManagedFileSize.php, line 34 - Contains \SiteAudit\Check\Codebase\ManagedFileSize.
Class
- SiteAuditCheckCodebaseManagedFileSize
- Class SiteAuditCheckCodebaseManagedFileSize.
Code
public function getResultInfo() {
if ($this->registry['managed_filesize'] < 1048576) {
return dt('Managed file size: @managed_filesize_kbkB', array(
'@managed_filesize_kb' => number_format($this->registry['managed_filesize'] / 1024, 2),
));
}
return dt('Managed file size: @managed_filesize_mbMB', array(
'@managed_filesize_mb' => number_format($this->registry['managed_filesize'] / 1048576, 2),
));
}