You are here

public function SiteAuditCheckCodebaseSizeAll::getResultInfo in Site Audit 8.2

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

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

Overrides SiteAuditCheckAbstract::getResultInfo

File

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

Class

SiteAuditCheckCodebaseSizeAll
Class SiteAuditCheckCodebaseSizeAll.

Code

public function getResultInfo() {
  if ($this->registry['size_all_kb'] < 1024) {
    return dt('Total size: @size_all_kbkB', array(
      '@size_all_kb' => number_format($this->registry['size_all_kb']),
    ));
  }
  return dt('Total size: @size_all_mbMB', array(
    '@size_all_mb' => number_format($this->registry['size_all_kb'] / 1024, 2),
  ));
}