Code Duplication    Length = 3-3 lines in 2 locations

includes/class-give-html-elements.php 2 locations

@@ 584-586 (lines=3) @@
581
582
		$output .= '<label class="give-label" for="give-' . sanitize_key( $args['name'] ) . '">' . esc_html( $args['label'] ) . '</label>';
583
584
		if ( ! empty( $args['desc'] ) ) {
585
			$output .= '<span class="give-description">' . esc_html( $args['desc'] ) . '</span>';
586
		}
587
588
		$output .= '<input type="text" name="' . esc_attr( $args['name'] ) . '" id="' . esc_attr( $args['name'] ) . '" autocomplete="' . esc_attr( $args['autocomplete'] ) . '" value="' . esc_attr( $args['value'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" class="' . $args['class'] . '" ' . $data . '' . $disabled . '/>';
589
@@ 653-655 (lines=3) @@
650
651
		$output .= '<textarea name="' . esc_attr( $args['name'] ) . '" id="' . esc_attr( $args['name'] ) . '" class="' . $args['class'] . '"' . $disabled . '>' . esc_attr( $args['value'] ) . '</textarea>';
652
653
		if ( ! empty( $args['desc'] ) ) {
654
			$output .= '<span class="give-description">' . esc_html( $args['desc'] ) . '</span>';
655
		}
656
657
		$output .= '</span>';
658