Merge "FormatMetadata: Fix comment indentation and whitespace"
[lhc/web/wiklou.git] / maintenance / showSiteStats.php
index 56cc573..1d3e43a 100644 (file)
@@ -39,18 +39,18 @@ require_once __DIR__ . '/Maintenance.php';
 class ShowSiteStats extends Maintenance {
        public function __construct() {
                parent::__construct();
-               $this->mDescription = "Show the cached statistics";
+               $this->addDescription( 'Show the cached statistics' );
        }
 
        public function execute() {
-               $fields = array(
+               $fields = [
                        'ss_total_edits' => 'Total edits',
                        'ss_good_articles' => 'Number of articles',
                        'ss_total_pages' => 'Total pages',
                        'ss_users' => 'Number of users',
                        'ss_active_users' => 'Active users',
                        'ss_images' => 'Number of images',
-               );
+               ];
 
                // Get cached stats from slave database
                $dbr = $this->getDB( DB_SLAVE );