@@ -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 |
@@ -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; |
@@ -68,6 +68,9 @@ |
||
68 | 68 | $this->output( "\nDone\n" ); |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param integer $percent |
|
73 | + */ |
|
71 | 74 | function showProgress( $percent ) { |
72 | 75 | $percentString = sprintf( "%.2f", $percent ); |
73 | 76 | if ( $percentString === $this->lastProgress ) { |
@@ -95,6 +95,9 @@ discard block |
||
95 | 95 | $this->table = $table; |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param integer $updated |
|
100 | + */ |
|
98 | 101 | function progress( $updated ) { |
99 | 102 | $this->updated += $updated; |
100 | 103 | $this->processed++; |
@@ -122,6 +125,10 @@ discard block |
||
122 | 125 | flush(); |
123 | 126 | } |
124 | 127 | |
128 | + /** |
|
129 | + * @param string $table |
|
130 | + * @param string $key |
|
131 | + */ |
|
125 | 132 | function buildTable( $table, $key, $callback ) { |
126 | 133 | $count = $this->dbw->selectField( $table, 'count(*)', '', __METHOD__ ); |
127 | 134 | $this->init( $count, $table ); |
@@ -186,6 +193,9 @@ discard block |
||
186 | 193 | } |
187 | 194 | } |
188 | 195 | |
196 | + /** |
|
197 | + * @param string $filename |
|
198 | + */ |
|
189 | 199 | function addMissingImage( $filename, $fullpath ) { |
190 | 200 | global $wgContLang; |
191 | 201 |
@@ -357,7 +357,7 @@ |
||
357 | 357 | * @param IDatabase $db Database connection |
358 | 358 | * @param string $var Field name |
359 | 359 | * @param mixed $start First value to include or null |
360 | - * @param mixed $end Last value to include or null |
|
360 | + * @param integer|null $end Last value to include or null |
|
361 | 361 | */ |
362 | 362 | private static function intervalCond( IDatabase $db, $var, $start, $end ) { |
363 | 363 | if ( $start === null && $end === null ) { |