Code Duplication    Length = 4-12 lines in 2 locations

modules/single_page_checkout/inc/EE_Checkout.class.php 1 location

@@ 926-937 (lines=12) @@
923
					);
924
				}
925
			}
926
		} else {
927
			if ( $show_errors ) {
928
				EE_Error::add_error(
929
					sprintf(
930
						'%1$s||%1$s $attendee = %2$s',
931
						__( 'Either no Attendee information was found, or an invalid Attendee object was discovered when attempting to save your registration information.', 'event_espresso' ),
932
						var_export( $registration->attendee(), true )
933
					),
934
					__FILE__, __FUNCTION__, __LINE__
935
				);
936
			}
937
		}
938
	}
939
940

modules/single_page_checkout/reg_steps/attendee_information/EE_SPCO_Reg_Step_Attendee_Information.class.php 1 location

@@ 1005-1008 (lines=4) @@
1002
					// add relation to registration, set attendee ID, and cache attendee
1003
					$this->_associate_attendee_with_registration( $registration, $attendee );
1004
					// \EEH_Debug_Tools::printr( $registration, '$registration', __FILE__, __LINE__ );
1005
					if ( ! $registration->attendee() instanceof EE_Attendee ) {
1006
						EE_Error::add_error( sprintf( __( 'Registration %s has an invalid or missing Attendee object.', 'event_espresso' ), $reg_url_link ), __FILE__, __FUNCTION__, __LINE__ );
1007
						return false;
1008
					}
1009
					/** @type EE_Registration_Processor $registration_processor */
1010
					$registration_processor = EE_Registry::instance()->load_class( 'Registration_Processor' );
1011
					// at this point, we should have enough details about the registrant to consider the registration NOT incomplete