original_string: private function wasLastActionNotToday(VisitProperties $visitProperties, Request $request)
      {
          $lastActionTime = $visitProperties->getProperty('visit_last_action_time');
  
          if (empty($lastActionTime)) {
              return false;
          }
  
          $idSite = $request->getIdSite();
          $timezone = $this->getTimezoneForSite($idSite);
  
          if (empty($timezone)) {
              throw new UnexpectedWebsiteFoundException('An unexpected website was found, check idSite in the request');
          }
  
          $date = Date::factory((int)$lastActionTime, $timezone);
          $now = $request->getCurrentTimestamp();
          $now = Date::factory((int)$now, $timezone);
  
          return $date->toString() !== $now->toString();
      }
code: private function wasLastActionNotToday(VisitProperties $visitProperties, Request $request)
      {
          $lastActionTime = $visitProperties->getProperty('visit_last_action_time');
  
          if (empty($lastActionTime)) {
              return false;
          }
  
          $idSite = $request->getIdSite();
          $timezone = $this->getTimezoneForSite($idSite);
  
          if (empty($timezone)) {
              throw new UnexpectedWebsiteFoundException('An unexpected website was found, check idSite in the request');
          }
  
          $date = Date::factory((int)$lastActionTime, $timezone);
          $now = $request->getCurrentTimestamp();
          $now = Date::factory((int)$now, $timezone);
  
          return $date->toString() !== $now->toString();
      }
code_tokens: private function wasLastActionNotToday ( VisitProperties $ visitProperties , Request $ request ) { $ lastActionTime = $ visitProperties -> getProperty ( 'visit_last_action_time' ) ; if ( empty ( $ lastActionTime ) ) { return false ; } $ idSite = $ request -> getIdSite ( ) ; $ timezone = $ this -> getTimezoneForSite ( $ idSite ) ; if ( empty ( $ timezone ) ) { throw new UnexpectedWebsiteFoundException ( 'An unexpected website was found, check idSite in the request' ) ; } $ date = Date :: factory ( ( int ) $ lastActionTime , $ timezone ) ; $ now = $ request -> getCurrentTimestamp ( ) ; $ now = Date :: factory ( ( int ) $ now , $ timezone ) ; return $ date -> toString ( ) !== $ now -> toString ( ) ; }
docstring: Returns true if the last action was not today.
  @param VisitProperties $visitor
  @return bool
docstring_tokens: Returns true if the last action was not today .