Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

@@ 1171-1173 (lines=3) @@
1168
        $process_refund = true;
1169
1170
        // If the payment was not in publish or revoked status, don't decrement stats as they were never incremented
1171
        if ( ( 'publish' != $this->old_status && 'revoked' != $this->old_status ) || 'refunded' != $this->status ) {
1172
            $process_refund = false;
1173
        }
1174
1175
        // Allow extensions to filter for their own payment types, Example: Recurring Payments
1176
        $process_refund = apply_filters( 'wpinv_should_process_refund', $process_refund, $this );
@@ 1210-1212 (lines=3) @@
1207
        $process_pending = true;
1208
1209
        // If the payment was not in publish or revoked status, don't decrement stats as they were never incremented
1210
        if ( ( 'publish' != $this->old_status && 'revoked' != $this->old_status ) || 'pending' != $this->status ) {
1211
            $process_pending = false;
1212
        }
1213
1214
        // Allow extensions to filter for their own payment types, Example: Recurring Payments
1215
        $process_pending = apply_filters( 'wpinv_should_process_pending', $process_pending, $this );