Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / specials / SpecialMostlinked.php
index 019df49..3663647 100644 (file)
@@ -44,31 +44,31 @@ class MostlinkedPage extends QueryPage {
        }
 
        public function getQueryInfo() {
-               return array(
-                       'tables' => array( 'pagelinks', 'page' ),
-                       'fields' => array(
+               return [
+                       'tables' => [ 'pagelinks', 'page' ],
+                       'fields' => [
                                'namespace' => 'pl_namespace',
                                'title' => 'pl_title',
                                'value' => 'COUNT(*)',
                                'page_namespace'
-                       ),
-                       'options' => array(
+                       ],
+                       'options' => [
                                'HAVING' => 'COUNT(*) > 1',
-                               'GROUP BY' => array(
+                               'GROUP BY' => [
                                        'pl_namespace', 'pl_title',
                                        'page_namespace'
-                               )
-                       ),
-                       'join_conds' => array(
-                               'page' => array(
+                               ]
+                       ],
+                       'join_conds' => [
+                               'page' => [
                                        'LEFT JOIN',
-                                       array(
+                                       [
                                                'page_namespace = pl_namespace',
                                                'page_title = pl_title'
-                                       )
-                               )
-                       )
-               );
+                                       ]
+                               ]
+                       ]
+               ];
        }
 
        /**
@@ -116,7 +116,7 @@ class MostlinkedPage extends QueryPage {
                if ( !$title ) {
                        return Html::element(
                                'span',
-                               array( 'class' => 'mw-invalidtitle' ),
+                               [ 'class' => 'mw-invalidtitle' ],
                                Linker::getInvalidTitleDescription(
                                        $this->getContext(),
                                        $result->namespace,