@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @param string $string |
49 | - * @return mixed|string |
|
49 | + * @return string |
|
50 | 50 | */ |
51 | 51 | function lcfirst( $string ) { |
52 | 52 | if ( strlen( $string ) && $string[0] == 'I' ) { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | * Adds a line to the log |
93 | 93 | * |
94 | 94 | * @since 1.19 |
95 | - * @param mixed $str |
|
95 | + * @param string $str |
|
96 | 96 | */ |
97 | 97 | public static function log( $str ) { |
98 | 98 | if ( !self::$enabled ) { |
@@ -377,7 +377,7 @@ |
||
377 | 377 | |
378 | 378 | /** |
379 | 379 | * @see JobQueue::pop() |
380 | - * @return Job|bool |
|
380 | + * @return Job |
|
381 | 381 | */ |
382 | 382 | abstract protected function doPop(); |
383 | 383 |
@@ -302,8 +302,8 @@ |
||
302 | 302 | * @param \WebRequest $request |
303 | 303 | * @param string $key |
304 | 304 | * @param string $prefix |
305 | - * @param mixed $default |
|
306 | - * @return mixed |
|
305 | + * @param boolean $default |
|
306 | + * @return string |
|
307 | 307 | */ |
308 | 308 | protected function getCookie( $request, $key, $prefix, $default = null ) { |
309 | 309 | $value = $request->getCookie( $key, $prefix, $default ); |
@@ -55,9 +55,9 @@ |
||
55 | 55 | /** |
56 | 56 | * Construct a new suggestion |
57 | 57 | * @param float $score the suggestion score |
58 | - * @param string $text|null the suggestion text |
|
59 | 58 | * @param Title|null $suggestedTitle the suggested title |
60 | 59 | * @param int|null $suggestedTitleID the suggested title ID |
60 | + * @param string $text |
|
61 | 61 | */ |
62 | 62 | public function __construct( $score, $text = null, Title $suggestedTitle = null, |
63 | 63 | $suggestedTitleID = null ) { |
@@ -771,7 +771,7 @@ discard block |
||
771 | 771 | |
772 | 772 | /** |
773 | 773 | * Get the base regex |
774 | - * @return array |
|
774 | + * @return string[] |
|
775 | 775 | */ |
776 | 776 | function getBaseRegex() { |
777 | 777 | if ( is_null( $this->baseRegex ) ) { |
@@ -815,7 +815,7 @@ discard block |
||
815 | 815 | /** |
816 | 816 | * Get a regex for matching variables with parameters |
817 | 817 | * |
818 | - * @return string |
|
818 | + * @return string[] |
|
819 | 819 | */ |
820 | 820 | function getVariableRegex() { |
821 | 821 | return str_replace( "\\$1", "(.*?)", $this->getRegex() ); |
@@ -868,7 +868,7 @@ discard block |
||
868 | 868 | * Returns array(magic word ID, parameter value) |
869 | 869 | * If there is no parameter value, that element will be false. |
870 | 870 | * |
871 | - * @param array $m |
|
871 | + * @param string[] $m |
|
872 | 872 | * |
873 | 873 | * @throws MWException |
874 | 874 | * @return array |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * Record a log event for a change being patrolled |
32 | 32 | * |
33 | - * @param int|RecentChange $rc Change identifier or RecentChange object |
|
33 | + * @param RecentChange $rc Change identifier or RecentChange object |
|
34 | 34 | * @param bool $auto Was this patrol event automatic? |
35 | 35 | * @param User $user User performing the action or null to use $wgUser |
36 | 36 | * @param string|string[] $tags Change tags to add to the patrol log entry |
@@ -296,7 +296,7 @@ |
||
296 | 296 | /** |
297 | 297 | * Get hooks from a directory of PHP files. |
298 | 298 | * @param string $dir Directory path to start at |
299 | - * @param int $recursive Pass self::FIND_RECURSIVE |
|
299 | + * @param int $recurse Pass self::FIND_RECURSIVE |
|
300 | 300 | * @return array Array: key => hook name; value => array of arguments or string 'unknown' |
301 | 301 | */ |
302 | 302 | private function getHooksFromDir( $dir, $recurse = 0 ) { |
@@ -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. |