Code Duplication    Length = 10-10 lines in 2 locations

includes/htmlform/VFormHTMLForm.php 1 location

@@ 108-117 (lines=10) @@
105
			$buttons .= Xml::submitButton( $this->getSubmitText(), $attribs ) . "\n";
106
		}
107
108
		if ( $this->mShowReset ) {
109
			$buttons .= Html::element(
110
				'input',
111
				[
112
					'type' => 'reset',
113
					'value' => $this->msg( 'htmlform-reset' )->text(),
114
					'class' => 'mw-ui-button mw-ui-big mw-ui-block',
115
				]
116
			) . "\n";
117
		}
118
119
		foreach ( $this->mButtons as $button ) {
120
			$attrs = [

includes/htmlform/HTMLForm.php 1 location

@@ 1098-1107 (lines=10) @@
1095
			$buttons .= Xml::submitButton( $this->getSubmitText(), $attribs ) . "\n";
1096
		}
1097
1098
		if ( $this->mShowReset ) {
1099
			$buttons .= Html::element(
1100
				'input',
1101
				[
1102
					'type' => 'reset',
1103
					'value' => $this->msg( 'htmlform-reset' )->text(),
1104
					'class' => $useMediaWikiUIEverywhere ? 'mw-ui-button' : null,
1105
				]
1106
			) . "\n";
1107
		}
1108
1109
		// IE<8 has bugs with <button>, so we'll need to avoid them.
1110
		$isBadIE = preg_match( '/MSIE [1-7]\./i', $this->getRequest()->getHeader( 'User-Agent' ) );