original_string: public function getFirstVisitForVisitorId($idSite, $visitorId)
      {
          Piwik::checkUserHasSomeViewAccess();
  
          if (empty($visitorId)) {
              return new DataTable();
          }
  
          $model = new Model();
          $data = $model->queryLogVisits($idSite, false, false, false, 0, 1, $visitorId, false, 'ASC');
          $dataTable = $this->makeVisitorTableFromArray($data);
          $this->addFilterToCleanVisitors($dataTable, $idSite, false, true);
  
          return $dataTable;
      }
code: public function getFirstVisitForVisitorId($idSite, $visitorId)
      {
          Piwik::checkUserHasSomeViewAccess();
  
          if (empty($visitorId)) {
              return new DataTable();
          }
  
          $model = new Model();
          $data = $model->queryLogVisits($idSite, false, false, false, 0, 1, $visitorId, false, 'ASC');
          $dataTable = $this->makeVisitorTableFromArray($data);
          $this->addFilterToCleanVisitors($dataTable, $idSite, false, true);
  
          return $dataTable;
      }
code_tokens: public function getFirstVisitForVisitorId ( $ idSite , $ visitorId ) { Piwik :: checkUserHasSomeViewAccess ( ) ; if ( empty ( $ visitorId ) ) { return new DataTable ( ) ; } $ model = new Model ( ) ; $ data = $ model -> queryLogVisits ( $ idSite , false , false , false , 0 , 1 , $ visitorId , false , 'ASC' ) ; $ dataTable = $ this -> makeVisitorTableFromArray ( $ data ) ; $ this -> addFilterToCleanVisitors ( $ dataTable , $ idSite , false , true ) ; return $ dataTable ; }
docstring: Returns the very first visit for the given visitorId
  
  @internal
  
  @param $idSite
  @param $visitorId
  
  @return DataTable
docstring_tokens: Returns the very first visit for the given visitorId