original_string: private function getVisitorProfileVisitSummary($visit)
      {
          $today = Date::today();
  
          $serverDate = $visit->getColumn('firstActionTimestamp');
          return array(
              'date'            => $serverDate,
              'prettyDate'      => Date::factory($serverDate)->getLocalized(Date::DATE_FORMAT_LONG),
              'daysAgo'         => (int)Date::secondsToDays($today->getTimestamp() - Date::factory($serverDate)->getTimestamp()),
              'referrerType'    => $visit->getColumn('referrerType'),
              'referrerUrl'     => $visit->getColumn('referrerUrl') ?: '',
              'referralSummary' => self::getReferrerSummaryForVisit($visit),
          );
      }
code: private function getVisitorProfileVisitSummary($visit)
      {
          $today = Date::today();
  
          $serverDate = $visit->getColumn('firstActionTimestamp');
          return array(
              'date'            => $serverDate,
              'prettyDate'      => Date::factory($serverDate)->getLocalized(Date::DATE_FORMAT_LONG),
              'daysAgo'         => (int)Date::secondsToDays($today->getTimestamp() - Date::factory($serverDate)->getTimestamp()),
              'referrerType'    => $visit->getColumn('referrerType'),
              'referrerUrl'     => $visit->getColumn('referrerUrl') ?: '',
              'referralSummary' => self::getReferrerSummaryForVisit($visit),
          );
      }
code_tokens: private function getVisitorProfileVisitSummary ( $ visit ) { $ today = Date :: today ( ) ; $ serverDate = $ visit -> getColumn ( 'firstActionTimestamp' ) ; return array ( 'date' => $ serverDate , 'prettyDate' => Date :: factory ( $ serverDate ) -> getLocalized ( Date :: DATE_FORMAT_LONG ) , 'daysAgo' => ( int ) Date :: secondsToDays ( $ today -> getTimestamp ( ) - Date :: factory ( $ serverDate ) -> getTimestamp ( ) ) , 'referrerType' => $ visit -> getColumn ( 'referrerType' ) , 'referrerUrl' => $ visit -> getColumn ( 'referrerUrl' ) ? : '' , 'referralSummary' => self :: getReferrerSummaryForVisit ( $ visit ) , ) ; }
docstring: Returns a summary for an important visit. Used to describe the first & last visits of a visitor.
  
  @param DataTable\Row $visit
  @return array
docstring_tokens: Returns a summary for an important visit . Used to describe the first & last visits of a visitor .