original_string: public static function getPurgeDataSettings()
      {
          $settings = array();
  
          // load settings from ini config
          $config = PiwikConfig::getInstance();
          foreach (self::$purgeDataOptions as $configKey => $configSection) {
              $values = $config->$configSection;
              $settings[$configKey] = $values[$configKey];
          }
  
          if (!Controller::isDataPurgeSettingsEnabled()) {
              return $settings;
          }
  
          // load the settings for the data purging settings
          foreach (self::$purgeDataOptions as $configName => $configSection) {
              $value = Option::get($configName);
              if ($value !== false) {
                  $settings[$configName] = $value;
              }
          }
  
          return $settings;
      }
code: public static function getPurgeDataSettings()
      {
          $settings = array();
  
          // load settings from ini config
          $config = PiwikConfig::getInstance();
          foreach (self::$purgeDataOptions as $configKey => $configSection) {
              $values = $config->$configSection;
              $settings[$configKey] = $values[$configKey];
          }
  
          if (!Controller::isDataPurgeSettingsEnabled()) {
              return $settings;
          }
  
          // load the settings for the data purging settings
          foreach (self::$purgeDataOptions as $configName => $configSection) {
              $value = Option::get($configName);
              if ($value !== false) {
                  $settings[$configName] = $value;
              }
          }
  
          return $settings;
      }
code_tokens: public static function getPurgeDataSettings ( ) { $ settings = array ( ) ; // load settings from ini config $ config = PiwikConfig :: getInstance ( ) ; foreach ( self :: $ purgeDataOptions as $ configKey => $ configSection ) { $ values = $ config -> $ configSection ; $ settings [ $ configKey ] = $ values [ $ configKey ] ; } if ( ! Controller :: isDataPurgeSettingsEnabled ( ) ) { return $ settings ; } // load the settings for the data purging settings foreach ( self :: $ purgeDataOptions as $ configName => $ configSection ) { $ value = Option :: get ( $ configName ) ; if ( $ value !== false ) { $ settings [ $ configName ] = $ value ; } } return $ settings ; }
docstring: Returns the settings for the data purging feature.
  
  @return array
docstring_tokens: Returns the settings for the data purging feature .