Code Duplication    Length = 4-4 lines in 3 locations

includes/htmlform/HTMLFormField.php 3 locations

@@ 554-557 (lines=4) @@
551
		$wrapperAttributes = [
552
			'class' => $divCssClasses,
553
		];
554
		if ( $this->mHideIf ) {
555
			$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
556
			$wrapperAttributes['class'][] = ' mw-htmlform-hide-if';
557
		}
558
		$html = Html::rawElement( 'div', $wrapperAttributes, $label . $field );
559
		$html .= $helptext;
560
@@ 710-713 (lines=4) @@
707
		}
708
709
		$rowAttributes = [];
710
		if ( $this->mHideIf ) {
711
			$rowAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
712
			$rowAttributes['class'] = 'mw-htmlform-hide-if';
713
		}
714
715
		$tdClasses = [ 'htmlform-tip' ];
716
		if ( $this->mHelpClass !== false ) {
@@ 744-747 (lines=4) @@
741
		if ( $this->mHelpClass !== false ) {
742
			$wrapperAttributes['class'] .= " {$this->mHelpClass}";
743
		}
744
		if ( $this->mHideIf ) {
745
			$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
746
			$wrapperAttributes['class'] .= ' mw-htmlform-hide-if';
747
		}
748
		$div = Html::rawElement( 'div', $wrapperAttributes, $helptext );
749
750
		return $div;