From: Kunal Mehta Date: Tue, 9 Aug 2016 22:09:45 +0000 (-0700) Subject: SiteStats: Fix some phpdoc X-Git-Tag: 1.31.0-rc.0~6091^2~1 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=f8c7920366408199f9f45e439e054780d6f5cf2d;p=lhc%2Fweb%2Fwiklou.git SiteStats: Fix some phpdoc ...and don't pass false as $conds, use an empty array. Change-Id: I58127f0e7c4edad9345b924a019d64e5d2d6ddd9 --- diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 6c536ddc46..03b4b8cd57 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -24,7 +24,7 @@ * Static accessor class for site_stats and related things */ class SiteStats { - /** @var bool|ResultWrapper */ + /** @var bool|stdClass */ private static $row; /** @var bool */ @@ -62,7 +62,7 @@ class SiteStats { } /** - * @return bool|ResultWrapper + * @return bool|stdClass */ static function loadAndLazyInit() { global $wgMiserMode; @@ -96,7 +96,7 @@ class SiteStats { /** * @param IDatabase $db - * @return bool|ResultWrapper + * @return bool|stdClass */ static function doLoad( $db ) { return $db->selectRow( 'site_stats', [ @@ -107,7 +107,7 @@ class SiteStats { 'ss_users', 'ss_active_users', 'ss_images', - ], false, __METHOD__ ); + ], [], __METHOD__ ); } /**