Code Duplication    Length = 4-4 lines in 3 locations

includes/htmlform/HTMLFormField.php 3 locations

@@ 563-566 (lines=4) @@
560
		$wrapperAttributes = [
561
			'class' => $divCssClasses,
562
		];
563
		if ( $this->mHideIf ) {
564
			$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
565
			$wrapperAttributes['class'][] = ' mw-htmlform-hide-if';
566
		}
567
		$html = Html::rawElement( 'div', $wrapperAttributes, $label . $field );
568
		$html .= $helptext;
569
@@ 714-717 (lines=4) @@
711
		}
712
713
		$rowAttributes = [];
714
		if ( $this->mHideIf ) {
715
			$rowAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
716
			$rowAttributes['class'] = 'mw-htmlform-hide-if';
717
		}
718
719
		$tdClasses = [ 'htmlform-tip' ];
720
		if ( $this->mHelpClass !== false ) {
@@ 748-751 (lines=4) @@
745
		if ( $this->mHelpClass !== false ) {
746
			$wrapperAttributes['class'] .= " {$this->mHelpClass}";
747
		}
748
		if ( $this->mHideIf ) {
749
			$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
750
			$wrapperAttributes['class'] .= ' mw-htmlform-hide-if';
751
		}
752
		$div = Html::rawElement( 'div', $wrapperAttributes, $helptext );
753
754
		return $div;