Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

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