You are here

public function SiteAuditCheckCodebaseSizeFiles::getResultInfo in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Codebase/SizeFiles.php \SiteAuditCheckCodebaseSizeFiles::getResultInfo()

Implements \SiteAudit\Check\Abstract\getResultInfo().

Overrides SiteAuditCheckAbstract::getResultInfo

File

Check/Codebase/SizeFiles.php, line 36
Contains \SiteAudit\Check\Codebase\SizeFiles.

Class

SiteAuditCheckCodebaseSizeFiles
Class SiteAuditCheckCodebaseSizeFiles.

Code

public function getResultInfo() {
  if ($this->registry['size_files_kb'] < 1024) {
    return dt('Files: @size_files_kbkB', array(
      '@size_files_kb' => number_format($this->registry['size_files_kb']),
    ));
  }
  return dt('Files: @size_files_mbMB', array(
    '@size_files_mb' => number_format($this->registry['size_files_kb'] / 1024, 2),
  ));
}