Code Duplication    Length = 13-14 lines in 2 locations

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

@@ 366-378 (lines=13) @@
363
	 * @since 2.7.0
364
	 * @return array
365
	 */
366
	public function get_data() {
367
		return array_merge(
368
			$this->_data,
369
			array(
370
				'meta_data'      => $this->get_meta_data(),
371
				'line_items'     => $this->get_items( 'line_item' ),
372
				'tax_lines'      => $this->get_items( 'tax' ),
373
				'shipping_lines' => $this->get_items( 'shipping' ),
374
				'fee_lines'      => $this->get_items( 'fee' ),
375
				'coupon_lines'   => $this->get_items( 'coupon' ),
376
			)
377
		);
378
	}
379
380
	/**
381
	 * Get order ID.

includes/class-wc-order.php 1 location

@@ 470-483 (lines=14) @@
467
	 * @since 2.7.0
468
	 * @return array
469
	 */
470
	public function get_data() {
471
		return array_merge(
472
			$this->_data,
473
			array(
474
				'number'         => $this->get_order_number(),
475
				'meta_data'      => $this->get_meta_data(),
476
				'line_items'     => $this->get_items( 'line_item' ),
477
				'tax_lines'      => $this->get_items( 'tax' ),
478
				'shipping_lines' => $this->get_items( 'shipping' ),
479
				'fee_lines'      => $this->get_items( 'fee' ),
480
				'coupon_lines'   => $this->get_items( 'coupon' ),
481
			)
482
		);
483
	}
484
485
	/**
486
	 * get_order_number function.