@@ -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(); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * Get the default checks. |
| 97 | - * @return array A list of the default checks. |
|
| 97 | + * @return string[] A list of the default checks. |
|
| 98 | 98 | */ |
| 99 | 99 | protected function defaultChecks() { |
| 100 | 100 | return [ |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * Get the checks which check other things than messages. |
| 110 | - * @return array A list of the non-message checks. |
|
| 110 | + * @return string[] A list of the non-message checks. |
|
| 111 | 111 | */ |
| 112 | 112 | protected function nonMessageChecks() { |
| 113 | 113 | return [ |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * Get the checks that can easily be treated by non-speakers of the language. |
| 121 | - * @return array A list of the easy checks. |
|
| 121 | + * @return string[] A list of the easy checks. |
|
| 122 | 122 | */ |
| 123 | 123 | protected function easyChecks() { |
| 124 | 124 | return [ |
@@ -643,7 +643,7 @@ discard block |
||
| 643 | 643 | |
| 644 | 644 | /** |
| 645 | 645 | * Get the default checks. |
| 646 | - * @return array A list of the default checks. |
|
| 646 | + * @return string[] A list of the default checks. |
|
| 647 | 647 | */ |
| 648 | 648 | protected function defaultChecks() { |
| 649 | 649 | return [ |
@@ -662,7 +662,7 @@ discard block |
||
| 662 | 662 | |
| 663 | 663 | /** |
| 664 | 664 | * Get the checks that can easily be treated by non-speakers of the language. |
| 665 | - * @return array A list of the easy checks. |
|
| 665 | + * @return string[] A list of the easy checks. |
|
| 666 | 666 | */ |
| 667 | 667 | protected function easyChecks() { |
| 668 | 668 | return [ |