Code Duplication    Length = 3-3 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 600-602 (lines=3) @@
597
598
    $output = '<span id="wpinv-' . wpinv_sanitize_key( $args['name'] ) . '-wrap">';
599
    $output .= '<label class="wpinv-label" for="' . wpinv_sanitize_key( $args['id'] ) . '">' . esc_html( $args['label'] ) . '</label>';
600
    if ( ! empty( $args['desc'] ) ) {
601
        $output .= '<span class="wpinv-description">' . esc_html( $args['desc'] ) . '</span>';
602
    }
603
604
    $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 ) . '/>';
605
@@ 643-645 (lines=3) @@
640
    $output .= '<label class="wpinv-label" for="' . wpinv_sanitize_key( $args['name'] ) . '">' . esc_html( $args['label'] ) . '</label>';
641
    $output .= '<textarea name="' . esc_attr( $args['name'] ) . '" id="' . wpinv_sanitize_key( $args['name'] ) . '" class="' . $class . '"' . $disabled . '>' . esc_attr( $args['value'] ) . '</textarea>';
642
643
    if ( ! empty( $args['desc'] ) ) {
644
        $output .= '<span class="wpinv-description">' . esc_html( $args['desc'] ) . '</span>';
645
    }
646
    $output .= '</span>';
647
648
    return $output;