@@ -445,7 +445,7 @@ |
||
445 | 445 | /** |
446 | 446 | * @param string $url |
447 | 447 | * |
448 | - * @return array |
|
448 | + * @return string[] |
|
449 | 449 | */ |
450 | 450 | public function getMetadata($url) { |
451 | 451 | return array( |
@@ -151,8 +151,9 @@ discard block |
||
151 | 151 | * If we are using MySQLDatabase with InnoDB, we do row-level locking when updating the dataobject to allow for |
152 | 152 | * distributed cache rebuilds |
153 | 153 | * @static |
154 | - * @param $freshness |
|
154 | + * @param string $freshness |
|
155 | 155 | * @param $sortOrder |
156 | + * @param string $interval |
|
156 | 157 | */ |
157 | 158 | protected static function get_queue_object($freshness, $interval = null, $sortOrder = array('Priority'=>'DESC', 'ID'=>'ASC')) { |
158 | 159 | $className = __CLASS__; |
@@ -254,7 +255,7 @@ discard block |
||
254 | 255 | * Removes all duplicates that has the same URLSegment as $ID |
255 | 256 | * |
256 | 257 | * @param int $ID - ID of the object whose duplicates we want to remove |
257 | - * @return void |
|
258 | + * @return integer|null |
|
258 | 259 | */ |
259 | 260 | static function remove_duplicates( $ID ) { |
260 | 261 | $obj = DataObject::get_by_id('StaticPagesQueue', $ID); |
@@ -267,7 +268,6 @@ discard block |
||
267 | 268 | /** |
268 | 269 | * |
269 | 270 | * @param string $url |
270 | - * @param bool $onlyStale - Get only stale entries |
|
271 | 271 | * @return DataObject || false - The first item matching the query |
272 | 272 | */ |
273 | 273 | protected static function get_by_link($url) { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * |
57 | - * @param StaticPagesQueue $eventClass |
|
57 | + * @param StaticPagesQueueEvent $eventClass |
|
58 | 58 | * @return bool - if the event was fired or not |
59 | 59 | * @throws Exception |
60 | 60 | */ |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * @param unknown $params |
46 | 46 | * @param array $sort |
47 | 47 | * @param int $limit |
48 | - * @return DataObjectSet or false |
|
48 | + * @return DataList or false |
|
49 | 49 | */ |
50 | 50 | function sourceRecords($params, $sort, $limit) { |
51 | 51 | if($sort) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * @param array $params |
28 | 28 | * @param array $sort |
29 | 29 | * @param int $limit |
30 | - * @return DataObjectSet or false |
|
30 | + * @return ArrayList or false |
|
31 | 31 | */ |
32 | 32 | public function sourceRecords(array $params, $sort, $limit) { |
33 | 33 | if($sort) { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * If a SubsiteID GET parameter is found in the URL, the page is generated into a directory, |
158 | 158 | * regardless if it's from the main site or subsite. |
159 | 159 | * |
160 | - * @param array $URLSegments |
|
160 | + * @param string[] $URLSegments |
|
161 | 161 | */ |
162 | 162 | protected function createCachedFiles(array $URLSegments) { |
163 | 163 | $results = array(); |
@@ -302,6 +302,8 @@ discard block |
||
302 | 302 | /** |
303 | 303 | * |
304 | 304 | * @param int $publishedPages - the number of pages published so far |
305 | + * @param boolean $finished |
|
306 | + * @param double $prePublishTime |
|
305 | 307 | */ |
306 | 308 | protected function logSummary( $publishedPages, $finished, $prePublishTime ) { |
307 | 309 | if(!$publishedPages) { |
@@ -345,6 +347,7 @@ discard block |
||
345 | 347 | * Check if another instance is running with the regard to a timelimit. |
346 | 348 | * |
347 | 349 | * @var int $secondsBeforeDead |
350 | + * @param integer $secondsBeforeDead |
|
348 | 351 | * @return bool |
349 | 352 | */ |
350 | 353 | protected function anotherInstanceRunning($secondsBeforeDead) { |
@@ -369,7 +372,6 @@ discard block |
||
369 | 372 | /** |
370 | 373 | * Adds information to the pid file |
371 | 374 | * |
372 | - * @param float $microtime |
|
373 | 375 | * @return void |
374 | 376 | */ |
375 | 377 | protected function updatePid() { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * |
48 | 48 | * @param SS_HTTPRequest $request |
49 | - * @return bool |
|
49 | + * @return boolean|null |
|
50 | 50 | */ |
51 | 51 | public function run($request) { |
52 | 52 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Process a chunk of pages |
92 | - * @param $start |
|
92 | + * @param integer $start |
|
93 | 93 | */ |
94 | 94 | protected function runFrom($start) { |
95 | 95 | $chunkSize = (int)self::config()->records_per_request; |