Code Duplication    Length = 6-6 lines in 3 locations

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

@@ 28-33 (lines=6) @@
25
	/**
26
	 * Constructor.
27
	 */
28
	public function __construct() {
29
		$this->id 			= 'legacy_free_shipping';
30
		$this->method_title = __( 'Free Shipping (Legacy)', 'woocommerce' );
31
		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-shipping' ) );
32
		$this->init();
33
	}
34
35
	/**
36
	 * Return the name of the option in the WP DB.

includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php 1 location

@@ 22-27 (lines=6) @@
19
	/**
20
	 * Constructor.
21
	 */
22
	public function __construct() {
23
		$this->id                 = 'legacy_local_delivery';
24
		$this->method_title       = __( 'Local Delivery (Legacy)', 'woocommerce' );
25
		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-shipping' ) );
26
		$this->init();
27
	}
28
29
	/**
30
	 * Return the name of the option in the WP DB.

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

@@ 22-27 (lines=6) @@
19
	/**
20
	 * Constructor.
21
	 */
22
	public function __construct() {
23
		$this->id                 = 'legacy_local_pickup';
24
		$this->method_title       = __( 'Local Pickup (Legacy)', 'woocommerce' );
25
		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-shipping' ) );
26
		$this->init();
27
	}
28
29
	/**
30
	 * Return the name of the option in the WP DB.