@@ -2183,7 +2183,7 @@ discard block |
||
| 2183 | 2183 | * |
| 2184 | 2184 | * @param string $text |
| 2185 | 2185 | * |
| 2186 | - * @return string|bool Matching string or false |
|
| 2186 | + * @return string|false Matching string or false |
|
| 2187 | 2187 | */ |
| 2188 | 2188 | public static function matchSpamRegex( $text ) { |
| 2189 | 2189 | global $wgSpamRegex; |
@@ -2197,7 +2197,7 @@ discard block |
||
| 2197 | 2197 | * |
| 2198 | 2198 | * @param string $text |
| 2199 | 2199 | * |
| 2200 | - * @return string|bool Matching string or false |
|
| 2200 | + * @return string|false Matching string or false |
|
| 2201 | 2201 | */ |
| 2202 | 2202 | public static function matchSummarySpamRegex( $text ) { |
| 2203 | 2203 | global $wgSummarySpamRegex; |
@@ -2208,7 +2208,7 @@ discard block |
||
| 2208 | 2208 | /** |
| 2209 | 2209 | * @param string $text |
| 2210 | 2210 | * @param array $regexes |
| 2211 | - * @return bool|string |
|
| 2211 | + * @return string|false |
|
| 2212 | 2212 | */ |
| 2213 | 2213 | protected static function matchSpamRegexInternal( $text, $regexes ) { |
| 2214 | 2214 | foreach ( $regexes as $regex ) { |
@@ -2448,7 +2448,7 @@ discard block |
||
| 2448 | 2448 | * $this->allowNonTextContent to true to allow editing of non-textual |
| 2449 | 2449 | * content. |
| 2450 | 2450 | * |
| 2451 | - * @param string|null|bool $text Text to unserialize |
|
| 2451 | + * @param false|string $text Text to unserialize |
|
| 2452 | 2452 | * @return Content The content object created from $text. If $text was false |
| 2453 | 2453 | * or null, false resp. null will be returned instead. |
| 2454 | 2454 | * |
@@ -3139,6 +3139,10 @@ discard block |
||
| 3139 | 3139 | $this->showTextbox( $this->textbox2, 'wpTextbox2', [ 'tabindex' => 6, 'readonly' ] ); |
| 3140 | 3140 | } |
| 3141 | 3141 | |
| 3142 | + /** |
|
| 3143 | + * @param string $text |
|
| 3144 | + * @param string $name |
|
| 3145 | + */ |
|
| 3142 | 3146 | protected function showTextbox( $text, $name, $customAttribs = [] ) { |
| 3143 | 3147 | global $wgOut, $wgUser; |
| 3144 | 3148 | |
@@ -3168,6 +3172,9 @@ discard block |
||
| 3168 | 3172 | $wgOut->addHTML( Html::textarea( $name, $wikitext, $attribs ) ); |
| 3169 | 3173 | } |
| 3170 | 3174 | |
| 3175 | + /** |
|
| 3176 | + * @param string $previewOutput |
|
| 3177 | + */ |
|
| 3171 | 3178 | protected function displayPreviewArea( $previewOutput, $isOnTop = false ) { |
| 3172 | 3179 | global $wgOut; |
| 3173 | 3180 | $classes = []; |
@@ -3754,7 +3761,7 @@ discard block |
||
| 3754 | 3761 | } |
| 3755 | 3762 | |
| 3756 | 3763 | /** |
| 3757 | - * @return array |
|
| 3764 | + * @return Title[] |
|
| 3758 | 3765 | */ |
| 3759 | 3766 | function getTemplates() { |
| 3760 | 3767 | if ( $this->preview || $this->section != '' ) { |
@@ -3917,7 +3924,7 @@ discard block |
||
| 3917 | 3924 | * @param array $checked Array of checkbox => bool, where bool indicates the checked |
| 3918 | 3925 | * status of the checkbox |
| 3919 | 3926 | * |
| 3920 | - * @return array |
|
| 3927 | + * @return string |
|
| 3921 | 3928 | */ |
| 3922 | 3929 | public function getCheckboxes( &$tabindex, $checked ) { |
| 3923 | 3930 | global $wgUser, $wgUseMediaWikiUIEverywhere; |
@@ -3981,7 +3988,7 @@ discard block |
||
| 3981 | 3988 | * |
| 3982 | 3989 | * @param int $tabindex Current tabindex |
| 3983 | 3990 | * |
| 3984 | - * @return array |
|
| 3991 | + * @return string |
|
| 3985 | 3992 | */ |
| 3986 | 3993 | public function getEditButtons( &$tabindex ) { |
| 3987 | 3994 | $buttons = []; |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * @param bool $ie8Compat By default, a data URI will only be produced if it can be made short |
| 101 | 101 | * enough to fit in Internet Explorer 8 (and earlier) URI length limit (32,768 bytes). Pass |
| 102 | 102 | * `false` to remove this limitation. |
| 103 | - * @return string|bool Image contents encoded as a data URI or false. |
|
| 103 | + * @return false|string Image contents encoded as a data URI or false. |
|
| 104 | 104 | */ |
| 105 | 105 | public static function encodeImageAsDataURI( $file, $type = null, $ie8Compat = true ) { |
| 106 | 106 | // Fast-fail for files that definitely exceed the maximum data URI length |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * @param string $contents File contents to encode. |
| 129 | 129 | * @param string $type File's MIME type. |
| 130 | 130 | * @param bool $ie8Compat See encodeImageAsDataURI(). |
| 131 | - * @return string|bool Image contents encoded as a data URI or false. |
|
| 131 | + * @return string|false Image contents encoded as a data URI or false. |
|
| 132 | 132 | */ |
| 133 | 133 | public static function encodeStringAsDataURI( $contents, $type, $ie8Compat = true ) { |
| 134 | 134 | // Try #1: Non-encoded data URI |
@@ -563,7 +563,7 @@ |
||
| 563 | 563 | * @param array $params Rotate parameters. |
| 564 | 564 | * 'rotation' clockwise rotation in degrees, allowed are multiples of 90 |
| 565 | 565 | * @since 1.24 Is non-static. From 1.21 it was static |
| 566 | - * @return bool |
|
| 566 | + * @return MediaTransformError |
|
| 567 | 567 | */ |
| 568 | 568 | public function rotate( $file, $params ) { |
| 569 | 569 | return new MediaTransformError( 'thumbnail_error', 0, 0, |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * |
| 101 | 101 | * It's important that img_media_type come first, otherwise the |
| 102 | 102 | * tables will be fragmented. |
| 103 | - * @return Array Fields to sort by |
|
| 103 | + * @return string[] Fields to sort by |
|
| 104 | 104 | */ |
| 105 | 105 | function getOrderFields() { |
| 106 | 106 | return [ 'img_media_type', 'count(*)', 'img_major_mime', 'img_minor_mime' ]; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * |
| 171 | 171 | * @param string $mime mime type (e.g. image/jpeg) |
| 172 | 172 | * @param int $count Number of images of this type |
| 173 | - * @param int $totalBytes Total space for images of this type |
|
| 173 | + * @param integer $bytes |
|
| 174 | 174 | */ |
| 175 | 175 | protected function outputTableRow( $mime, $count, $bytes ) { |
| 176 | 176 | $mimeSearch = SpecialPage::getTitleFor( 'MIMEsearch', $mime ); |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | * If the user has already been blocked with similar settings, load that block |
| 235 | 235 | * and change the defaults for the form fields to match the existing settings. |
| 236 | 236 | * @param array $fields HTMLForm descriptor array |
| 237 | - * @return bool Whether fields were altered (that is, whether the target is |
|
| 237 | + * @return boolean|null Whether fields were altered (that is, whether the target is |
|
| 238 | 238 | * already blocked) |
| 239 | 239 | */ |
| 240 | 240 | protected function maybeAlterFormDefaults( &$fields ) { |
@@ -20,13 +20,6 @@ |
||
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @param array $config Configuration options |
| 23 | - * @param int|null $config['pushPending'] Whether the input should be visually marked as |
|
| 24 | - * "pending", while requesting suggestions (default: true) |
|
| 25 | - * @param boolean|null $config['performSearchOnClick'] If true, the script will start a search |
|
| 26 | - * whenever a user hits a suggestion. If false, the text of the suggestion is inserted into the |
|
| 27 | - * text field only (default: true) |
|
| 28 | - * @param string $config['dataLocation'] Where the search input field will be |
|
| 29 | - * used (header or content, default: header) |
|
| 30 | 23 | */ |
| 31 | 24 | public function __construct( array $config = [] ) { |
| 32 | 25 | $config = array_merge( [ |
@@ -53,6 +53,8 @@ |
||
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Private constructor |
| 56 | + * @param string $text |
|
| 57 | + * @param boolean $lineStart |
|
| 56 | 58 | */ |
| 57 | 59 | private function __construct( $text, $lineStart ) { |
| 58 | 60 | $this->text = $text; |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | * Force the dump to use the provided database connection for database |
| 335 | 335 | * operations, wherever possible. |
| 336 | 336 | * |
| 337 | - * @param DatabaseBase|null $db (Optional) the database connection to use. If null, resort to |
|
| 337 | + * @param null|IDatabase $db (Optional) the database connection to use. If null, resort to |
|
| 338 | 338 | * use the globally provided ways to get database connections. |
| 339 | 339 | */ |
| 340 | 340 | function setDB( IDatabase $db = null ) { |
@@ -422,6 +422,10 @@ discard block |
||
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | class ExportProgressFilter extends DumpFilter { |
| 425 | + |
|
| 426 | + /** |
|
| 427 | + * @param BackupDumper $progress |
|
| 428 | + */ |
|
| 425 | 429 | function __construct( &$sink, &$progress ) { |
| 426 | 430 | parent::__construct( $sink ); |
| 427 | 431 | $this->progress = $progress; |
@@ -47,6 +47,9 @@ |
||
| 47 | 47 | protected $lastRev = 0; |
| 48 | 48 | protected $infiles = null; |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $infile |
|
| 52 | + */ |
|
| 50 | 53 | public function __construct( $infile ) { |
| 51 | 54 | $this->infiles = explode( ';', $infile ); |
| 52 | 55 | $this->reader = new XMLReader(); |