Convert all array() syntax to []
[lhc/web/wiklou.git] / includes / revisiondelete / RevDelFileList.php
index c8276fc..75e1885 100644 (file)
@@ -53,7 +53,7 @@ class RevDelFileList extends RevDelList {
         * @return mixed
         */
        public function doQuery( $db ) {
-               $archiveNames = array();
+               $archiveNames = [];
                foreach ( $this->ids as $timestamp ) {
                        $archiveNames[] = $timestamp . '!' . $this->title->getDBkey();
                }
@@ -61,12 +61,12 @@ class RevDelFileList extends RevDelList {
                return $db->select(
                        'oldimage',
                        OldLocalFile::selectFields(),
-                       array(
+                       [
                                'oi_name' => $this->title->getDBkey(),
                                'oi_archive_name' => $archiveNames
-                       ),
+                       ],
                        __METHOD__,
-                       array( 'ORDER BY' => 'oi_timestamp DESC' )
+                       [ 'ORDER BY' => 'oi_timestamp DESC' ]
                );
        }
 
@@ -75,9 +75,9 @@ class RevDelFileList extends RevDelList {
        }
 
        public function clearFileOps() {
-               $this->deleteBatch = array();
-               $this->storeBatch = array();
-               $this->cleanupBatch = array();
+               $this->deleteBatch = [];
+               $this->storeBatch = [];
+               $this->cleanupBatch = [];
        }
 
        public function doPreCommitUpdates() {
@@ -110,7 +110,7 @@ class RevDelFileList extends RevDelList {
                $file->purgeDescription();
 
                // Purge full images from cache
-               $purgeUrls = array();
+               $purgeUrls = [];
                foreach ( $this->ids as $timestamp ) {
                        $archiveName = $timestamp . '!' . $this->title->getDBkey();
                        $file->purgeOldThumbnails( $archiveName );