Code Duplication    Length = 13-14 lines in 2 locations

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

@@ 354-366 (lines=13) @@
351
	 * @since 2.7.0
352
	 * @return array
353
	 */
354
	public function get_data() {
355
		return array_merge(
356
			$this->_data,
357
			array(
358
				'meta_data'      => $this->get_meta_data(),
359
				'line_items'     => $this->get_items( 'line_item' ),
360
				'tax_lines'      => $this->get_items( 'tax' ),
361
				'shipping_lines' => $this->get_items( 'shipping' ),
362
				'fee_lines'      => $this->get_items( 'fee' ),
363
				'coupon_lines'   => $this->get_items( 'coupon' ),
364
			)
365
		);
366
	}
367
368
	/**
369
	 * Get order ID.

includes/class-wc-order.php 1 location

@@ 448-461 (lines=14) @@
445
	 * @since 2.7.0
446
	 * @return array
447
	 */
448
	public function get_data() {
449
		return array_merge(
450
			$this->_data,
451
			array(
452
				'number'         => $this->get_order_number(),
453
				'meta_data'      => $this->get_meta_data(),
454
				'line_items'     => $this->get_items( 'line_item' ),
455
				'tax_lines'      => $this->get_items( 'tax' ),
456
				'shipping_lines' => $this->get_items( 'shipping' ),
457
				'fee_lines'      => $this->get_items( 'fee' ),
458
				'coupon_lines'   => $this->get_items( 'coupon' ),
459
			)
460
		);
461
	}
462
463
	/**
464
	 * get_order_number function.