@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | |
229 | 229 | /** |
230 | 230 | * @param ResultWrapper|resource $res |
231 | - * @return stdClass|bool |
|
231 | + * @return stdClass |
|
232 | 232 | * @throws DBUnexpectedError |
233 | 233 | */ |
234 | 234 | function fetchObject( $res ) { |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | /** |
364 | 364 | * Get the name of the specified field in a result |
365 | 365 | * |
366 | - * @param ResultWrapper|resource $res |
|
366 | + * @param resource $res |
|
367 | 367 | * @param int $n |
368 | 368 | * @return string |
369 | 369 | */ |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | /** |
387 | 387 | * Get the type of the specified field in a result |
388 | 388 | * |
389 | - * @param ResultWrapper|resource $res |
|
389 | + * @param resource $res |
|
390 | 390 | * @param int $n |
391 | 391 | * @return string |
392 | 392 | */ |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | /** |
409 | 409 | * Move internal result pointer |
410 | 410 | * |
411 | - * @param ResultWrapper|resource $res |
|
411 | + * @param resource $res |
|
412 | 412 | * @param int $row |
413 | 413 | * @return bool |
414 | 414 | */ |
@@ -802,7 +802,7 @@ discard block |
||
802 | 802 | /** |
803 | 803 | * Get the position of the master from SHOW SLAVE STATUS |
804 | 804 | * |
805 | - * @return MySQLMasterPos|bool |
|
805 | + * @return DBMasterPos |
|
806 | 806 | */ |
807 | 807 | function getSlavePos() { |
808 | 808 | $res = $this->query( 'SHOW SLAVE STATUS', 'DatabaseBase::getSlavePos' ); |
@@ -966,6 +966,9 @@ discard block |
||
966 | 966 | return false; |
967 | 967 | } |
968 | 968 | |
969 | + /** |
|
970 | + * @param string $lockName |
|
971 | + */ |
|
969 | 972 | private function makeLockName( $lockName ) { |
970 | 973 | // http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_get-lock |
971 | 974 | // Newer version enforce a 64 char length limit. |
@@ -1321,6 +1324,9 @@ discard block |
||
1321 | 1324 | $is_pk, $is_unique, $is_multiple, $is_key, $type, $binary, |
1322 | 1325 | $is_numeric, $is_blob, $is_unsigned, $is_zerofill; |
1323 | 1326 | |
1327 | + /** |
|
1328 | + * @param stdClass $info |
|
1329 | + */ |
|
1324 | 1330 | function __construct( $info ) { |
1325 | 1331 | $this->name = $info->name; |
1326 | 1332 | $this->tablename = $info->table; |
@@ -1467,7 +1473,7 @@ discard block |
||
1467 | 1473 | } |
1468 | 1474 | |
1469 | 1475 | /** |
1470 | - * @return string|bool |
|
1476 | + * @return string|false |
|
1471 | 1477 | */ |
1472 | 1478 | protected function getBinlogName() { |
1473 | 1479 | $m = []; |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * @param string $uuid 32 char hex string |
315 | 315 | * @param int $rand Random unsigned integer (31 bits) |
316 | 316 | * @param bool $gte Search for job_random >= $random (otherwise job_random <= $random) |
317 | - * @return stdClass|bool Row|false |
|
317 | + * @return boolean Row|false |
|
318 | 318 | */ |
319 | 319 | protected function claimRandom( $uuid, $rand, $gte ) { |
320 | 320 | $dbw = $this->getMasterDB(); |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * Reserve a row with a single UPDATE without holding row locks over RTTs... |
392 | 392 | * |
393 | 393 | * @param string $uuid 32 char hex string |
394 | - * @return stdClass|bool Row|false |
|
394 | + * @return boolean Row|false |
|
395 | 395 | */ |
396 | 396 | protected function claimOldest( $uuid ) { |
397 | 397 | $dbw = $this->getMasterDB(); |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | |
546 | 546 | /** |
547 | 547 | * @see JobQueue::getAllQueuedJobs() |
548 | - * @return Iterator |
|
548 | + * @return MappedIterator|null |
|
549 | 549 | */ |
550 | 550 | public function getAllQueuedJobs() { |
551 | 551 | return $this->getJobIterator( [ 'job_cmd' => $this->getType(), 'job_token' => '' ] ); |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | |
554 | 554 | /** |
555 | 555 | * @see JobQueue::getAllAcquiredJobs() |
556 | - * @return Iterator |
|
556 | + * @return MappedIterator|null |
|
557 | 557 | */ |
558 | 558 | public function getAllAcquiredJobs() { |
559 | 559 | return $this->getJobIterator( [ 'job_cmd' => $this->getType(), "job_token > ''" ] ); |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | |
562 | 562 | /** |
563 | 563 | * @param array $conds Query conditions |
564 | - * @return Iterator |
|
564 | + * @return MappedIterator|null |
|
565 | 565 | */ |
566 | 566 | protected function getJobIterator( array $conds ) { |
567 | 567 | $dbr = $this->getSlaveDB(); |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | /** |
814 | 814 | * Return the list of job fields that should be selected. |
815 | 815 | * @since 1.23 |
816 | - * @return array |
|
816 | + * @return string[] |
|
817 | 817 | */ |
818 | 818 | public static function selectFields() { |
819 | 819 | return [ |
@@ -252,6 +252,7 @@ |
||
252 | 252 | * Wrap the body text with language information and identifiable element |
253 | 253 | * |
254 | 254 | * @param Title $title |
255 | + * @param string $html |
|
255 | 256 | * @return string html |
256 | 257 | */ |
257 | 258 | protected function wrapHTML( $title, $html ) { |
@@ -410,6 +410,11 @@ |
||
410 | 410 | return true; |
411 | 411 | } |
412 | 412 | |
413 | + /** |
|
414 | + * @param WatchedItem|null $item |
|
415 | + * @param string $force |
|
416 | + * @param integer $oldid |
|
417 | + */ |
|
413 | 418 | private function getNotificationTimestamp( User $user, Title $title, $item, $force, $oldid ) { |
414 | 419 | if ( !$oldid ) { |
415 | 420 | // No oldid given, assuming latest revision; clear the timestamp. |