@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Override to write to a different stream type. |
| 78 | 78 | * @param string $string |
| 79 | - * @return bool |
|
| 79 | + * @return boolean|null |
|
| 80 | 80 | */ |
| 81 | 81 | function write( $string ) { |
| 82 | 82 | print $string; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * and reopen new file with the old name. Use this |
| 88 | 88 | * for writing out a file in multiple pieces |
| 89 | 89 | * at specified checkpoints (e.g. every n hours). |
| 90 | - * @param string|array $newname File name. May be a string or an array with one element |
|
| 90 | + * @param string $newname File name. May be a string or an array with one element |
|
| 91 | 91 | */ |
| 92 | 92 | function closeRenameAndReopen( $newname ) { |
| 93 | 93 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Close the old file, and move it to a specified name. |
| 97 | 97 | * Use this for the last piece of a file written out |
| 98 | 98 | * at specified checkpoints (e.g. every n hours). |
| 99 | - * @param string|array $newname File name. May be a string or an array with one element |
|
| 99 | + * @param string $newname File name. May be a string or an array with one element |
|
| 100 | 100 | * @param bool $open If true, a new file with the old filename will be opened |
| 101 | 101 | * again for writing (default: false) |
| 102 | 102 | */ |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | * Not called by default (depends on $this->list_authors) |
| 211 | 211 | * Can be set by Special:Export when not exporting whole history |
| 212 | 212 | * |
| 213 | - * @param array $cond |
|
| 213 | + * @param string $cond |
|
| 214 | 214 | */ |
| 215 | 215 | protected function do_list_authors( $cond ) { |
| 216 | 216 | $this->author_list = "<contributors>"; |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | |
| 216 | 216 | /** |
| 217 | 217 | * Fields in the filearchive table |
| 218 | - * @return array |
|
| 218 | + * @return string[] |
|
| 219 | 219 | */ |
| 220 | 220 | static function selectFields() { |
| 221 | 221 | return array( |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | /** |
| 422 | 422 | * Returns the number of pages of a multipage document, or false for |
| 423 | 423 | * documents which aren't multipage documents |
| 424 | - * @return bool|int |
|
| 424 | + * @return string|boolean |
|
| 425 | 425 | */ |
| 426 | 426 | function pageCount() { |
| 427 | 427 | if ( !isset( $this->pageCount ) ) { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * Fields in the oldimage table |
| 106 | - * @return array |
|
| 106 | + * @return string[] |
|
| 107 | 107 | */ |
| 108 | 108 | static function selectFields() { |
| 109 | 109 | return array( |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | 234 | * @param string $prefix |
| 235 | - * @return array |
|
| 235 | + * @return string[] |
|
| 236 | 236 | */ |
| 237 | 237 | function getCacheFields( $prefix = 'img_' ) { |
| 238 | 238 | $fields = parent::getCacheFields( $prefix ); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | - * @return bool |
|
| 181 | + * @return boolean|string |
|
| 182 | 182 | */ |
| 183 | 183 | function getMetadata() { |
| 184 | 184 | if ( !isset( $this->metadata ) ) { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * @return bool|string |
|
| 196 | + * @return string|false |
|
| 197 | 197 | */ |
| 198 | 198 | function getURL() { |
| 199 | 199 | if ( $this->repo ) { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * Get a key on the primary cache for this repository. |
| 85 | 85 | * Returns false if the repository's cache is not accessible at this site. |
| 86 | 86 | * The parameters are the parts of the key, as for wfMemcKey(). |
| 87 | - * @return bool|string |
|
| 87 | + * @return string|false |
|
| 88 | 88 | */ |
| 89 | 89 | function getSharedCacheKey( /*...*/ ) { |
| 90 | 90 | if ( $this->hasSharedCache() ) { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * Search repositories for an image. |
| 106 | 106 | * You can also use wfFindFile() to do this. |
| 107 | 107 | * |
| 108 | - * @param Title|string $title Title object or string |
|
| 108 | + * @param string $title Title object or string |
|
| 109 | 109 | * @param array $options Associative array of options: |
| 110 | 110 | * time: requested time for an archived image, or false for the |
| 111 | 111 | * current version. An image object will be returned which was |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | /** |
| 316 | 316 | * Get the repo instance with a given key. |
| 317 | 317 | * @param string|int $index |
| 318 | - * @return bool|LocalRepo |
|
| 318 | + * @return string |
|
| 319 | 319 | */ |
| 320 | 320 | function getRepo( $index ) { |
| 321 | 321 | if ( !$this->reposInitialised ) { |
@@ -52,6 +52,9 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | const RESTART_ON_ERROR = 1; |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param integer $numProcs |
|
| 57 | + */ |
|
| 55 | 58 | public function __construct( $numProcs, $flags = 0 ) { |
| 56 | 59 | if ( PHP_SAPI != 'cli' ) { |
| 57 | 60 | throw new MWException( "ForkController cannot be used from the web." ); |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | /** |
| 251 | 251 | * Get an URL to a web viewer link to the HEAD revision. |
| 252 | 252 | * |
| 253 | - * @return string|bool String if a URL is available or false otherwise |
|
| 253 | + * @return false|string String if a URL is available or false otherwise |
|
| 254 | 254 | */ |
| 255 | 255 | public function getHeadViewUrl() { |
| 256 | 256 | $url = $this->getRemoteUrl(); |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | |
| 382 | 382 | /** |
| 383 | 383 | * @see self::getHeadViewUrl() |
| 384 | - * @return bool|string |
|
| 384 | + * @return false|string |
|
| 385 | 385 | */ |
| 386 | 386 | public static function headViewUrl() { |
| 387 | 387 | return self::repo()->getHeadViewUrl(); |