Merge "Rename autonym for 'no' from 'norsk bokmål' to 'norsk'"
[lhc/web/wiklou.git] / includes / changetags / ChangeTagsLogList.php
index 3bffbdf..e6d918a 100644 (file)
@@ -19,6 +19,8 @@
  * @ingroup Change tagging
  */
 
+use Wikimedia\Rdbms\IDatabase;
+
 /**
  * Stores a list of taggable log entries.
  * @since 1.25
@@ -35,8 +37,8 @@ class ChangeTagsLogList extends ChangeTagsList {
        public function doQuery( $db ) {
                $ids = array_map( 'intval', $this->ids );
                $queryInfo = DatabaseLogEntry::getSelectQueryData();
-               $queryInfo['conds'] += array( 'log_id' => $ids );
-               $queryInfo['options'] += array( 'ORDER BY' => 'log_id DESC' );
+               $queryInfo['conds'] += [ 'log_id' => $ids ];
+               $queryInfo['options'] += [ 'ORDER BY' => 'log_id DESC' ];
                ChangeTags::modifyDisplayQuery(
                        $queryInfo['tables'],
                        $queryInfo['fields'],
@@ -69,9 +71,7 @@ class ChangeTagsLogList extends ChangeTagsList {
         * @param User $user
         * @return Status
         */
-       public function updateChangeTagsOnAll( $tagsToAdd, $tagsToRemove, $params,
-               $reason, $user ) {
-
+       public function updateChangeTagsOnAll( $tagsToAdd, $tagsToRemove, $params, $reason, $user ) {
                // @codingStandardsIgnoreStart Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
                for ( $this->reset(); $this->current(); $this->next() ) {
                        // @codingStandardsIgnoreEnd