Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-invoice.php 2 locations

@@ 2007-2009 (lines=3) @@
2004
            $pay_url = add_query_arg( array( 'wpi_action' => 'pay_for_invoice', 'invoice_key' => $key ), $pay_url );
2005
        }
2006
        
2007
        if ( $secret ) {
2008
            $pay_url = add_query_arg( array( '_wpipay' => md5( $this->get_user_id() . '::' . $this->get_email() . '::' . $key ) ), $pay_url );
2009
        }
2010
2011
        return apply_filters( 'wpinv_get_checkout_payment_url', $pay_url, $this );
2012
    }
@@ 2017-2019 (lines=3) @@
2014
    public function get_view_url( $secret = false ) {
2015
        $print_url = get_permalink( $this->ID );
2016
        
2017
        if ( $secret ) {
2018
            $print_url = add_query_arg( array( '_wpipay' => md5( $this->get_user_id() . '::' . $this->get_email() . '::' . $this->get_key() ) ), $print_url );
2019
        }
2020
2021
        return apply_filters( 'wpinv_get_view_url', $print_url, $this );
2022
    }