Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

@@ 1989-1991 (lines=3) @@
1986
            $pay_url = add_query_arg( array( 'wpi_action' => 'pay_for_invoice', 'invoice_key' => $key ), $pay_url );
1987
        }
1988
        
1989
        if ( $secret ) {
1990
            $pay_url = add_query_arg( array( '_wpipay' => md5( $this->get_user_id() . '::' . $this->get_email() . '::' . $key ) ), $pay_url );
1991
        }
1992
1993
        return apply_filters( 'wpinv_get_checkout_payment_url', $pay_url, $this );
1994
    }
@@ 1999-2001 (lines=3) @@
1996
    public function get_view_url( $secret = false ) {
1997
        $print_url = get_permalink( $this->ID );
1998
        
1999
        if ( $secret ) {
2000
            $print_url = add_query_arg( array( '_wpipay' => md5( $this->get_user_id() . '::' . $this->get_email() . '::' . $this->get_key() ) ), $print_url );
2001
        }
2002
2003
        return apply_filters( 'wpinv_get_view_url', $print_url, $this );
2004
    }