Code Duplication    Length = 11-11 lines in 2 locations

includes/abstracts/abstract-wc-legacy-order.php 1 location

@@ 600-610 (lines=11) @@
597
	 * @param int $id (default: 0).
598
	 * @return bool
599
	 */
600
	public function get_order( $id = 0 ) {
601
		_deprecated_function( 'get_order', '2.7', 'read' );
602
		if ( ! $id ) {
603
			return false;
604
		}
605
		if ( $result = get_post( $id ) ) {
606
			$this->populate( $result );
607
			return true;
608
		}
609
		return false;
610
	}
611
612
	/**
613
	 * Populates an order from the loaded post data.

includes/class-wc-order-refund.php 1 location

@@ 218-228 (lines=11) @@
215
	 * @param int $id (default: 0).
216
	 * @return bool
217
	 */
218
	public function get_refund( $id = 0 ) {
219
		_deprecated_function( 'get_refund', '2.7', 'read' );
220
		if ( ! $id ) {
221
			return false;
222
		}
223
		if ( $result = get_post( $id ) ) {
224
			$this->populate( $result );
225
			return true;
226
		}
227
		return false;
228
	}
229
230
	/**
231
	 * Get refund amount.