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);
@@ 2723-2730 (lines=8) @@
2720
					}
2721
					restore_error_handler();
2722
2723
					if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */
2724
						$AR->contextCallHandler = true;
2725
						$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */
2726
						$eventData->arResult = $arResult;
2727
						ar_events::fire('oncall', $eventData );
2728
						$ARCurrent->arResult = $temp; /* restore correct result */
2729
						$AR->contextCallHandler = false;
2730
					}
2731
				}
2732
				array_pop($ARCurrent->arCallStack);
2733
				$this->popContext();