Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 2142-2153 (lines=12) @@
2139
	 *
2140
	 * @return string
2141
	 */
2142
	public function get_cancel_order_url( $redirect = '' ) {
2143
2144
		// Get cancel endpoint
2145
		$cancel_endpoint = $this->get_cancel_endpoint();
2146
2147
		return apply_filters( 'woocommerce_get_cancel_order_url', esc_url( add_query_arg( array(
2148
			'cancel_order' => 'true',
2149
			'order'        => $this->order_key,
2150
			'order_id'     => $this->id,
2151
			'redirect'     => $redirect,
2152
		), $cancel_endpoint ) ) );
2153
	}
2154
2155
	/**
2156
	 * Generates a raw (unescaped) cancel-order URL for use by payment gateways.
@@ 2161-2172 (lines=12) @@
2158
	 * @param string $redirect
2159
	 * @return string The unescaped cancel-order URL.
2160
	 */
2161
	public function get_cancel_order_url_raw( $redirect = '' ) {
2162
2163
		// Get cancel endpoint
2164
		$cancel_endpoint = $this->get_cancel_endpoint();
2165
2166
		return apply_filters( 'woocommerce_get_cancel_order_url_raw', add_query_arg( array(
2167
			'cancel_order' => 'true',
2168
			'order'        => $this->order_key,
2169
			'order_id'     => $this->id,
2170
			'redirect'     => $redirect,
2171
		), $cancel_endpoint ) );
2172
	}
2173
2174
2175
	/**