Code Duplication    Length = 10-10 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2704-2713 (lines=10) @@
2701
				);
2702
				$continue = true;
2703
				$eventData = new object();
2704
				if ( !$AR->contextCallHandler ) { /* prevent onbeforecall from re-entering here */
2705
					$AR->contextCallHandler = true;
2706
					$eventData->arCallArgs = $arCallArgs;
2707
					$eventData->arCallFunction = $arCallFunction;
2708
					$eventData->arContext = $this->getContext();
2709
					$eventData = ar_events::fire('onbeforecall', $eventData);
2710
					$ARCurrent->arResult = $eventData->arResult;
2711
					$AR->contextCallHandler = false;
2712
					$continue = ($eventData!=false);
2713
				}
2714
				if ( $continue ) {
2715
					set_error_handler(array('pobject','pinpErrorHandler'),error_reporting());
2716
					$func = $arTemplates->import($template["arTemplateId"], $template["arCallTemplate"]);
@@ 2026-2035 (lines=10) @@
2023
						}
2024
						if ($continue) {
2025
							$eventData = new object();
2026
							if ( !$AR->contextCallHandler ) { /* prevent onbeforecall from re-entering here */
2027
								$AR->contextCallHandler = true;
2028
								$eventData->arCallArgs = $arCallArgs;
2029
								$eventData->arCallFunction = $arCallFunction;
2030
								$eventData->arContext = $this->getContext();
2031
								$eventData = ar_events::fire('onbeforecall', $eventData);
2032
								$ARCurrent->arResult = $eventData->arResult;
2033
								$AR->contextCallHandler = false;
2034
								$continue = ($eventData!=false);
2035
							}
2036
							if ( $continue ) {
2037
								if (!isset($ARCurrent->cacheCallChainSettings)) {
2038
									$ARCurrent->cacheCallChainSettings = array();