Code Duplication    Length = 5-8 lines in 2 locations

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 1352-1356 (lines=5) @@
1349
			);
1350
1351
		//if called via ajax then we return query args otherwise redirect
1352
		if ( defined('DOING_AJAX') && DOING_AJAX ) {
1353
			return $query_args;
1354
		} else {
1355
			$this->_redirect_after_action( FALSE, '', '', $query_args, TRUE );
1356
		}
1357
1358
	}
1359

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 2158-2165 (lines=8) @@
2155
						'event_id' => $this->_reg_event->ID()
2156
					);
2157
2158
					if ( defined('DOING_AJAX' )) {
2159
						//display registration form again because there are errors (maybe validation?)
2160
						$this->new_registration();
2161
						return;
2162
					} else {
2163
						$this->_redirect_after_action( FALSE, '', '', $query_args, TRUE );
2164
						return;
2165
					}
2166
				}
2167
				/** @type EE_Transaction_Payments $transaction_payments */
2168
				$transaction_payments = EE_Registry::instance()->load_class( 'Transaction_Payments' );