Code Duplication    Length = 3-3 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2590-2592 (lines=3) @@
2587
				$template = $this->getPinpTemplate($arCallFunction, $redirpath, $redir["dest"], false, $arLibrariesSeen, $arSuperContext);
2588
				$redirpath = $redir['src'];
2589
			}
2590
			if (!$template["arTemplateId"]) {
2591
				$template = $this->getPinpTemplate($arCallFunction, $redirpath, '', false, $arLibrariesSeen, $arSuperContext);
2592
			}
2593
		}
2594
		if (!$template["arTemplateId"]) {
2595
			$template = $this->getPinpTemplate($arCallFunction, $this->path, '', false, $arLibrariesSeen, $arSuperContext);
@@ 2594-2596 (lines=3) @@
2591
				$template = $this->getPinpTemplate($arCallFunction, $redirpath, '', false, $arLibrariesSeen, $arSuperContext);
2592
			}
2593
		}
2594
		if (!$template["arTemplateId"]) {
2595
			$template = $this->getPinpTemplate($arCallFunction, $this->path, '', false, $arLibrariesSeen, $arSuperContext);
2596
		}
2597
		if ($template["arCallTemplate"] && $template["arTemplateId"]) {
2598
			$exists = ar('template')->exists($template['arCallTemplatePath'],$template["arCallTemplate"]);
2599
			if ( $exists ) {