Code Duplication    Length = 7-7 lines in 2 locations

micro/cache/CacheManager.php 2 locations

@@ 108-114 (lines=7) @@
105
		$namespace="";
106
		if(isset($modelsNS) && $modelsNS!=="")
107
			$namespace=$modelsNS."\\";
108
		foreach($files as $file){
109
			if(is_file($file)){
110
				$fileName=pathinfo($file, PATHINFO_FILENAME);
111
				$model=$namespace.ucfirst($fileName);
112
				new $model();
113
			}
114
		}
115
	}
116
117
	private static function initControllersCache(&$config){
@@ 125-131 (lines=7) @@
122
		$namespace="";
123
		if(isset($controllersNS) && $controllersNS!=="")
124
			$namespace=$controllersNS."\\";
125
		foreach($files as $file){
126
			if(is_file($file)){
127
				$fileName=pathinfo($file, PATHINFO_FILENAME);
128
				$controller=$namespace.ucfirst($fileName);
129
				self::addControllerCache($controller);
130
			}
131
		}
132
		self::$cache->store("controllers/routes", "return ".JArray::asPhpArray(self::$routes,"array").";");
133
	}
134