Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

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