Code Duplication    Length = 16-16 lines in 2 locations

options.php 2 locations

@@ 157-172 (lines=16) @@
154
/**
155
 * Define the input field for Mautic fallback flag
156
 */
157
function wpmautic_fallback_activated() {
158
	$flag = wpmautic_option( 'fallback_activated', false );
159
160
	?>
161
	<input
162
		id="wpmautic_fallback_activated"
163
		name="wpmautic_options[fallback_activated]"
164
		type="checkbox"
165
		value="1"
166
		<?php if ( true === $flag ) : ?>checked<?php endif; ?>
167
	/>
168
	<label for="wpmautic_fallback_activated">
169
		<?php esc_html_e( 'Activate it when JavaScript is disabled ?', 'wp-mautic' ); ?>
170
	</label>
171
	<?php
172
}
173
174
/**
175
 * Define the input field for Mautic logged user tracking flag
@@ 177-192 (lines=16) @@
174
/**
175
 * Define the input field for Mautic logged user tracking flag
176
 */
177
function wpmautic_track_logged_user() {
178
	$flag = wpmautic_option( 'track_logged_user', false );
179
180
	?>
181
	<input
182
		id="wpmautic_track_logged_user"
183
		name="wpmautic_options[track_logged_user]"
184
		type="checkbox"
185
		value="1"
186
		<?php if ( true === $flag ) : ?>checked<?php endif; ?>
187
	/>
188
	<label for="wpmautic_track_logged_user">
189
		<?php esc_html_e( 'Track user information when logged ?', 'wp-mautic' ); ?>
190
	</label>
191
	<?php
192
}
193
194
/**
195
 * Validate base URL input value