Code Duplication    Length = 8-8 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

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