original_string: public static function getPurgeEstimate($settings = null)
      {
          if (is_null($settings)) {
              $settings = self::getPurgeDataSettings();
          }
  
          $result = array();
  
          if ($settings['delete_logs_enable']) {
              /** @var LogDataPurger $logDataPurger */
              $logDataPurger = StaticContainer::get('Piwik\Plugins\PrivacyManager\LogDataPurger');
              $result = array_merge($result, $logDataPurger->getPurgeEstimate($settings['delete_logs_older_than']));
          }
  
          if ($settings['delete_reports_enable']) {
              $reportsPurger = ReportsPurger::make($settings, self::getAllMetricsToKeep());
              $result = array_merge($result, $reportsPurger->getPurgeEstimate());
          }
  
          return $result;
      }
code: public static function getPurgeEstimate($settings = null)
      {
          if (is_null($settings)) {
              $settings = self::getPurgeDataSettings();
          }
  
          $result = array();
  
          if ($settings['delete_logs_enable']) {
              /** @var LogDataPurger $logDataPurger */
              $logDataPurger = StaticContainer::get('Piwik\Plugins\PrivacyManager\LogDataPurger');
              $result = array_merge($result, $logDataPurger->getPurgeEstimate($settings['delete_logs_older_than']));
          }
  
          if ($settings['delete_reports_enable']) {
              $reportsPurger = ReportsPurger::make($settings, self::getAllMetricsToKeep());
              $result = array_merge($result, $reportsPurger->getPurgeEstimate());
          }
  
          return $result;
      }
code_tokens: public static function getPurgeEstimate ( $ settings = null ) { if ( is_null ( $ settings ) ) { $ settings = self :: getPurgeDataSettings ( ) ; } $ result = array ( ) ; if ( $ settings [ 'delete_logs_enable' ] ) { /** @var LogDataPurger $logDataPurger */ $ logDataPurger = StaticContainer :: get ( 'Piwik\Plugins\PrivacyManager\LogDataPurger' ) ; $ result = array_merge ( $ result , $ logDataPurger -> getPurgeEstimate ( $ settings [ 'delete_logs_older_than' ] ) ) ; } if ( $ settings [ 'delete_reports_enable' ] ) { $ reportsPurger = ReportsPurger :: make ( $ settings , self :: getAllMetricsToKeep ( ) ) ; $ result = array_merge ( $ result , $ reportsPurger -> getPurgeEstimate ( ) ) ; } return $ result ; }
docstring: Returns an array describing what data would be purged if both raw data & report
  purging is invoked.
  
  The returned array maps table names with the number of rows that will be deleted.
  If the table name is mapped with -1, the table will be dropped.
  
  @param array $settings The config options to use in the estimate. If null, the real
  options are used.
  @return array
docstring_tokens: Returns an array describing what data would be purged if both raw data & report purging is invoked .