Code Duplication    Length = 32-36 lines in 2 locations

includes/gateways/bacs/class-wc-gateway-bacs.php 1 location

@@ 69-104 (lines=36) @@
66
	/**
67
	 * Initialise Gateway Settings Form Fields.
68
	 */
69
	public function init_form_fields() {
70
71
		$this->form_fields = array(
72
			'enabled' => array(
73
				'title'   => __( 'Enable/Disable', 'woocommerce' ),
74
				'type'    => 'checkbox',
75
				'label'   => __( 'Enable Bank Transfer', 'woocommerce' ),
76
				'default' => 'no'
77
			),
78
			'title' => array(
79
				'title'       => __( 'Title', 'woocommerce' ),
80
				'type'        => 'text',
81
				'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce' ),
82
				'default'     => __( 'Direct Bank Transfer', 'woocommerce' ),
83
				'desc_tip'    => true,
84
			),
85
			'description' => array(
86
				'title'       => __( 'Description', 'woocommerce' ),
87
				'type'        => 'textarea',
88
				'description' => __( 'Payment method description that the customer will see on your checkout.', 'woocommerce' ),
89
				'default'     => __( 'Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order won\'t be shipped until the funds have cleared in our account.', 'woocommerce' ),
90
				'desc_tip'    => true,
91
			),
92
			'instructions' => array(
93
				'title'       => __( 'Instructions', 'woocommerce' ),
94
				'type'        => 'textarea',
95
				'description' => __( 'Instructions that will be added to the thank you page and emails.', 'woocommerce' ),
96
				'default'     => '',
97
				'desc_tip'    => true,
98
			),
99
			'account_details' => array(
100
				'type'        => 'account_details'
101
			),
102
		);
103
104
	}
105
106
	/**
107
	 * Generate account details html.

includes/gateways/cheque/class-wc-gateway-cheque.php 1 location

@@ 50-81 (lines=32) @@
47
    /**
48
     * Initialise Gateway Settings Form Fields.
49
     */
50
    public function init_form_fields() {
51
52
    	$this->form_fields = array(
53
			'enabled' => array(
54
				'title'   => __( 'Enable/Disable', 'woocommerce' ),
55
				'type'    => 'checkbox',
56
				'label'   => __( 'Enable Check Payments', 'woocommerce' ),
57
				'default' => 'yes'
58
			),
59
			'title' => array(
60
				'title'       => __( 'Title', 'woocommerce' ),
61
				'type'        => 'text',
62
				'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce' ),
63
				'default'     => _x( 'Check Payments', 'Check payment method', 'woocommerce' ),
64
				'desc_tip'    => true,
65
			),
66
			'description' => array(
67
				'title'       => __( 'Description', 'woocommerce' ),
68
				'type'        => 'textarea',
69
				'description' => __( 'Payment method description that the customer will see on your checkout.', 'woocommerce' ),
70
				'default'     => __( 'Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode.', 'woocommerce' ),
71
				'desc_tip'    => true,
72
			),
73
			'instructions' => array(
74
				'title'       => __( 'Instructions', 'woocommerce' ),
75
				'type'        => 'textarea',
76
				'description' => __( 'Instructions that will be added to the thank you page and emails.', 'woocommerce' ),
77
				'default'     => '',
78
				'desc_tip'    => true,
79
			),
80
		);
81
    }
82
83
    /**
84
     * Output for the order received page.