Code Duplication    Length = 11-11 lines in 2 locations

admin_pages/transactions/Transactions_Admin_Page.core.php 2 locations

@@ 1662-1672 (lines=11) @@
1659
	protected function _maybe_send_notifications( $payment = null ) {
1660
		switch ( $payment instanceof EE_Payment ) {
1661
			// payment notifications
1662
			case true :
1663
				if (
1664
					isset(
1665
						$this->_req_data[ 'txn_payments' ],
1666
						$this->_req_data[ 'txn_payments' ][ 'send_notifications' ]
1667
					) &&
1668
					filter_var( $this->_req_data[ 'txn_payments' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN )
1669
				) {
1670
					$this->_process_payment_notification( $payment );
1671
				}
1672
				break;
1673
			// registration notifications
1674
			case false :
1675
				if (
@@ 1674-1684 (lines=11) @@
1671
				}
1672
				break;
1673
			// registration notifications
1674
			case false :
1675
				if (
1676
					isset(
1677
						$this->_req_data[ 'txn_reg_status_change' ],
1678
						$this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ]
1679
					) &&
1680
					filter_var( $this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN )
1681
				) {
1682
					add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true' );
1683
				}
1684
				break;
1685
		}
1686
	}
1687