Index: trunk/phase3/maintenance/archives/upgradeLogging.php |
— | — | @@ -24,6 +24,10 @@ |
25 | 25 | require( dirname( __FILE__ ) . '/../commandLine.inc' ); |
26 | 26 | |
27 | 27 | class UpdateLogging { |
| 28 | + |
| 29 | + /** |
| 30 | + * @var DatabaseBase |
| 31 | + */ |
28 | 32 | var $dbw; |
29 | 33 | var $batchSize = 1000; |
30 | 34 | var $minTs = false; |
Index: trunk/phase3/maintenance/updateCollation.php |
— | — | @@ -88,7 +88,6 @@ |
89 | 89 | } |
90 | 90 | |
91 | 91 | $count = 0; |
92 | | - $row = false; |
93 | 92 | $batchConds = array(); |
94 | 93 | do { |
95 | 94 | $this->output( 'Processing next ' . self::BATCH_SIZE . ' rows... '); |
Index: trunk/phase3/maintenance/importUseModWikipedia.php |
— | — | @@ -377,7 +377,6 @@ |
378 | 378 | } |
379 | 379 | |
380 | 380 | function revisionCallback( $params ) { |
381 | | - $origTitle = $params['title']; |
382 | 381 | $title = $params['rctitle']; |
383 | 382 | $editTime = $params['timestamp']; |
384 | 383 | |
Index: trunk/phase3/maintenance/Maintenance.php |
— | — | @@ -92,8 +92,12 @@ |
93 | 93 | // Have we already loaded our user input? |
94 | 94 | protected $mInputLoaded = false; |
95 | 95 | |
96 | | - // Batch size. If a script supports this, they should set |
97 | | - // a default with setBatchSize() |
| 96 | + /** |
| 97 | + * Batch size. If a script supports this, they should set |
| 98 | + * a default with setBatchSize() |
| 99 | + * |
| 100 | + * @var int |
| 101 | + */ |
98 | 102 | protected $mBatchSize = null; |
99 | 103 | |
100 | 104 | // Generic options added by addDefaultParams() |
— | — | @@ -1072,7 +1076,7 @@ |
1073 | 1077 | * Perform a search index update with locking |
1074 | 1078 | * @param $maxLockTime Integer: the maximum time to keep the search index locked. |
1075 | 1079 | * @param $callback callback String: the function that will update the function. |
1076 | | - * @param $dbw Database object |
| 1080 | + * @param $dbw DatabaseBase object |
1077 | 1081 | * @param $results |
1078 | 1082 | */ |
1079 | 1083 | public function updateSearchIndex( $maxLockTime, $callback, $dbw, $results ) { |
Index: trunk/phase3/maintenance/reassignEdits.php |
— | — | @@ -126,8 +126,8 @@ |
127 | 127 | * i.e. a user => id mapping, or a user_text => text mapping |
128 | 128 | * |
129 | 129 | * @param $user User for the condition |
130 | | - * @param $idfield Field name containing the identifier |
131 | | - * @param $utfield Field name containing the user text |
| 130 | + * @param $idfield string Field name containing the identifier |
| 131 | + * @param $utfield string Field name containing the user text |
132 | 132 | * @return array |
133 | 133 | */ |
134 | 134 | private function userConditions( &$user, $idfield, $utfield ) { |
Index: trunk/phase3/maintenance/orphans.php |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Lock the appropriate tables for the script |
54 | | - * @param $db Database object |
| 54 | + * @param $db DatabaseBase object |
55 | 55 | * @param $extraTable String The name of any extra tables to lock (eg: text) |
56 | 56 | */ |
57 | 57 | private function lockTables( &$db, $extraTable = null ) { |
Index: trunk/phase3/maintenance/language/generateCollationData.php |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | // portion equal to the first character, then remove the second |
195 | 195 | // character. This avoids having characters like U+A732 (double A) |
196 | 196 | // polluting the basic latin sort area. |
197 | | - $prevWeights = array(); |
| 197 | + |
198 | 198 | foreach ( $this->groups as $weight => $group ) { |
199 | 199 | if ( preg_match( '/(\.[0-9A-F]*)\./', $weight, $m ) ) { |
200 | 200 | if ( isset( $this->groups[$m[1]] ) ) { |
Index: trunk/phase3/maintenance/language/rebuildLanguage.php |
— | — | @@ -29,11 +29,12 @@ |
30 | 30 | /** |
31 | 31 | * Rewrite a messages array. |
32 | 32 | * |
| 33 | + * @param $languages |
33 | 34 | * @param $code The language code. |
34 | | - * @param $write Write to the messages file? |
35 | | - * @param $listUnknown List the unknown messages? |
36 | | - * @param $removeUnknown Remove the unknown messages? |
37 | | - * @param $removeDupes Remove the duplicated messages? |
| 35 | + * @param bool $write Write to the messages file? |
| 36 | + * @param bool $listUnknown List the unknown messages? |
| 37 | + * @param bool $removeUnknown Remove the unknown messages? |
| 38 | + * @param bool $removeDupes Remove the duplicated messages? |
38 | 39 | * @param $dupeMsgSource The source file intended to remove from the array. |
39 | 40 | */ |
40 | 41 | function rebuildLanguage( $languages, $code, $write, $listUnknown, $removeUnknown, $removeDupes, $dupeMsgSource ) { |
— | — | @@ -50,7 +51,7 @@ |
51 | 52 | * |
52 | 53 | * @param $oldMsgArray The input message array. |
53 | 54 | * @param $dupeMsgSource The source file path for duplicates. |
54 | | - * @return $newMsgArray The output message array, with duplicates removed. |
| 55 | + * @return Array $newMsgArray The output message array, with duplicates removed. |
55 | 56 | */ |
56 | 57 | function removeDupes( $oldMsgArray, $dupeMsgSource ) { |
57 | 58 | if ( file_exists( $dupeMsgSource ) ) { |
Index: trunk/phase3/maintenance/language/checkLanguage.inc |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | |
120 | 120 | /** |
121 | 121 | * Get the checks that can easily be treated by non-speakers of the language. |
122 | | - * @return A list of the easy checks. |
| 122 | + * @return Array A list of the easy checks. |
123 | 123 | */ |
124 | 124 | protected function easyChecks() { |
125 | 125 | return array( |
Index: trunk/phase3/maintenance/language/languages.inc |
— | — | @@ -205,7 +205,7 @@ |
206 | 206 | * |
207 | 207 | * @param $code The language code. |
208 | 208 | * |
209 | | - * @return The messages in this language. |
| 209 | + * @return string The messages in this language. |
210 | 210 | */ |
211 | 211 | public function getMessages( $code ) { |
212 | 212 | $this->loadMessages( $code ); |
Index: trunk/phase3/maintenance/deleteOrphanedRevisions.php |
— | — | @@ -75,7 +75,7 @@ |
76 | 76 | * Do this inside a transaction |
77 | 77 | * |
78 | 78 | * @param $id Array of revision id values |
79 | | - * @param $dbw Database class (needs to be a master) |
| 79 | + * @param $dbw DatabaseBase class (needs to be a master) |
80 | 80 | */ |
81 | 81 | private function deleteRevs( $id, &$dbw ) { |
82 | 82 | if ( !is_array( $id ) ) |
Index: trunk/phase3/maintenance/fetchText.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | |
64 | 64 | /** |
65 | 65 | * May throw a database error if, say, the server dies during query. |
66 | | - * @param $db Database object |
| 66 | + * @param $db DatabaseBase object |
67 | 67 | * @param $id int The old_id |
68 | 68 | * @return String |
69 | 69 | */ |