Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

@@ 2000-2002 (lines=3) @@
1997
            $pay_url = add_query_arg( array( 'wpi_action' => 'pay_for_invoice', 'invoice_key' => $key ), $pay_url );
1998
        }
1999
        
2000
        if ( $secret ) {
2001
            $pay_url = add_query_arg( array( '_wpipay' => md5( $this->get_user_id() . '::' . $this->get_email() . '::' . $key ) ), $pay_url );
2002
        }
2003
2004
        return apply_filters( 'wpinv_get_checkout_payment_url', $pay_url, $this );
2005
    }
@@ 2010-2012 (lines=3) @@
2007
    public function get_view_url( $secret = false ) {
2008
        $print_url = get_permalink( $this->ID );
2009
        
2010
        if ( $secret ) {
2011
            $print_url = add_query_arg( array( '_wpipay' => md5( $this->get_user_id() . '::' . $this->get_email() . '::' . $this->get_key() ) ), $print_url );
2012
        }
2013
2014
        return apply_filters( 'wpinv_get_view_url', $print_url, $this );
2015
    }