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