Code Duplication    Length = 11-11 lines in 2 locations

admin_pages/transactions/Transactions_Admin_Page.core.php 2 locations

@@ 2331-2341 (lines=11) @@
2328
    {
2329
        switch ($payment instanceof EE_Payment) {
2330
            // payment notifications
2331
            case true:
2332
                if (isset(
2333
                    $this->_req_data['txn_payments'],
2334
                    $this->_req_data['txn_payments']['send_notifications']
2335
                )
2336
                    && filter_var($this->_req_data['txn_payments']['send_notifications'], FILTER_VALIDATE_BOOLEAN)
2337
                ) {
2338
                    $this->_process_payment_notification($payment);
2339
                }
2340
                break;
2341
            // registration notifications
2342
            case false:
2343
                if (isset(
2344
                    $this->_req_data['txn_reg_status_change'],
@@ 2342-2352 (lines=11) @@
2339
                }
2340
                break;
2341
            // registration notifications
2342
            case false:
2343
                if (isset(
2344
                    $this->_req_data['txn_reg_status_change'],
2345
                    $this->_req_data['txn_reg_status_change']['send_notifications']
2346
                )
2347
                    && filter_var($this->_req_data['txn_reg_status_change']['send_notifications'], FILTER_VALIDATE_BOOLEAN)
2348
                ) {
2349
                    add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true');
2350
                }
2351
                break;
2352
        }
2353
    }
2354
2355