Code Duplication    Length = 8-8 lines in 2 locations

includes/abstracts/abstract-wc-widget.php 2 locations

@@ 245-252 (lines=8) @@
242
243
			switch ( $setting['type'] ) {
244
245
				case 'text':
246
					?>
247
					<p>
248
						<label for="<?php echo esc_attr( $this->get_field_id( $key ) ); ?>"><?php echo wp_kses_post( $setting['label'] ); ?></label><?php // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
249
						<input class="widefat <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $this->get_field_id( $key ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $key ) ); ?>" type="text" value="<?php echo esc_attr( $value ); ?>" />
250
					</p>
251
					<?php
252
					break;
253
254
				case 'number':
255
					?>
@@ 288-295 (lines=8) @@
285
					<?php
286
					break;
287
288
				case 'checkbox':
289
					?>
290
					<p>
291
						<input class="checkbox <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $this->get_field_id( $key ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $key ) ); ?>" type="checkbox" value="1" <?php checked( $value, 1 ); ?> />
292
						<label for="<?php echo esc_attr( $this->get_field_id( $key ) ); ?>"><?php echo $setting['label']; /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></label>
293
					</p>
294
					<?php
295
					break;
296
297
				// Default: run an action.
298
				default: