public function SiteAuditCheckCodebaseManagedFileCount::calculateScore in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Codebase/ManagedFileCount.php \SiteAuditCheckCodebaseManagedFileCount::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Codebase/ ManagedFileCount.php, line 58 - Contains \SiteAudit\Check\Codebase\ManagedFileCount.
Class
- SiteAuditCheckCodebaseManagedFileCount
- Class SiteAuditCheckCodebaseManagedFileCount.
Code
public function calculateScore() {
$sql_query = 'SELECT COUNT(fid) ';
$sql_query .= 'FROM {file_managed} ';
$sql_query .= 'WHERE status = 1 ';
$this->registry['managed_file_count'] = db_query($sql_query)
->fetchField();
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}