diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-09-09 11:11:50 +0200 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-09-09 09:47:41 +0000 |
commit | 5d40cff293d6969785ef429ef32b572905e6fcf0 (patch) | |
tree | 3480d402bbc28762351790c01af68ec8b38184de /maintenance/rebuildImages.php | |
parent | eee9f3b84f8ab38ee9dc4d727e7e5b56fbfb1b24 (diff) | |
download | mediawikicore-5d40cff293d6969785ef429ef32b572905e6fcf0.tar.gz mediawikicore-5d40cff293d6969785ef429ef32b572905e6fcf0.zip |
maintenance: Explicitly declare all used properties
All uses were checked with codesearch, and the visibility was chosen as
strict as possible.
Change-Id: I56666299cc04ccc418e05949422876583982eb3c
Diffstat (limited to 'maintenance/rebuildImages.php')
-rw-r--r-- | maintenance/rebuildImages.php | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index 3de007085950..df2ab042b1e8 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -41,12 +41,32 @@ use Wikimedia\Rdbms\IMaintainableDatabase; * @ingroup Maintenance */ class ImageBuilder extends Maintenance { - /** * @var IMaintainableDatabase */ protected $dbw; + /** @var bool */ + private $dryrun; + + /** @var LocalRepo|null */ + private $repo; + + /** @var int */ + private $updated; + + /** @var int */ + private $processed; + + /** @var int */ + private $count; + + /** @var int */ + private $startTime; + + /** @var string */ + private $table; + function __construct() { parent::__construct(); @@ -79,7 +99,7 @@ class ImageBuilder extends Maintenance { * @return LocalRepo */ function getRepo() { - if ( !isset( $this->repo ) ) { + if ( $this->repo === null ) { $this->repo = RepoGroup::singleton()->getLocalRepo(); } |