original_string: public function getKnownSegmentsToArchiveForSite(&$segments, $idSite)
      {
          $model = new Model();
          $segmentToAutoArchive = $model->getSegmentsToAutoArchive($idSite);
  
          foreach ($segmentToAutoArchive as $segmentInfo) {
              $segments[] = $segmentInfo['definition'];
          }
  
          $segments = array_unique($segments);
      }
code: public function getKnownSegmentsToArchiveForSite(&$segments, $idSite)
      {
          $model = new Model();
          $segmentToAutoArchive = $model->getSegmentsToAutoArchive($idSite);
  
          foreach ($segmentToAutoArchive as $segmentInfo) {
              $segments[] = $segmentInfo['definition'];
          }
  
          $segments = array_unique($segments);
      }
code_tokens: public function getKnownSegmentsToArchiveForSite ( & $ segments , $ idSite ) { $ model = new Model ( ) ; $ segmentToAutoArchive = $ model -> getSegmentsToAutoArchive ( $ idSite ) ; foreach ( $ segmentToAutoArchive as $ segmentInfo ) { $ segments [ ] = $ segmentInfo [ 'definition' ] ; } $ segments = array_unique ( $ segments ) ; }
docstring: Adds the pre-processed segments to the list of Segments.
  Used by CronArchive, ArchiveProcessor\Rules, etc.
  
  @param $segments
  @param $idSite
docstring_tokens: Adds the pre - processed segments to the list of Segments . Used by CronArchive ArchiveProcessor \ Rules etc .