Code Duplication    Length = 4-4 lines in 3 locations

includes/htmlform/HTMLFormField.php 3 locations

@@ 568-571 (lines=4) @@
565
		$wrapperAttributes = [
566
			'class' => $divCssClasses,
567
		];
568
		if ( $this->mHideIf ) {
569
			$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
570
			$wrapperAttributes['class'][] = ' mw-htmlform-hide-if';
571
		}
572
		$html = Html::rawElement( 'div', $wrapperAttributes, $label . $field );
573
		$html .= $helptext;
574
@@ 752-755 (lines=4) @@
749
		}
750
751
		$rowAttributes = [];
752
		if ( $this->mHideIf ) {
753
			$rowAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
754
			$rowAttributes['class'] = 'mw-htmlform-hide-if';
755
		}
756
757
		$tdClasses = [ 'htmlform-tip' ];
758
		if ( $this->mHelpClass !== false ) {
@@ 786-789 (lines=4) @@
783
		if ( $this->mHelpClass !== false ) {
784
			$wrapperAttributes['class'] .= " {$this->mHelpClass}";
785
		}
786
		if ( $this->mHideIf ) {
787
			$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf );
788
			$wrapperAttributes['class'] .= ' mw-htmlform-hide-if';
789
		}
790
		$div = Html::rawElement( 'div', $wrapperAttributes, $helptext );
791
792
		return $div;