aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLTitlesMultiselectField.php
diff options
context:
space:
mode:
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>2022-04-04 11:57:04 +0200
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>2022-08-04 21:43:12 +0200
commite23b070b4547b6a886519d92dacbb36fbd8511f3 (patch)
treeef6ab3e15e5b914bf9adba189da31b51f05d0f8f /includes/htmlform/fields/HTMLTitlesMultiselectField.php
parente6664f55c89da5271d751fe6766674006813e686 (diff)
downloadmediawikicore-e23b070b4547b6a886519d92dacbb36fbd8511f3.tar.gz
mediawikicore-e23b070b4547b6a886519d92dacbb36fbd8511f3.zip
Make use of ?? and ?: operators where it makes sense
Change-Id: I1d9d62d80b17d1a05222c6e82f631cb801c311a8
Diffstat (limited to 'includes/htmlform/fields/HTMLTitlesMultiselectField.php')
-rw-r--r--includes/htmlform/fields/HTMLTitlesMultiselectField.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/htmlform/fields/HTMLTitlesMultiselectField.php b/includes/htmlform/fields/HTMLTitlesMultiselectField.php
index 5f41bb137423..c21d129c77a6 100644
--- a/includes/htmlform/fields/HTMLTitlesMultiselectField.php
+++ b/includes/htmlform/fields/HTMLTitlesMultiselectField.php
@@ -92,11 +92,8 @@ class HTMLTitlesMultiselectField extends HTMLTitleTextField {
$params['default'] = $this->mParams['default'];
}
- if ( isset( $this->mParams['placeholder'] ) ) {
- $params['placeholder'] = $this->mParams['placeholder'];
- } else {
- $params['placeholder'] = $this->msg( 'mw-widgets-titlesmultiselect-placeholder' )->plain();
- }
+ $params['placeholder'] = $this->mParams['placeholder'] ??
+ $this->msg( 'mw-widgets-titlesmultiselect-placeholder' )->plain();
if ( isset( $this->mParams['max'] ) ) {
$params['tagLimit'] = $this->mParams['max'];