Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

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