Code Duplication    Length = 8-9 lines in 2 locations

caffeinated/admin/new/pricing/Pricing_Admin_Page.core.php 2 locations

@@ 825-833 (lines=9) @@
822
			'action' => 'default'
823
			);
824
825
		if ( $success ) {
826
			if ( $trash ) {
827
				$msg = $success == 2 ? __('The Prices have been trashed.', 'event_espresso') : __('The Price has been trashed.', 'event_espresso');
828
			} else {
829
				$msg = $success == 2 ? __('The Prices have been restored.', 'event_espresso') : __('The Price has been restored.', 'event_espresso');
830
			}
831
832
			EE_Error::add_success( $msg );
833
		}
834
835
		$this->_redirect_after_action( FALSE, '', '', $query_args, TRUE );
836
@@ 1229-1236 (lines=8) @@
1226
		}
1227
1228
		$query_args = array( 'action' => 'price_types' );
1229
		if ( $success ) {
1230
			if ( $trash ) {
1231
				$msg = $success > 1 ? __('The Price Types have been trashed.', 'event_espresso') : __('The Price Type has been trashed.', 'event_espresso');
1232
			} else {
1233
				$msg = $success > 1 ? __('The Price Types have been restored.', 'event_espresso') : __('The Price Type has been restored.', 'event_espresso');
1234
			}
1235
			EE_Error::add_success( $msg );
1236
		}
1237
1238
		$this->_redirect_after_action( FALSE, '', '', $query_args, TRUE );
1239