original_string: public function indexAction()
      {
          $siteConfigurations = $this->siteConfigurationRepository->findAll();
  
          $sites = $this->siteRepository->findAll();
          $sitesWithConfiguration = [];
          foreach ($sites as $site) {
              $item = ['site' => $site];
              foreach ($siteConfigurations as $siteConfiguration) {
                  if ($siteConfiguration->getSite() === $site) {
                      $item['configuration'] = $siteConfiguration;
                  }
              }
              $sitesWithConfiguration[] = $item;
          }
          $this->view->assign('sitesWithConfiguration', $sitesWithConfiguration);
  
          $profiles = $this->getGroupedProfiles();
          $this->view->assign('groupedProfiles', $profiles);
      }
code: public function indexAction()
      {
          $siteConfigurations = $this->siteConfigurationRepository->findAll();
  
          $sites = $this->siteRepository->findAll();
          $sitesWithConfiguration = [];
          foreach ($sites as $site) {
              $item = ['site' => $site];
              foreach ($siteConfigurations as $siteConfiguration) {
                  if ($siteConfiguration->getSite() === $site) {
                      $item['configuration'] = $siteConfiguration;
                  }
              }
              $sitesWithConfiguration[] = $item;
          }
          $this->view->assign('sitesWithConfiguration', $sitesWithConfiguration);
  
          $profiles = $this->getGroupedProfiles();
          $this->view->assign('groupedProfiles', $profiles);
      }
code_tokens: public function indexAction ( ) { $ siteConfigurations = $ this -> siteConfigurationRepository -> findAll ( ) ; $ sites = $ this -> siteRepository -> findAll ( ) ; $ sitesWithConfiguration = [ ] ; foreach ( $ sites as $ site ) { $ item = [ 'site' => $ site ] ; foreach ( $ siteConfigurations as $ siteConfiguration ) { if ( $ siteConfiguration -> getSite ( ) === $ site ) { $ item [ 'configuration' ] = $ siteConfiguration ; } } $ sitesWithConfiguration [ ] = $ item ; } $ this -> view -> assign ( 'sitesWithConfiguration' , $ sitesWithConfiguration ) ; $ profiles = $ this -> getGroupedProfiles ( ) ; $ this -> view -> assign ( 'groupedProfiles' , $ profiles ) ; }
docstring: Show a list of sites and assigned GA profiles
  
  @return void
docstring_tokens: Show a list of sites and assigned GA profiles