Code Duplication    Length = 3-4 lines in 2 locations

htdocs/modules/system/class/thumbs/phpthumb.class.php 2 locations

@@ 714-717 (lines=4) @@
711
	function CleanUpCacheDirectory() {
712
		$this->DebugMessage('CleanUpCacheDirectory() set to purge ('.(is_null($this->config_cache_maxage) ? 'NULL' : number_format($this->config_cache_maxage / 86400, 1)).' days; '.(is_null($this->config_cache_maxsize) ? 'NULL' : number_format($this->config_cache_maxsize / 1048576, 2)).' MB; '.(is_null($this->config_cache_maxfiles) ? 'NULL' : number_format($this->config_cache_maxfiles)).' files)', __FILE__, __LINE__);
713
714
		if (!is_writable($this->config_cache_directory)) {
715
			$this->DebugMessage('CleanUpCacheDirectory() skipped because "'.$this->config_cache_directory.'" is not writable', __FILE__, __LINE__);
716
			return true;
717
		}
718
719
		// cache status of cache directory for 1 hour to avoid hammering the filesystem functions
720
		$phpThumbCacheStats_filename = $this->config_cache_directory.DIRECTORY_SEPARATOR.'phpThumbCacheStats.txt';
@@ 1043-1045 (lines=3) @@
1040
			}
1041
			$this->DebugMessage('$this->config_cache_directory ('.$this->config_cache_directory.') is not a directory', __FILE__, __LINE__);
1042
			$this->config_cache_directory = null;
1043
		} elseif (!@is_writable($this->config_cache_directory)) {
1044
			$this->DebugMessage('$this->config_cache_directory is not writable ('.$this->config_cache_directory.')', __FILE__, __LINE__);
1045
		}
1046
1047
		$this->InitializeTempDirSetting();
1048
		if (!@is_dir($this->config_temp_directory) && !@is_writable($this->config_temp_directory) && @is_dir($this->config_cache_directory) && @is_writable($this->config_cache_directory)) {