Merge "Allow search suggestions in skins operating in mobile mode"
[lhc/web/wiklou.git] / includes / changetags / ChangeTagsRevisionList.php
index f0dfc0f..a0248c6 100644 (file)
@@ -19,6 +19,8 @@
  * @ingroup Change tagging
  */
 
+use Wikimedia\Rdbms\IDatabase;
+
 /**
  * Stores a list of taggable revisions.
  * @since 1.25
@@ -34,19 +36,19 @@ class ChangeTagsRevisionList extends ChangeTagsList {
         */
        public function doQuery( $db ) {
                $ids = array_map( 'intval', $this->ids );
-               $queryInfo = array(
-                       'tables' => array( 'revision', 'user' ),
+               $queryInfo = [
+                       'tables' => [ 'revision', 'user' ],
                        'fields' => array_merge( Revision::selectFields(), Revision::selectUserFields() ),
-                       'conds' => array(
+                       'conds' => [
                                'rev_page' => $this->title->getArticleID(),
                                'rev_id' => $ids,
-                       ),
-                       'options' => array( 'ORDER BY' => 'rev_id DESC' ),
-                       'join_conds' => array(
+                       ],
+                       'options' => [ 'ORDER BY' => 'rev_id DESC' ],
+                       'join_conds' => [
                                'page' => Revision::pageJoinCond(),
                                'user' => Revision::userJoinCond(),
-                       ),
-               );
+                       ],
+               ];
                ChangeTags::modifyDisplayQuery(
                        $queryInfo['tables'],
                        $queryInfo['fields'],