From 820dcbc3a22fad767c57c032dae8c6488d10426a Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Wed, 20 Nov 2013 19:45:04 +0100 Subject: [PATCH] Update documentation in HTMLCacheUpdateJob Change-Id: I2774d5bd400b9a26415a6a93561c02ea0588e448 --- includes/job/jobs/HTMLCacheUpdateJob.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/includes/job/jobs/HTMLCacheUpdateJob.php b/includes/job/jobs/HTMLCacheUpdateJob.php index 44c240bb30..be129371f9 100644 --- a/includes/job/jobs/HTMLCacheUpdateJob.php +++ b/includes/job/jobs/HTMLCacheUpdateJob.php @@ -51,9 +51,9 @@ class HTMLCacheUpdateJob extends Job { /** * Construct a job - * @param $title Title: the title linked to + * @param Title $title The title linked to * @param array $params job parameters (table, start and end page_ids) - * @param $id Integer: job id + * @param int $id Job id */ function __construct( $title, $params, $id = 0 ) { global $wgUpdateRowsPerJob, $wgUpdateRowsPerQuery; @@ -131,9 +131,8 @@ class HTMLCacheUpdateJob extends Job { * using a pre-calculated title array which gives the links in that range. * Queue the resulting jobs. * - * @param $titleArray array - * @param $rootJobParams array - * @return void + * @param array $titleArray + * @param array $rootJobParams */ protected function insertJobsFromTitles( $titleArray, $rootJobParams = array() ) { // Carry over any "root job" information @@ -184,8 +183,7 @@ class HTMLCacheUpdateJob extends Job { } /** - * @param $rootJobParams array - * @return void + * @param array $rootJobParams */ protected function insertPartitionJobs( $rootJobParams = array() ) { // Carry over any "root job" information @@ -213,7 +211,7 @@ class HTMLCacheUpdateJob extends Job { /** * Invalidate an array (or iterator) of Title objects, right now - * @param $titleArray array + * @param array $titleArray */ protected function invalidateTitles( $titleArray ) { global $wgUseFileCache, $wgUseSquid; @@ -223,6 +221,7 @@ class HTMLCacheUpdateJob extends Job { # Get all IDs in this query into an array $ids = array(); + /** @var Title $title */ foreach ( $titleArray as $title ) { $ids[] = $title->getArticleID(); } -- 2.20.1