@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | /** |
| 59 | 59 | * @param WikiPage $article |
| 60 | 60 | * @param string $hash |
| 61 | - * @return mixed|string |
|
| 61 | + * @return string |
|
| 62 | 62 | */ |
| 63 | 63 | protected function getParserOutputKey( $article, $hash ) { |
| 64 | 64 | global $wgRequest; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * @param WikiPage $article |
| 76 | - * @return mixed|string |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getOptionsKey( $article ) { |
| 79 | 79 | $pageid = $article->getId(); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * @param WikiPage $article |
| 129 | 129 | * @param ParserOptions $popts |
| 130 | 130 | * @param bool $useOutdated (default true) |
| 131 | - * @return bool|mixed|string |
|
| 131 | + * @return false|string |
|
| 132 | 132 | */ |
| 133 | 133 | public function getKey( $article, $popts, $useOutdated = true ) { |
| 134 | 134 | global $wgCacheEpoch; |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * Retrieve the ParserOutput from ParserCache. |
| 181 | 181 | * false if not found or outdated. |
| 182 | 182 | * |
| 183 | - * @param WikiPage|Article $article |
|
| 183 | + * @param WikiPage $article |
|
| 184 | 184 | * @param ParserOptions $popts |
| 185 | 185 | * @param bool $useOutdated (default false) |
| 186 | 186 | * |
@@ -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 [ |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * @param array $opts |
| 80 | 80 | * @param array $args |
| 81 | 81 | * |
| 82 | - * @return bool |
|
| 82 | + * @return null|boolean |
|
| 83 | 83 | */ |
| 84 | 84 | private function initializeOpts( $opts, $args ) { |
| 85 | 85 | |
@@ -172,6 +172,11 @@ discard block |
||
| 172 | 172 | ) ); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | + /** |
|
| 176 | + * @param boolean $showManageActions |
|
| 177 | + * @param boolean $showDeleteActions |
|
| 178 | + * @param boolean $showEditLinks |
|
| 179 | + */ |
|
| 175 | 180 | function doTagRow( $tag, $hitcount, $showManageActions, $showDeleteActions, $showEditLinks ) { |
| 176 | 181 | $newRow = ''; |
| 177 | 182 | $newRow .= Xml::tags( 'td', null, Xml::element( 'code', null, $tag ) ); |
@@ -320,6 +325,9 @@ discard block |
||
| 320 | 325 | } |
| 321 | 326 | } |
| 322 | 327 | |
| 328 | + /** |
|
| 329 | + * @param null|string $tag |
|
| 330 | + */ |
|
| 323 | 331 | protected function showDeleteTagForm( $tag ) { |
| 324 | 332 | $user = $this->getUser(); |
| 325 | 333 | if ( !$user->isAllowed( 'deletechangetags' ) ) { |
@@ -378,6 +386,10 @@ discard block |
||
| 378 | 386 | $form->show(); |
| 379 | 387 | } |
| 380 | 388 | |
| 389 | + /** |
|
| 390 | + * @param null|string $tag |
|
| 391 | + * @param boolean $activate |
|
| 392 | + */ |
|
| 381 | 393 | protected function showActivateDeactivateForm( $tag, $activate ) { |
| 382 | 394 | $actionStr = $activate ? 'activate' : 'deactivate'; |
| 383 | 395 | |