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 );
1996
    }
@@ 2001-2003 (lines=3) @@
1998
    public function get_view_url( $secret = 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
        return apply_filters( 'wpinv_get_view_url', $print_url, $this );
2006
    }