original_string: private function getSiteaccessesByRepository()
      {
          $siteaccesses = [];
          foreach ($this->siteaccesses as $siteaccess) {
              $repository = $this->resolveRepositoryName(
                  $this->configResolver->getParameter('repository', null, $siteaccess)
              );
  
              if (!isset($siteaccesses[$repository])) {
                  $siteaccesses[$repository] = [];
              }
  
              $siteaccesses[$repository][] = $siteaccess;
          }
  
          return $siteaccesses;
      }
code: private function getSiteaccessesByRepository()
      {
          $siteaccesses = [];
          foreach ($this->siteaccesses as $siteaccess) {
              $repository = $this->resolveRepositoryName(
                  $this->configResolver->getParameter('repository', null, $siteaccess)
              );
  
              if (!isset($siteaccesses[$repository])) {
                  $siteaccesses[$repository] = [];
              }
  
              $siteaccesses[$repository][] = $siteaccess;
          }
  
          return $siteaccesses;
      }
code_tokens: private function getSiteaccessesByRepository ( ) { $ siteaccesses = [ ] ; foreach ( $ this -> siteaccesses as $ siteaccess ) { $ repository = $ this -> resolveRepositoryName ( $ this -> configResolver -> getParameter ( 'repository' , null , $ siteaccess ) ) ; if ( ! isset ( $ siteaccesses [ $ repository ] ) ) { $ siteaccesses [ $ repository ] = [ ] ; } $ siteaccesses [ $ repository ] [ ] = $ siteaccess ; } return $ siteaccesses ; }
docstring: Gets a list of siteaccesses grouped by repository.
  
  @return array
docstring_tokens: Gets a list of siteaccesses grouped by repository .