original_string: public function getAvailableCapabilities()
      {
          Piwik::checkUserHasSomeAdminAccess();
  
          $response = array();
  
          foreach ($this->capabilityProvider->getAllCapabilities() as $capability) {
              $response[] = array(
                  'id' => $capability->getId(),
                  'name' => $capability->getName(),
                  'description' => $capability->getDescription(),
                  'helpUrl' => $capability->getHelpUrl(),
                  'includedInRoles' => $capability->getIncludedInRoles(),
                  'category' => $capability->getCategory(),
              );
          }
  
          return $response;
      }
code: public function getAvailableCapabilities()
      {
          Piwik::checkUserHasSomeAdminAccess();
  
          $response = array();
  
          foreach ($this->capabilityProvider->getAllCapabilities() as $capability) {
              $response[] = array(
                  'id' => $capability->getId(),
                  'name' => $capability->getName(),
                  'description' => $capability->getDescription(),
                  'helpUrl' => $capability->getHelpUrl(),
                  'includedInRoles' => $capability->getIncludedInRoles(),
                  'category' => $capability->getCategory(),
              );
          }
  
          return $response;
      }
code_tokens: public function getAvailableCapabilities ( ) { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ response = array ( ) ; foreach ( $ this -> capabilityProvider -> getAllCapabilities ( ) as $ capability ) { $ response [ ] = array ( 'id' => $ capability -> getId ( ) , 'name' => $ capability -> getName ( ) , 'description' => $ capability -> getDescription ( ) , 'helpUrl' => $ capability -> getHelpUrl ( ) , 'includedInRoles' => $ capability -> getIncludedInRoles ( ) , 'category' => $ capability -> getCategory ( ) , ) ; } return $ response ; }
docstring: Get the list of all available capabilities.
  @return array[]  Returns an array containing information about each capability
docstring_tokens: Get the list of all available capabilities .