Code Duplication    Length = 13-14 lines in 2 locations

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

@@ 360-372 (lines=13) @@
357
	 * @since 2.7.0
358
	 * @return array
359
	 */
360
	public function get_data() {
361
		return array_merge(
362
			$this->data,
363
			array(
364
				'meta_data'      => $this->get_meta_data(),
365
				'line_items'     => $this->get_items( 'line_item' ),
366
				'tax_lines'      => $this->get_items( 'tax' ),
367
				'shipping_lines' => $this->get_items( 'shipping' ),
368
				'fee_lines'      => $this->get_items( 'fee' ),
369
				'coupon_lines'   => $this->get_items( 'coupon' ),
370
			)
371
		);
372
	}
373
374
	/**
375
	 * Get parent order ID.

includes/class-wc-order.php 1 location

@@ 504-517 (lines=14) @@
501
	 * @since 2.7.0
502
	 * @return array
503
	 */
504
	public function get_data() {
505
		return array_merge(
506
			$this->data,
507
			array(
508
				'number'         => $this->get_order_number(),
509
				'meta_data'      => $this->get_meta_data(),
510
				'line_items'     => $this->get_items( 'line_item' ),
511
				'tax_lines'      => $this->get_items( 'tax' ),
512
				'shipping_lines' => $this->get_items( 'shipping' ),
513
				'fee_lines'      => $this->get_items( 'fee' ),
514
				'coupon_lines'   => $this->get_items( 'coupon' ),
515
			)
516
		);
517
	}
518
519
	/**
520
	 * get_order_number function.