Convert all array() syntax to []
[lhc/web/wiklou.git] / includes / specials / SpecialBooksources.php
index 53798c0..d185203 100644 (file)
@@ -124,10 +124,10 @@ class SpecialBookSources extends SpecialPage {
                $form = Html::openElement( 'fieldset' ) . "\n";
                $form .= Html::element(
                        'legend',
-                       array(),
+                       [],
                        $this->msg( 'booksources-search-legend' )->text()
                ) . "\n";
-               $form .= Html::openElement( 'form', array( 'method' => 'get', 'action' => wfScript() ) ) . "\n";
+               $form .= Html::openElement( 'form', [ 'method' => 'get', 'action' => wfScript() ] ) . "\n";
                $form .= Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() ) . "\n";
                $form .= '<p>' . Xml::inputLabel(
                        $this->msg( 'booksources-isbn' )->text(),
@@ -135,12 +135,12 @@ class SpecialBookSources extends SpecialPage {
                        'isbn',
                        20,
                        $this->isbn,
-                       array( 'autofocus' => '', 'class' => 'mw-ui-input-inline' )
+                       [ 'autofocus' => '', 'class' => 'mw-ui-input-inline' ]
                );
 
                $form .= '&#160;' . Html::submitButton(
                        $this->msg( 'booksources-search' )->text(),
-                       array(), array( 'mw-ui-progressive' )
+                       [], [ 'mw-ui-progressive' ]
                ) . "</p>\n";
 
                $form .= Html::closeElement( 'form' ) . "\n";
@@ -161,7 +161,7 @@ class SpecialBookSources extends SpecialPage {
 
                # Hook to allow extensions to insert additional HTML,
                # e.g. for API-interacting plugins and so on
-               Hooks::run( 'BookInformation', array( $this->isbn, $this->getOutput() ) );
+               Hooks::run( 'BookInformation', [ $this->isbn, $this->getOutput() ] );
 
                # Check for a local page such as Project:Book_sources and use that if available
                $page = $this->msg( 'booksources' )->inContentLanguage()->text();
@@ -204,8 +204,8 @@ class SpecialBookSources extends SpecialPage {
        private function makeListItem( $label, $url ) {
                $url = str_replace( '$1', $this->isbn, $url );
 
-               return Html::rawElement( 'li', array(),
-                       Html::element( 'a', array( 'href' => $url, 'class' => 'external' ), $label ) );
+               return Html::rawElement( 'li', [],
+                       Html::element( 'a', [ 'href' => $url, 'class' => 'external' ], $label ) );
        }
 
        protected function getGroupName() {