You are here

public function SiteAuditCheckRolesRolesList::getResultInfo in Site Audit 7

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

Overrides SiteAuditCheckAbstract::getResultInfo

File

Check/Roles/RolesList.php, line 34
Contains \SiteAudit\Check\Users\RolesList.

Class

SiteAuditCheckRolesRolesList
Class SiteAuditCheckRolesRolesList.

Code

public function getResultInfo() {
  $counts = array();
  foreach ($this->registry['roles'] as $name => $count_users) {
    $counts[] = "{$name}: {$count_users}";
  }
  return implode(', ', $counts);
}