protected $mVFormClass = '';
protected $mHelpClass = false;
protected $mDefault;
+ /**
+ * @var array|bool|null
+ */
protected $mOptions = false;
protected $mOptionsLabelsNotFromMessage = false;
protected $mHideIf = null;
'mw-htmlform-nolabel' => ( $label === '' )
];
- $horizontalLabel = isset( $this->mParams['horizontal-label'] )
- ? $this->mParams['horizontal-label'] : false;
+ $horizontalLabel = $this->mParams['horizontal-label'] ?? false;
if ( $horizontalLabel ) {
$field = ' ' . $inputHtml . "\n$errors";
}
/**
- * Whether the field should be automatically infused. Note that all OOjs UI HTMLForm fields are
+ * Whether the field should be automatically infused. Note that all OOUI HTMLForm fields are
* infusable (you can call OO.ui.infuse() on them), but not all are infused by default, since
* there is no benefit in doing it e.g. for buttons and it's a small performance hit on page load.
*
/**
* Get the list of extra ResourceLoader modules which must be loaded client-side before it's
- * possible to infuse this field's OOjs UI widget.
+ * possible to infuse this field's OOUI widget.
*
* @return string[]
*/
$displayFormat = $this->mParent->getDisplayFormat();
$html = '';
- $horizontalLabel = isset( $this->mParams['horizontal-label'] )
- ? $this->mParams['horizontal-label'] : false;
+ $horizontalLabel = $this->mParams['horizontal-label'] ?? false;
if ( $displayFormat === 'table' ) {
$html =