Code Duplication    Length = 4-4 lines in 2 locations

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

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

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