Merge "Add Status::getStatusValue()"
[lhc/web/wiklou.git] / includes / htmlform / HTMLSelectOrOtherField.php
index 81a29d0..8f7750c 100644 (file)
@@ -16,7 +16,7 @@ class HTMLSelectOrOtherField extends HTMLTextField {
                                        ? $params['other']
                                        : wfMessage( 'htmlform-selectorother-other' )->text();
                        // Have 'other' always as first element
-                       $this->mOptions = array( $msg => 'other' ) + $this->mOptions;
+                       $this->mOptions = [ $msg => 'other' ] + $this->mOptions;
                }
 
        }
@@ -38,7 +38,7 @@ class HTMLSelectOrOtherField extends HTMLTextField {
 
                $select->setAttribute( 'class', 'mw-htmlform-select-or-other' );
 
-               $tbAttribs = array( 'id' => $this->mID . '-other', 'size' => $this->getSize() );
+               $tbAttribs = [ 'id' => $this->mID . '-other', 'size' => $this->getSize() ];
 
                if ( !empty( $this->mParams['disabled'] ) ) {
                        $select->setAttribute( 'disabled', 'disabled' );