Code Duplication    Length = 3-3 lines in 3 locations

includes/abstracts/abstract-wc-payment-gateway.php 1 location

@@ 151-153 (lines=3) @@
148
			$return_url = wc_get_endpoint_url( 'order-received', '', wc_get_page_permalink( 'checkout' ) );
149
		}
150
151
		if ( is_ssl() || get_option('woocommerce_force_ssl_checkout') == 'yes' ) {
152
			$return_url = str_replace( 'http:', 'https:', $return_url );
153
		}
154
155
		return apply_filters( 'woocommerce_get_return_url', $return_url, $order );
156
	}

includes/abstracts/abstract-wc-order.php 2 locations

@@ 2039-2041 (lines=3) @@
2036
2037
		$pay_url = wc_get_endpoint_url( 'order-pay', $this->id, wc_get_page_permalink( 'checkout' ) );
2038
2039
		if ( 'yes' == get_option( 'woocommerce_force_ssl_checkout' ) || is_ssl() ) {
2040
			$pay_url = str_replace( 'http:', 'https:', $pay_url );
2041
		}
2042
2043
		if ( $on_checkout ) {
2044
			$pay_url = add_query_arg( 'key', $this->order_key, $pay_url );
@@ 2061-2063 (lines=3) @@
2058
2059
		$order_received_url = wc_get_endpoint_url( 'order-received', $this->id, wc_get_page_permalink( 'checkout' ) );
2060
2061
		if ( 'yes' == get_option( 'woocommerce_force_ssl_checkout' ) || is_ssl() ) {
2062
			$order_received_url = str_replace( 'http:', 'https:', $order_received_url );
2063
		}
2064
2065
		$order_received_url = add_query_arg( 'key', $this->order_key, $order_received_url );
2066