Code Duplication    Length = 9-9 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2416-2424 (lines=9) @@
2413
				$result=$$varname;
2414
			} else if (isset($ARCurrent->$varname)) {
2415
				$result=$ARCurrent->$varname;
2416
			} else if (isset($_POST[$varname])) {
2417
				$result=$_POST[$varname];
2418
			} else if (isset($_GET[$varname])) {
2419
				$result=$_GET[$varname];
2420
			} else if (($arStoreVars=$_POST["arStoreVars"]) && isset($arStoreVars[$varname])) {
2421
				$result=$arStoreVars[$varname];
2422
			} else if (($arStoreVars=$_GET["arStoreVars"]) && isset($arStoreVars[$varname])) {
2423
				$result=$arStoreVars[$varname];
2424
			}
2425
			if ($result===false) {
2426
				if (isset($this->data->$varname)) {
2427
					$result=$this->data->$varname;
@@ 2809-2817 (lines=9) @@
2806
			$result=$ARCurrent->$var;
2807
		} else if (isset($ARConfig->pinpcache[$this->path][$var])) {
2808
			$result=$ARConfig->pinpcache[$this->path][$var];
2809
		} else if (isset($_POST[$var])) {
2810
			$result=$_POST[$var];
2811
		} else if (isset($_GET[$var])) {
2812
			$result=$_GET[$var];
2813
		} else if (($arStoreVars=$_POST["arStoreVars"]) && isset($arStoreVars[$var])) {
2814
			$result=$arStoreVars[$var];
2815
		} else if (($arStoreVars=$_GET["arStoreVars"]) && isset($arStoreVars[$var])) {
2816
			$result=$arStoreVars[$var];
2817
		}
2818
		return $result;
2819
	}
2820