Code Duplication    Length = 4-4 lines in 2 locations

core/libraries/messages/EE_Messages_Processor.lib.php 1 location

@@ 498-501 (lines=4) @@
495
496
		foreach( $regIDs as $regID ) {
497
			$reg = EEM_Registration::instance()->get_one_by_ID( $regID );
498
			if ( ! $reg instanceof EE_Registration ) {
499
				EE_Error::add_error( sprintf( __('Unable to retrieve a registration object for the given reg id (%s)', 'event_espresso'), $regID ) );
500
				return false;
501
			}
502
			$regs_to_send[$reg->transaction_ID()][$reg->status_ID()][] = $reg;
503
		}
504

core/admin/EE_Admin_Page.core.php 1 location

@@ 3333-3336 (lines=4) @@
3330
		if ( $config_saved && $net_saved ) {
3331
			EE_Error::add_success( sprintf( __('"%s" have been successfully updated.', 'event_espresso'), $tab ));
3332
			return TRUE;
3333
		} else {
3334
			EE_Error::add_error( sprintf( __('The "%s" were not updated.', 'event_espresso'), $tab ), $file, $func, $line  );
3335
			return FALSE;
3336
		}
3337
	}
3338
3339