original_string: public function deleteVisits($visitIds)
      {
          $numDeletedVisits = 0;
  
          foreach ($this->logTablesProvider->getAllLogTables() as $logTable) {
              if ($logTable->getColumnToJoinOnIdVisit()) {
                  $numVisits = $this->rawLogDao->deleteFromLogTable($logTable->getName(), $visitIds);
                  if ($logTable->getName() === 'log_visit') {
                      $numDeletedVisits = $numVisits;
                  }
              }
          }
  
          return $numDeletedVisits;
      }
code: public function deleteVisits($visitIds)
      {
          $numDeletedVisits = 0;
  
          foreach ($this->logTablesProvider->getAllLogTables() as $logTable) {
              if ($logTable->getColumnToJoinOnIdVisit()) {
                  $numVisits = $this->rawLogDao->deleteFromLogTable($logTable->getName(), $visitIds);
                  if ($logTable->getName() === 'log_visit') {
                      $numDeletedVisits = $numVisits;
                  }
              }
          }
  
          return $numDeletedVisits;
      }
code_tokens: public function deleteVisits ( $ visitIds ) { $ numDeletedVisits = 0 ; foreach ( $ this -> logTablesProvider -> getAllLogTables ( ) as $ logTable ) { if ( $ logTable -> getColumnToJoinOnIdVisit ( ) ) { $ numVisits = $ this -> rawLogDao -> deleteFromLogTable ( $ logTable -> getName ( ) , $ visitIds ) ; if ( $ logTable -> getName ( ) === 'log_visit' ) { $ numDeletedVisits = $ numVisits ; } } } return $ numDeletedVisits ; }
docstring: Deletes visits by ID. This method cascades, so conversions, conversion items and visit actions for
  the visits are also deleted.
  
  @param int[] $visitIds
  @return int The number of deleted visits.
docstring_tokens: Deletes visits by ID . This method cascades so conversions conversion items and visit actions for the visits are also deleted .