original_string: protected static function get_roles_name() {
          $roles = role_fix_names(get_all_roles(), \context_system::instance(), ROLENAME_ORIGINAL);
          $rolesnames = array();
          foreach ($roles as $role) {
              $rolesnames[$role->id] = $role->localname;
          }
          return $rolesnames;
      }
code: protected static function get_roles_name() {
          $roles = role_fix_names(get_all_roles(), \context_system::instance(), ROLENAME_ORIGINAL);
          $rolesnames = array();
          foreach ($roles as $role) {
              $rolesnames[$role->id] = $role->localname;
          }
          return $rolesnames;
      }
code_tokens: protected static function get_roles_name ( ) { $ roles = role_fix_names ( get_all_roles ( ) , \ context_system :: instance ( ) , ROLENAME_ORIGINAL ) ; $ rolesnames = array ( ) ; foreach ( $ roles as $ role ) { $ rolesnames [ $ role -> id ] = $ role -> localname ; } return $ rolesnames ; }
docstring: Get all the localised roles name in a simple array.
  
  @return array Array of name of the roles by roleid.
docstring_tokens: Get all the localised roles name in a simple array .