Code Duplication    Length = 3-3 lines in 2 locations

includes/gateways/cheque/class-wc-gateway-cheque.php 1 location

@@ 100-102 (lines=3) @@
97
	 * @param bool $plain_text
98
	 */
99
	public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {
100
		if ( $this->instructions && ! $sent_to_admin && 'cheque' === $order->get_payment_method() && $order->has_status( 'on-hold' ) ) {
101
			echo wpautop( wptexturize( $this->instructions ) ) . PHP_EOL;
102
		}
103
	}
104
105
	/**

includes/gateways/cod/class-wc-gateway-cod.php 1 location

@@ 233-235 (lines=3) @@
230
	 * @param bool $plain_text
231
	 */
232
	public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {
233
		if ( $this->instructions && ! $sent_to_admin && 'cod' === $order->get_payment_method() ) {
234
			echo wpautop( wptexturize( $this->instructions ) ) . PHP_EOL;
235
		}
236
	}
237
}
238