Code Duplication    Length = 9-9 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2343-2351 (lines=9) @@
2340
				$result=$$varname;
2341
			} else if (isset($ARCurrent->$varname)) {
2342
				$result=$ARCurrent->$varname;
2343
			} else if (isset($_POST[$varname])) {
2344
				$result=$_POST[$varname];
2345
			} else if (isset($_GET[$varname])) {
2346
				$result=$_GET[$varname];
2347
			} else if (($arStoreVars=$_POST["arStoreVars"]) && isset($arStoreVars[$varname])) {
2348
				$result=$arStoreVars[$varname];
2349
			} else if (($arStoreVars=$_GET["arStoreVars"]) && isset($arStoreVars[$varname])) {
2350
				$result=$arStoreVars[$varname];
2351
			}
2352
			if ($result===false) {
2353
				if (isset($this->data->$varname)) {
2354
					$result=$this->data->$varname;
@@ 2735-2743 (lines=9) @@
2732
			$result=$ARCurrent->$var;
2733
		} else if (isset($ARConfig->pinpcache[$this->path][$var])) {
2734
			$result=$ARConfig->pinpcache[$this->path][$var];
2735
		} else if (isset($_POST[$var])) {
2736
			$result=$_POST[$var];
2737
		} else if (isset($_GET[$var])) {
2738
			$result=$_GET[$var];
2739
		} else if (($arStoreVars=$_POST["arStoreVars"]) && isset($arStoreVars[$var])) {
2740
			$result=$arStoreVars[$var];
2741
		} else if (($arStoreVars=$_GET["arStoreVars"]) && isset($arStoreVars[$var])) {
2742
			$result=$arStoreVars[$var];
2743
		}
2744
		return $result;
2745
	}
2746