Code Duplication    Length = 15-15 lines in 2 locations

class/cache.php 1 location

@@ 44-58 (lines=15) @@
41
	 * @param	string	$key
42
	 * @return	string
43
	 */
44
	public function CacheFilePath($key) {
45
		$s_path = $this->aCfg['cache-file-dir'];
46
47
		$ar_rule = str_split($this->aCfg['cache-file-rule'], 2);
48
		if (empty($ar_rule))
49
			return $s_path;
50
51
		foreach ($ar_rule as $rule)
52
			$s_path .= $this->CacheFilePathSec($rule, $key) . '/';
53
54
		// Filename
55
		$s_path .= $this->CacheFilePathFile($key);
56
57
		return $s_path;
58
	} // end of func Path
59
60
61
	/**

class/cache/cache-file.php 1 location

@@ 159-173 (lines=15) @@
156
	 * @param	string	$key
157
	 * @return	string
158
	 */
159
	public function FilePath ($key) {
160
		$s_path = $this->aCfg['cache-file-dir'];
161
162
		$ar_rule = str_split($this->aCfg['cache-file-rule'], 2);
163
		if (empty($ar_rule))
164
			return $s_path;
165
166
		foreach ($ar_rule as $rule)
167
			$s_path .= $this->FilePathSec($rule, $key) . '/';
168
169
		// Filename
170
		$s_path .= $this->FilePathFilename($key);
171
172
		return $s_path;
173
	} // end of func FilePath
174
175
176
	/**