Code Duplication    Length = 9-9 lines in 2 locations

includes/admin/settings/class-wc-settings-accounts.php 1 location

@@ 25-33 (lines=9) @@
22
	/**
23
	 * Constructor.
24
	 */
25
	public function __construct() {
26
27
		$this->id    = 'account';
28
		$this->label = __( 'Accounts', 'woocommerce' );
29
30
		add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
31
		add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) );
32
		add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) );
33
	}
34
35
	/**
36
	 * Get settings array.

includes/admin/settings/class-wc-settings-general.php 1 location

@@ 25-33 (lines=9) @@
22
	/**
23
	 * Constructor.
24
	 */
25
	public function __construct() {
26
27
		$this->id    = 'general';
28
		$this->label = __( 'General', 'woocommerce' );
29
30
		add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
31
		add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) );
32
		add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) );
33
	}
34
35
	/**
36
	 * Get settings array.