original_string: public function getAvailableRoles()
      {
          Piwik::checkUserHasSomeAdminAccess();
  
          $response = array();
  
          foreach ($this->roleProvider->getAllRoles() as $role) {
              $response[] = array(
                  'id' => $role->getId(),
                  'name' => $role->getName(),
                  'description' => $role->getDescription(),
                  'helpUrl' => $role->getHelpUrl(),
              );
          }
  
          return $response;
      }
code: public function getAvailableRoles()
      {
          Piwik::checkUserHasSomeAdminAccess();
  
          $response = array();
  
          foreach ($this->roleProvider->getAllRoles() as $role) {
              $response[] = array(
                  'id' => $role->getId(),
                  'name' => $role->getName(),
                  'description' => $role->getDescription(),
                  'helpUrl' => $role->getHelpUrl(),
              );
          }
  
          return $response;
      }
code_tokens: public function getAvailableRoles ( ) { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ response = array ( ) ; foreach ( $ this -> roleProvider -> getAllRoles ( ) as $ role ) { $ response [ ] = array ( 'id' => $ role -> getId ( ) , 'name' => $ role -> getName ( ) , 'description' => $ role -> getDescription ( ) , 'helpUrl' => $ role -> getHelpUrl ( ) , ) ; } return $ response ; }
docstring: Get the list of all available roles.
  It does not return the super user role, and neither the "noaccess" role.
  @return array[]  Returns an array containing information about each role
docstring_tokens: Get the list of all available roles . It does not return the super user role and neither the noaccess role .