Code Duplication    Length = 11-12 lines in 4 locations

includes/emails/class-wc-email-customer-new-account.php 1 location

@@ 121-132 (lines=12) @@
118
	 * @access public
119
	 * @return string
120
	 */
121
	public function get_content_plain() {
122
		return wc_get_template_html( $this->template_plain, array(
123
			'email_heading'      => $this->get_heading(),
124
			'user_login'         => $this->user_login,
125
			'user_pass'          => $this->user_pass,
126
			'blogname'           => $this->get_blogname(),
127
			'password_generated' => $this->password_generated,
128
			'sent_to_admin'      => false,
129
			'plain_text'         => true,
130
			'email'			     => $this
131
		) );
132
	}
133
}
134
135
endif;

includes/emails/class-wc-email-customer-refunded-order.php 2 locations

@@ 163-173 (lines=11) @@
160
	 * @access public
161
	 * @return string
162
	 */
163
	public function get_content_html() {
164
		return wc_get_template_html( $this->template_html, array(
165
			'order'          => $this->object,
166
			'refund'		 => $this->refund,
167
			'partial_refund' => $this->partial_refund,
168
			'email_heading'  => $this->get_heading(),
169
			'sent_to_admin'  => false,
170
			'plain_text'     => false,
171
			'email'			 => $this
172
		) );
173
	}
174
175
	/**
176
	 * Get content plain.
@@ 180-190 (lines=11) @@
177
	 *
178
	 * @return string
179
	 */
180
	public function get_content_plain() {
181
		return wc_get_template_html( $this->template_plain, array(
182
			'order'          => $this->object,
183
			'refund'		 => $this->refund,
184
			'partial_refund' => $this->partial_refund,
185
			'email_heading'  => $this->get_heading(),
186
			'sent_to_admin'  => false,
187
			'plain_text'     => true,
188
			'email'			 => $this
189
		) );
190
	}
191
192
	/**
193
	 * Initialise settings form fields.

includes/emails/class-wc-email-customer-reset-password.php 1 location

@@ 114-124 (lines=11) @@
111
	 * @access public
112
	 * @return string
113
	 */
114
	public function get_content_plain() {
115
		return wc_get_template_html( $this->template_plain, array(
116
			'email_heading' => $this->get_heading(),
117
			'user_login'    => $this->user_login,
118
			'reset_key'     => $this->reset_key,
119
			'blogname'      => $this->get_blogname(),
120
			'sent_to_admin' => false,
121
			'plain_text'    => true,
122
			'email'			=> $this
123
		) );
124
	}
125
}
126
127
endif;