Code Duplication    Length = 7-7 lines in 2 locations

includes/htmlform/OOUIHTMLForm.php 1 location

@@ 42-48 (lines=7) @@
39
	 */
40
	protected $displayFormat = 'ooui';
41
42
	public static function loadInputFromParameters( $fieldname, $descriptor,
43
		HTMLForm $parent = null
44
	) {
45
		$field = parent::loadInputFromParameters( $fieldname, $descriptor, $parent );
46
		$field->setShowEmptyLabel( false );
47
		return $field;
48
	}
49
50
	function getButtons() {
51
		$buttons = '';

includes/htmlform/VFormHTMLForm.php 1 location

@@ 45-51 (lines=7) @@
42
		return true;
43
	}
44
45
	public static function loadInputFromParameters( $fieldname, $descriptor,
46
		HTMLForm $parent = null
47
	) {
48
		$field = parent::loadInputFromParameters( $fieldname, $descriptor, $parent );
49
		$field->setShowEmptyLabel( false );
50
		return $field;
51
	}
52
53
	function getHTML( $submitResult ) {
54
		// This is required for VForm HTMLForms that use that style regardless