Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 552-555 (lines=4) @@
549
550
		foreach( $regIDs as $regID ) {
551
			$reg = EEM_Registration::instance()->get_one_by_ID( $regID );
552
			if ( ! $reg instanceof EE_Registration ) {
553
				EE_Error::add_error( sprintf( __('Unable to retrieve a registration object for the given reg id (%s)', 'event_espresso'), $regID ) );
554
				return false;
555
			}
556
			$regs_to_send[$reg->transaction_ID()][$reg->status_ID()][] = $reg;
557
		}
558

core/admin/EE_Admin_Page.core.php 1 location

@@ 3321-3324 (lines=4) @@
3318
        if ($config_saved && $net_saved) {
3319
            EE_Error::add_success(sprintf(__('"%s" have been successfully updated.', 'event_espresso'), $tab));
3320
            return true;
3321
        } else {
3322
            EE_Error::add_error(sprintf(__('The "%s" were not updated.', 'event_espresso'), $tab), $file, $func, $line);
3323
            return false;
3324
        }
3325
    }
3326
3327