Code Duplication    Length = 9-9 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

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