Code Duplication    Length = 16-17 lines in 2 locations

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

@@ 130-145 (lines=16) @@
127
	 * @since 3.0.0
128
	 * @return array
129
	 */
130
	public function get_data() {
131
		return array_merge(
132
			array(
133
				'id' => $this->get_id(),
134
			),
135
			$this->data,
136
			array(
137
				'meta_data'      => $this->get_meta_data(),
138
				'line_items'     => $this->get_items( 'line_item' ),
139
				'tax_lines'      => $this->get_items( 'tax' ),
140
				'shipping_lines' => $this->get_items( 'shipping' ),
141
				'fee_lines'      => $this->get_items( 'fee' ),
142
				'coupon_lines'   => $this->get_items( 'coupon' ),
143
			)
144
		);
145
	}
146
147
	/*
148
	|--------------------------------------------------------------------------

includes/class-wc-order.php 1 location

@@ 393-409 (lines=17) @@
390
	 * @since 3.0.0
391
	 * @return array
392
	 */
393
	public function get_data() {
394
		return array_merge(
395
			array(
396
				'id' => $this->get_id(),
397
			),
398
			$this->data,
399
			array(
400
				'number'         => $this->get_order_number(),
401
				'meta_data'      => $this->get_meta_data(),
402
				'line_items'     => $this->get_items( 'line_item' ),
403
				'tax_lines'      => $this->get_items( 'tax' ),
404
				'shipping_lines' => $this->get_items( 'shipping' ),
405
				'fee_lines'      => $this->get_items( 'fee' ),
406
				'coupon_lines'   => $this->get_items( 'coupon' ),
407
			)
408
		);
409
	}
410
411
	/**
412
	 * Expands the shipping and billing information in the changes array.