@@ -470,7 +470,7 @@ |
||
| 470 | 470 | /** |
| 471 | 471 | * @param string $url |
| 472 | 472 | * |
| 473 | - * @return array |
|
| 473 | + * @return string[] |
|
| 474 | 474 | */ |
| 475 | 475 | public function getMetadata($url) |
| 476 | 476 | { |
@@ -161,8 +161,9 @@ discard block |
||
| 161 | 161 | * If we are using MySQLDatabase with InnoDB, we do row-level locking when updating the dataobject to allow for |
| 162 | 162 | * distributed cache rebuilds |
| 163 | 163 | * @static |
| 164 | - * @param $freshness |
|
| 164 | + * @param string $freshness |
|
| 165 | 165 | * @param $sortOrder |
| 166 | + * @param string $interval |
|
| 166 | 167 | */ |
| 167 | 168 | protected static function get_queue_object($freshness, $interval = null, $sortOrder = array('Priority'=>'DESC', 'ID'=>'ASC')) |
| 168 | 169 | { |
@@ -277,7 +278,7 @@ discard block |
||
| 277 | 278 | * Removes all duplicates that has the same URLSegment as $ID |
| 278 | 279 | * |
| 279 | 280 | * @param int $ID - ID of the object whose duplicates we want to remove |
| 280 | - * @return void |
|
| 281 | + * @return integer|null |
|
| 281 | 282 | */ |
| 282 | 283 | public static function remove_duplicates($ID) |
| 283 | 284 | { |
@@ -293,7 +294,6 @@ discard block |
||
| 293 | 294 | /** |
| 294 | 295 | * |
| 295 | 296 | * @param string $url |
| 296 | - * @param bool $onlyStale - Get only stale entries |
|
| 297 | 297 | * @return DataObject || false - The first item matching the query |
| 298 | 298 | */ |
| 299 | 299 | protected static function get_by_link($url) |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * |
| 59 | - * @param StaticPagesQueue $eventClass |
|
| 59 | + * @param StaticPagesQueueEvent $eventClass |
|
| 60 | 60 | * @return bool - if the event was fired or not |
| 61 | 61 | * @throws Exception |
| 62 | 62 | */ |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | * @param unknown $params |
| 49 | 49 | * @param array $sort |
| 50 | 50 | * @param int $limit |
| 51 | - * @return DataObjectSet or false |
|
| 51 | + * @return DataList or false |
|
| 52 | 52 | */ |
| 53 | 53 | public function sourceRecords($params, $sort, $limit) |
| 54 | 54 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @param array $params |
| 30 | 30 | * @param array $sort |
| 31 | 31 | * @param int $limit |
| 32 | - * @return DataObjectSet or false |
|
| 32 | + * @return ArrayList or false |
|
| 33 | 33 | */ |
| 34 | 34 | public function sourceRecords(array $params, $sort, $limit) |
| 35 | 35 | { |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * If a SubsiteID GET parameter is found in the URL, the page is generated into a directory, |
| 163 | 163 | * regardless if it's from the main site or subsite. |
| 164 | 164 | * |
| 165 | - * @param array $URLSegments |
|
| 165 | + * @param string[] $URLSegments |
|
| 166 | 166 | */ |
| 167 | 167 | protected function createCachedFiles(array $URLSegments) |
| 168 | 168 | { |
@@ -311,6 +311,8 @@ discard block |
||
| 311 | 311 | /** |
| 312 | 312 | * |
| 313 | 313 | * @param int $publishedPages - the number of pages published so far |
| 314 | + * @param boolean $finished |
|
| 315 | + * @param double $prePublishTime |
|
| 314 | 316 | */ |
| 315 | 317 | protected function logSummary($publishedPages, $finished, $prePublishTime) |
| 316 | 318 | { |
@@ -357,6 +359,7 @@ discard block |
||
| 357 | 359 | * Check if another instance is running with the regard to a timelimit. |
| 358 | 360 | * |
| 359 | 361 | * @var int $secondsBeforeDead |
| 362 | + * @param integer $secondsBeforeDead |
|
| 360 | 363 | * @return bool |
| 361 | 364 | */ |
| 362 | 365 | protected function anotherInstanceRunning($secondsBeforeDead) |
@@ -382,7 +385,6 @@ discard block |
||
| 382 | 385 | /** |
| 383 | 386 | * Adds information to the pid file |
| 384 | 387 | * |
| 385 | - * @param float $microtime |
|
| 386 | 388 | * @return void |
| 387 | 389 | */ |
| 388 | 390 | protected function updatePid() |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * |
| 52 | 52 | * @param SS_HTTPRequest $request |
| 53 | - * @return bool |
|
| 53 | + * @return boolean|null |
|
| 54 | 54 | */ |
| 55 | 55 | public function run($request) |
| 56 | 56 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | 101 | * Process a chunk of pages |
| 102 | - * @param $start |
|
| 102 | + * @param integer $start |
|
| 103 | 103 | */ |
| 104 | 104 | protected function runFrom($start) |
| 105 | 105 | { |