original_string: public static function hasReportBeenPurged($dataTable)
      {
          $strPeriod = Common::getRequestVar('period', false);
          $strDate   = Common::getRequestVar('date', false);
  
          if (false !== $strPeriod
              && false !== $strDate
              && (is_null($dataTable)
                  || (!empty($dataTable) && $dataTable->getRowsCount() == 0))
          ) {
              $reportDate = self::getReportDate($strPeriod, $strDate);
  
              if (empty($reportDate)) {
                  return false;
              }
  
              $reportYear = $reportDate->toString('Y');
              $reportMonth = $reportDate->toString('m');
  
              if (static::shouldReportBePurged($reportYear, $reportMonth)) {
                  return true;
              }
          }
  
          return false;
      }
code: public static function hasReportBeenPurged($dataTable)
      {
          $strPeriod = Common::getRequestVar('period', false);
          $strDate   = Common::getRequestVar('date', false);
  
          if (false !== $strPeriod
              && false !== $strDate
              && (is_null($dataTable)
                  || (!empty($dataTable) && $dataTable->getRowsCount() == 0))
          ) {
              $reportDate = self::getReportDate($strPeriod, $strDate);
  
              if (empty($reportDate)) {
                  return false;
              }
  
              $reportYear = $reportDate->toString('Y');
              $reportMonth = $reportDate->toString('m');
  
              if (static::shouldReportBePurged($reportYear, $reportMonth)) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public static function hasReportBeenPurged ( $ dataTable ) { $ strPeriod = Common :: getRequestVar ( 'period' , false ) ; $ strDate = Common :: getRequestVar ( 'date' , false ) ; if ( false !== $ strPeriod && false !== $ strDate && ( is_null ( $ dataTable ) || ( ! empty ( $ dataTable ) && $ dataTable -> getRowsCount ( ) == 0 ) ) ) { $ reportDate = self :: getReportDate ( $ strPeriod , $ strDate ) ; if ( empty ( $ reportDate ) ) { return false ; } $ reportYear = $ reportDate -> toString ( 'Y' ) ; $ reportMonth = $ reportDate -> toString ( 'm' ) ; if ( static :: shouldReportBePurged ( $ reportYear , $ reportMonth ) ) { return true ; } } return false ; }
docstring: Returns true if it is likely that the data for this report has been purged and if the
  user should be told about that.
  
  In order for this function to return true, the following must also be true:
  - The data table for this report must either be empty or not have been fetched.
  - The period of this report is not a multiple period.
  - The date of this report must be older than the delete_reports_older_than config option.
  @param  DataTableInterface $dataTable
  @return bool
docstring_tokens: Returns true if it is likely that the data for this report has been purged and if the user should be told about that .