public function SiteAuditCheckUsersCountBlocked::getResultInfo in Site Audit 8.2
Same name and namespace in other branches
- 7 Check/Users/CountBlocked.php \SiteAuditCheckUsersCountBlocked::getResultInfo()
Implements \SiteAudit\Check\Abstract\getResultInfo().
Overrides SiteAuditCheckAbstract::getResultInfo
File
- Check/
Users/ CountBlocked.php, line 34 - Contains \SiteAudit\Check\Users\CountBlocked.
Class
- SiteAuditCheckUsersCountBlocked
- Class SiteAuditCheckUsersCountBlocked.
Code
public function getResultInfo() {
if ($this->registry['count_users_blocked'] == 0) {
return dt('There are no blocked users.');
}
if ($this->registry['count_users_blocked'] == 1) {
return dt('There is one blocked user.');
}
return dt('There are @count_users_blocked blocked users.', array(
'@count_users_blocked' => $this->registry['count_users_blocked'],
));
}