Code Duplication    Length = 10-10 lines in 2 locations

includes/wc-conditional-functions.php 2 locations

@@ 93-102 (lines=10) @@
90
	}
91
}
92
93
if ( ! function_exists( 'is_checkout' ) ) {
94
95
	/**
96
	 * is_checkout - Returns true when viewing the checkout page.
97
	 * @return bool
98
	 */
99
	function is_checkout() {
100
		return is_page( wc_get_page_id( 'checkout' ) ) || wc_post_content_has_shortcode( 'woocommerce_checkout' ) || apply_filters( 'woocommerce_is_checkout', false );
101
	}
102
}
103
104
if ( ! function_exists( 'is_checkout_pay_page' ) ) {
105
@@ 149-158 (lines=10) @@
146
	}
147
}
148
149
if ( ! function_exists( 'is_account_page' ) ) {
150
151
	/**
152
	 * is_account_page - Returns true when viewing an account page.
153
	 * @return bool
154
	 */
155
	function is_account_page() {
156
		return is_page( wc_get_page_id( 'myaccount' ) ) || wc_post_content_has_shortcode( 'woocommerce_my_account' ) || apply_filters( 'woocommerce_is_account_page', false );
157
	}
158
}
159
160
if ( ! function_exists( 'is_view_order_page' ) ) {
161