Code Duplication    Length = 8-8 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2059-2066 (lines=8) @@
2056
								if ($ARCurrent->ARShowTemplateBorders) {
2057
									echo "<!-- arTemplateEnd -->";
2058
								}
2059
								if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */
2060
									$AR->contextCallHandler = true;
2061
									$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */
2062
									$eventData->arResult = $temp;
2063
									ar_events::fire('oncall', $eventData );
2064
									$ARCurrent->arResult = $temp; /* restore correct result */
2065
									$AR->contextCallHandler = false;
2066
								}
2067
							}
2068
						}
2069
						array_pop($ARCurrent->arCallStack);
@@ 2719-2726 (lines=8) @@
2716
					$arResult = $arTemplates->import($template["arTemplateId"], $template["arCallTemplate"], "", $this);
2717
					restore_error_handler();
2718
2719
					if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */
2720
						$AR->contextCallHandler = true;
2721
						$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */
2722
						$eventData->arResult = $arResult;
2723
						ar_events::fire('oncall', $eventData );
2724
						$ARCurrent->arResult = $temp; /* restore correct result */
2725
						$AR->contextCallHandler = false;
2726
					}
2727
				}
2728
				array_pop($ARCurrent->arCallStack);
2729
				$this->popContext();