Code Duplication    Length = 3-3 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2598-2600 (lines=3) @@
2595
				$template = $this->getPinpTemplate($arCallFunction, $redirpath, $redir["dest"], false, $arLibrariesSeen, $arSuperContext);
2596
				$redirpath = $redir['src'];
2597
			}
2598
			if (!$template["arTemplateId"]) {
2599
				$template = $this->getPinpTemplate($arCallFunction, $redirpath, '', false, $arLibrariesSeen, $arSuperContext);
2600
			}
2601
		}
2602
		if (!$template["arTemplateId"]) {
2603
			$template = $this->getPinpTemplate($arCallFunction, $this->path, '', false, $arLibrariesSeen, $arSuperContext);
@@ 2602-2604 (lines=3) @@
2599
				$template = $this->getPinpTemplate($arCallFunction, $redirpath, '', false, $arLibrariesSeen, $arSuperContext);
2600
			}
2601
		}
2602
		if (!$template["arTemplateId"]) {
2603
			$template = $this->getPinpTemplate($arCallFunction, $this->path, '', false, $arLibrariesSeen, $arSuperContext);
2604
		}
2605
		if ($template["arCallTemplate"] && $template["arTemplateId"]) {
2606
			$exists = ar('template')->exists($template['arCallTemplatePath'],$template["arCallTemplate"]);
2607
			if ( $exists ) {