Code Duplication    Length = 3-3 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 627-629 (lines=3) @@
624
625
    $output = '<span id="wpinv-' . wpinv_sanitize_key( $args['name'] ) . '-wrap">';
626
    $output .= '<label class="wpinv-label" for="' . wpinv_sanitize_key( $args['id'] ) . '">' . esc_html( $args['label'] ) . '</label>';
627
    if ( ! empty( $args['desc'] ) ) {
628
        $output .= '<span class="wpinv-description">' . esc_html( $args['desc'] ) . '</span>';
629
    }
630
631
    $output .= '<input type="text" name="' . esc_attr( $args['name'] ) . '" id="' . esc_attr( $args['id'] )  . '" autocomplete="' . esc_attr( $args['autocomplete'] )  . '" value="' . esc_attr( $args['value'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" class="' . $class . '" ' . $data . ' ' . trim( $options ) . '/>';
632
@@ 670-672 (lines=3) @@
667
    $output .= '<label class="wpinv-label" for="' . wpinv_sanitize_key( $args['name'] ) . '">' . esc_html( $args['label'] ) . '</label>';
668
    $output .= '<textarea name="' . esc_attr( $args['name'] ) . '" id="' . wpinv_sanitize_key( $args['name'] ) . '" class="' . $class . '"' . $disabled . '>' . esc_attr( $args['value'] ) . '</textarea>';
669
670
    if ( ! empty( $args['desc'] ) ) {
671
        $output .= '<span class="wpinv-description">' . esc_html( $args['desc'] ) . '</span>';
672
    }
673
    $output .= '</span>';
674
675
    return $output;