@@ -230,6 +230,9 @@ discard block |
||
| 230 | 230 | $this->timeOfCheckpoint = $this->startTime; |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | + /** |
|
| 234 | + * @param boolean $history |
|
| 235 | + */ |
|
| 233 | 236 | function dump( $history, $text = WikiExporter::TEXT ) { |
| 234 | 237 | // Notice messages will foul up your XML output even if they're |
| 235 | 238 | // relatively harmless. |
@@ -521,7 +524,7 @@ discard block |
||
| 521 | 524 | * is thrown. |
| 522 | 525 | * |
| 523 | 526 | * @param string $id The revision id to get the text for |
| 524 | - * @param string|bool|null $model The content model used to determine |
|
| 527 | + * @param string $model The content model used to determine |
|
| 525 | 528 | * applicable export transformations. |
| 526 | 529 | * If $model is null, it will be determined from the database. |
| 527 | 530 | * @param string|null $format The content format used when applying export transformations. |
@@ -716,6 +719,11 @@ discard block |
||
| 716 | 719 | return $normalized; |
| 717 | 720 | } |
| 718 | 721 | |
| 722 | + /** |
|
| 723 | + * @param string $id |
|
| 724 | + * |
|
| 725 | + * @return string|null |
|
| 726 | + */ |
|
| 719 | 727 | private function getTextSpawned( $id ) { |
| 720 | 728 | MediaWiki\suppressWarnings(); |
| 721 | 729 | if ( !$this->spawnProc ) { |
@@ -948,6 +956,9 @@ discard block |
||
| 948 | 956 | } |
| 949 | 957 | } |
| 950 | 958 | |
| 959 | + /** |
|
| 960 | + * @param string $data |
|
| 961 | + */ |
|
| 951 | 962 | function characterData( $parser, $data ) { |
| 952 | 963 | $this->clearOpenElement( null ); |
| 953 | 964 | if ( $this->lastName == "id" ) { |
@@ -973,6 +984,9 @@ discard block |
||
| 973 | 984 | $this->buffer .= htmlspecialchars( $data ); |
| 974 | 985 | } |
| 975 | 986 | |
| 987 | + /** |
|
| 988 | + * @param null|string $style |
|
| 989 | + */ |
|
| 976 | 990 | function clearOpenElement( $style ) { |
| 977 | 991 | if ( $this->openElement ) { |
| 978 | 992 | $this->buffer .= Xml::element( $this->openElement[0], $this->openElement[1], $style ); |
@@ -108,6 +108,9 @@ |
||
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @param boolean $shared |
|
| 113 | + */ |
|
| 111 | 114 | function outputItem( $name, $shared ) { |
| 112 | 115 | $file = wfFindFile( $name ); |
| 113 | 116 | if ( $file && $this->filterItem( $file, $shared ) ) { |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | return $retVal; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $filename |
|
| 42 | + */ |
|
| 40 | 43 | public function setCurrentFile( $filename ) { |
| 41 | 44 | $this->currentFile = $filename; |
| 42 | 45 | } |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | $this->checkFiles( $repo, $pathBatch, $verbose ); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param boolean $verbose |
|
| 75 | + */ |
|
| 73 | 76 | protected function checkFiles( LocalRepo $repo, array $paths, $verbose ) { |
| 74 | 77 | if ( !count( $paths ) ) { |
| 75 | 78 | return; |
@@ -275,6 +275,9 @@ |
||
| 275 | 275 | return $this->importFromHandle( $file ); |
| 276 | 276 | } |
| 277 | 277 | |
| 278 | + /** |
|
| 279 | + * @param resource $handle |
|
| 280 | + */ |
|
| 278 | 281 | function importFromHandle( $handle ) { |
| 279 | 282 | $this->startTime = microtime( true ); |
| 280 | 283 | |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | /** |
| 291 | 291 | * Get an argument. |
| 292 | 292 | * @param int $argId The integer value (from zero) for the arg |
| 293 | - * @param mixed $default The default if it doesn't exist |
|
| 293 | + * @param string $default The default if it doesn't exist |
|
| 294 | 294 | * @return mixed |
| 295 | 295 | */ |
| 296 | 296 | protected function getArg( $argId = 0, $default = null ) { |
@@ -1244,6 +1244,7 @@ discard block |
||
| 1244 | 1244 | * Unlock and lock again |
| 1245 | 1245 | * Since the lock is low-priority, queued reads will be able to complete |
| 1246 | 1246 | * @param DatabaseBase &$db |
| 1247 | + * @param DatabaseBase $db |
|
| 1247 | 1248 | */ |
| 1248 | 1249 | private function relockSearchindex( $db ) { |
| 1249 | 1250 | $this->unlockSearchindex( $db ); |
@@ -568,7 +568,6 @@ |
||
| 568 | 568 | /** |
| 569 | 569 | * Merge page histories |
| 570 | 570 | * |
| 571 | - * @param integer $id The page_id |
|
| 572 | 571 | * @param Title $newTitle The new title |
| 573 | 572 | * @return bool |
| 574 | 573 | */ |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * @param string $table |
| 70 | 70 | * @param string $idCol |
| 71 | 71 | * @param string $prefix |
| 72 | - * @param array $fields |
|
| 72 | + * @param string[] $fields |
|
| 73 | 73 | * @return int |
| 74 | 74 | */ |
| 75 | 75 | protected function doLenUpdates( $table, $idCol, $prefix, $fields ) { |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | class PPFuzzTest { |
| 146 | 146 | public $templates, $mainText, $title, $entryPoint, $output; |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param PPFuzzTester $tester |
|
| 150 | + */ |
|
| 148 | 151 | function __construct( $tester ) { |
| 149 | 152 | global $wgMaxSigChars; |
| 150 | 153 | $this->parent = $tester; |