Code Duplication    Length = 12-13 lines in 2 locations

includes/shipping/free-shipping/class-wc-shipping-free-shipping.php 1 location

@@ 37-49 (lines=13) @@
34
	 *
35
	 * @param int $instance_id Shipping method instance.
36
	 */
37
	public function __construct( $instance_id = 0 ) {
38
		$this->id                 = 'free_shipping';
39
		$this->instance_id        = absint( $instance_id );
40
		$this->method_title       = __( 'Free Shipping', 'woocommerce' );
41
		$this->method_description = __( 'Free Shipping is a special method which can be triggered with coupons and minimum spends.', 'woocommerce' );
42
		$this->supports           = array(
43
			'shipping-zones',
44
			'instance-settings',
45
			'instance-settings-modal',
46
		);
47
48
		$this->init();
49
	}
50
51
	/**
52
	 * Initialize free shipping.

includes/shipping/local-pickup/class-wc-shipping-local-pickup.php 1 location

@@ 21-32 (lines=12) @@
18
	/**
19
	 * Constructor.
20
	 */
21
	public function __construct( $instance_id = 0 ) {
22
		$this->id                    = 'local_pickup';
23
		$this->instance_id 			 = absint( $instance_id );
24
		$this->method_title          = __( 'Local Pickup', 'woocommerce' );
25
		$this->method_description    = __( 'Allow customers to pick up orders themselves. By default, when using local pickup store base taxes will apply regardless of customer address.', 'woocommerce' );
26
		$this->supports              = array(
27
			'shipping-zones',
28
			'instance-settings',
29
			'instance-settings-modal',
30
		);
31
		$this->init();
32
	}
33
34
	/**
35
	 * Initialize local pickup.