Code Duplication    Length = 8-8 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2051-2058 (lines=8) @@
2048
								if ($ARCurrent->ARShowTemplateBorders) {
2049
									echo "<!-- arTemplateEnd -->";
2050
								}
2051
								if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */
2052
									$AR->contextCallHandler = true;
2053
									$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */
2054
									$eventData->arResult = $temp;
2055
									ar_events::fire('oncall', $eventData );
2056
									$ARCurrent->arResult = $temp; /* restore correct result */
2057
									$AR->contextCallHandler = false;
2058
								}
2059
							}
2060
						}
2061
						array_pop($ARCurrent->arCallStack);
@@ 2711-2718 (lines=8) @@
2708
					$arResult = $arTemplates->import($template["arTemplateId"], $template["arCallTemplate"], "", $this);
2709
					restore_error_handler();
2710
2711
					if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */
2712
						$AR->contextCallHandler = true;
2713
						$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */
2714
						$eventData->arResult = $arResult;
2715
						ar_events::fire('oncall', $eventData );
2716
						$ARCurrent->arResult = $temp; /* restore correct result */
2717
						$AR->contextCallHandler = false;
2718
					}
2719
				}
2720
				array_pop($ARCurrent->arCallStack);
2721
				$this->popContext();