@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | /** |
389 | 389 | * Show an error message in a box. Parameters are like wfMessage(), or |
390 | 390 | * alternatively, pass a Message object in. |
391 | - * @param string|Message $msg |
|
391 | + * @param string $msg |
|
392 | 392 | */ |
393 | 393 | public function showError( $msg /*...*/ ) { |
394 | 394 | if ( !( $msg instanceof Message ) ) { |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * Set a session variable. |
487 | 487 | * |
488 | 488 | * @param string $name Key for the variable |
489 | - * @param mixed $value |
|
489 | + * @param boolean $value |
|
490 | 490 | */ |
491 | 491 | public function setSession( $name, $value ) { |
492 | 492 | $this->session[$name] = $value; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * @return int|null UNIX timestamp to delay running this job until, otherwise null |
|
133 | + * @return string|null UNIX timestamp to delay running this job until, otherwise null |
|
134 | 134 | * @since 1.22 |
135 | 135 | */ |
136 | 136 | public function getReleaseTimestamp() { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return int|null UNIX timestamp of when the job was queued, or null |
|
143 | + * @return string|null UNIX timestamp of when the job was queued, or null |
|
144 | 144 | * @since 1.26 |
145 | 145 | */ |
146 | 146 | public function getQueuedTimestamp() { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | - * @return int|null UNIX timestamp of when the job was runnable, or null |
|
153 | + * @return string|null UNIX timestamp of when the job was runnable, or null |
|
154 | 154 | * @since 1.26 |
155 | 155 | */ |
156 | 156 | public function getReadyTimestamp() { |
@@ -179,7 +179,7 @@ |
||
179 | 179 | * This pops a job off a queue as specified by $wgJobTypeConf and |
180 | 180 | * updates the aggregate job queue information cache as needed. |
181 | 181 | * |
182 | - * @param int|string $qtype JobQueueGroup::TYPE_* constant or job type string |
|
182 | + * @param integer $qtype JobQueueGroup::TYPE_* constant or job type string |
|
183 | 183 | * @param int $flags Bitfield of JobQueueGroup::USE_* constants |
184 | 184 | * @param array $blacklist List of job types to ignore |
185 | 185 | * @return Job|bool Returns false on failure |
@@ -77,6 +77,10 @@ |
||
77 | 77 | } |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param File $file |
|
82 | + * @param string $thumbUrl |
|
83 | + */ |
|
80 | 84 | protected function hitThumbUrl( $file, $transformParams, &$thumbUrl ) { |
81 | 85 | global $wgUploadThumbnailRenderHttpCustomHost, $wgUploadThumbnailRenderHttpCustomDomain; |
82 | 86 |
@@ -151,7 +151,6 @@ |
||
151 | 151 | * @since 1.23 |
152 | 152 | * |
153 | 153 | * @param array $array1 The array to compare from |
154 | - * @param array $array2,... More arrays to compare against |
|
155 | 154 | * @return array An array containing all the values from array1 |
156 | 155 | * that are not present in any of the other arrays. |
157 | 156 | */ |
@@ -33,6 +33,10 @@ |
||
33 | 33 | // TO IMPLEMENT? protected $version |
34 | 34 | // TO IMPLEMENT? protected $comment |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $name |
|
38 | + * @param string $value |
|
39 | + */ |
|
36 | 40 | function __construct( $name, $value, $attr ) { |
37 | 41 | $this->name = $name; |
38 | 42 | $this->set( $value, $attr ); |
@@ -35,7 +35,6 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param callable $callback Callback that gets called by __toString |
38 | - * @param mixed $param,... Parameters to the callback |
|
39 | 38 | */ |
40 | 39 | public function __construct( $callback /*...*/ ) { |
41 | 40 | $this->params = func_get_args(); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * |
73 | 73 | * @since 1.20 |
74 | 74 | * |
75 | - * @param null|array $input |
|
75 | + * @param Site[] $input |
|
76 | 76 | * @param int $flags |
77 | 77 | * @param string $iterator_class |
78 | 78 | */ |
@@ -384,9 +384,9 @@ discard block |
||
384 | 384 | /** |
385 | 385 | * Get the MIME type for a given named version |
386 | 386 | * @param $version |
387 | - * @param $fileName |
|
388 | - * @param $chunk |
|
389 | - * @param $proposed |
|
387 | + * @param string $fileName |
|
388 | + * @param string $chunk |
|
389 | + * @param string $proposed |
|
390 | 390 | * @return bool|string |
391 | 391 | */ |
392 | 392 | protected function getMimeTypeForVersion( $version, $fileName, $chunk, $proposed ) { |
@@ -554,8 +554,8 @@ discard block |
||
554 | 554 | * Check for text headers at the start of the chunk |
555 | 555 | * Confirmed same in 5 and 7. |
556 | 556 | * @param $version |
557 | - * @param $chunk |
|
558 | - * @return bool|string |
|
557 | + * @param string $chunk |
|
558 | + * @return string|false |
|
559 | 559 | */ |
560 | 560 | private function checkTextHeaders( $version, $chunk ) { |
561 | 561 | $chunk2 = substr( $chunk, 0, 2 ); |
@@ -580,8 +580,8 @@ discard block |
||
580 | 580 | * Check for binary headers at the start of the chunk |
581 | 581 | * Confirmed same in 5 and 7. |
582 | 582 | * @param $version |
583 | - * @param $chunk |
|
584 | - * @return bool|string |
|
583 | + * @param string $chunk |
|
584 | + * @return string|false |
|
585 | 585 | */ |
586 | 586 | private function checkBinaryHeaders( $version, $chunk ) { |
587 | 587 | $chunk2 = substr( $chunk, 0, 2 ); |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | * Do heuristic checks on the bulk of the data sample. |
682 | 682 | * Search for HTML tags. |
683 | 683 | * @param $version |
684 | - * @param $chunk |
|
684 | + * @param string $chunk |
|
685 | 685 | * @return array |
686 | 686 | */ |
687 | 687 | protected function sampleData( $version, $chunk ) { |