original_string: public function getAllSites()
      {
          Piwik::checkUserHasSuperUserAccess();
  
          $sites  = $this->getModel()->getAllSites();
          $return = array();
          foreach ($sites as $site) {
              $this->enrichSite($site);
              $return[$site['idsite']] = $site;
          }
  
          $return = Site::setSitesFromArray($return);
  
          return $return;
      }
code: public function getAllSites()
      {
          Piwik::checkUserHasSuperUserAccess();
  
          $sites  = $this->getModel()->getAllSites();
          $return = array();
          foreach ($sites as $site) {
              $this->enrichSite($site);
              $return[$site['idsite']] = $site;
          }
  
          $return = Site::setSitesFromArray($return);
  
          return $return;
      }
code_tokens: public function getAllSites ( ) { Piwik :: checkUserHasSuperUserAccess ( ) ; $ sites = $ this -> getModel ( ) -> getAllSites ( ) ; $ return = array ( ) ; foreach ( $ sites as $ site ) { $ this -> enrichSite ( $ site ) ; $ return [ $ site [ 'idsite' ] ] = $ site ; } $ return = Site :: setSitesFromArray ( $ return ) ; return $ return ; }
docstring: Returns all websites, requires Super User access
  
  @return array The list of websites, indexed by idsite
docstring_tokens: Returns all websites requires Super User access