Code Duplication    Length = 12-13 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 1207-1218 (lines=12) @@
1204
		return $result;
1205
	}
1206
1207
	public function resetConfig($path='') {
1208
	global $ARConfig;
1209
		$path = $this->make_path($path);
1210
		if ($ARConfig->cache[$path]) {
1211
			$path = preg_quote($path,'/');
1212
			$keys = preg_grep('/^'.$path.'/',array_keys($ARConfig->cache));
1213
			foreach ($keys as $cachepath) {
1214
				unset($ARConfig->cache[$cachepath]);
1215
				unset($ARConfig->pinpcache[$cachepath]);
1216
			}
1217
		}
1218
	}
1219
1220
	public function clearChildConfigs($path='') {
1221
	global $ARConfig;
@@ 1220-1232 (lines=13) @@
1217
		}
1218
	}
1219
1220
	public function clearChildConfigs($path='') {
1221
	global $ARConfig;
1222
		$path = $this->make_path($path);
1223
		if ($ARConfig->cache[$path]) {
1224
			$path = preg_quote($path,'/');
1225
			$keys = preg_grep('/^'.$path.'./',array_keys($ARConfig->cache));
1226
			foreach($keys as $cachepath) {
1227
				unset($ARConfig->cache[$cachepath]);
1228
				unset($ARConfig->pinpcache[$cachepath]);
1229
				unset($ARConfig->libraries[$cachepath]);
1230
			}
1231
		}
1232
	}
1233
1234
	protected function getConfig() {
1235
	global $ARConfig, $ARCurrent, $ARConfigChecked;