Code Duplication    Length = 12-13 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 1216-1227 (lines=12) @@
1213
		return $result;
1214
	}
1215
1216
	public function resetConfig($path='') {
1217
	global $ARConfig;
1218
		$path = $this->make_path($path);
1219
		if ($ARConfig->cache[$path]) {
1220
			$path = preg_quote($path,'/');
1221
			$keys = preg_grep('/^'.$path.'/',array_keys($ARConfig->cache));
1222
			foreach ($keys as $cachepath) {
1223
				unset($ARConfig->cache[$cachepath]);
1224
				unset($ARConfig->pinpcache[$cachepath]);
1225
			}
1226
		}
1227
	}
1228
1229
	public function clearChildConfigs($path='') {
1230
	global $ARConfig;
@@ 1229-1241 (lines=13) @@
1226
		}
1227
	}
1228
1229
	public function clearChildConfigs($path='') {
1230
	global $ARConfig;
1231
		$path = $this->make_path($path);
1232
		if ($ARConfig->cache[$path]) {
1233
			$path = preg_quote($path,'/');
1234
			$keys = preg_grep('/^'.$path.'./',array_keys($ARConfig->cache));
1235
			foreach($keys as $cachepath) {
1236
				unset($ARConfig->cache[$cachepath]);
1237
				unset($ARConfig->pinpcache[$cachepath]);
1238
				unset($ARConfig->libraries[$cachepath]);
1239
			}
1240
		}
1241
	}
1242
1243
	protected function getConfig() {
1244
	global $ARConfig, $ARCurrent, $ARConfigChecked;