Index: trunk/phase3/maintenance/populateCategory.php |
— | — | @@ -81,7 +81,6 @@ |
82 | 82 | } |
83 | 83 | } |
84 | 84 | |
85 | | - $maxlag = intval( $maxlag ); |
86 | 85 | $throttle = intval( $throttle ); |
87 | 86 | if ( $begin !== '' ) { |
88 | 87 | $where = 'cl_to > ' . $dbw->addQuotes( $begin ); |
Index: trunk/phase3/maintenance/importUseModWikipedia.php |
— | — | @@ -480,7 +480,6 @@ |
481 | 481 | |
482 | 482 | function resolveFailedDiff( $origText, $diff ) { |
483 | 483 | $context = array(); |
484 | | - $rxRange = '\d+(?:,(\d+))?'; |
485 | 484 | $diffLines = explode( "\n", $diff ); |
486 | 485 | for ( $i = 0; $i < count( $diffLines ); $i++ ) { |
487 | 486 | $diffLine = $diffLines[$i]; |
— | — | @@ -525,10 +524,10 @@ |
526 | 525 | $removedLinks = array_diff( $sourceLinks, $destLinks ); |
527 | 526 | |
528 | 527 | // Match up the removed links with the new links |
529 | | - foreach ( $newLinks as $j => $newLink ) { |
| 528 | + foreach ( $newLinks as $newLink ) { |
530 | 529 | $minDistance = 100000000; |
531 | 530 | $bestRemovedLink = false; |
532 | | - foreach ( $removedLinks as $k => $removedLink ) { |
| 531 | + foreach ( $removedLinks as $removedLink ) { |
533 | 532 | $editDistance = levenshtein( $newLink, $removedLink ); |
534 | 533 | if ( $editDistance < $minDistance ) { |
535 | 534 | $minDistance = $editDistance; |
Index: trunk/phase3/tests/phpunit/includes/FormOptionsInitializationTest.php |
— | — | @@ -14,7 +14,9 @@ |
15 | 15 | * array is correctly set through the FormOptions::add() function. |
16 | 16 | */ |
17 | 17 | class FormOptionsExposed extends FormOptions { |
18 | | - public $options; |
| 18 | + public function getOptions() { |
| 19 | + return $this->options; |
| 20 | + } |
19 | 21 | } |
20 | 22 | |
21 | 23 | /** |
— | — | @@ -54,7 +56,7 @@ |
55 | 57 | 'value' => null, |
56 | 58 | ) |
57 | 59 | ), |
58 | | - $this->object->options |
| 60 | + $this->object->getOptions() |
59 | 61 | ); |
60 | 62 | } |
61 | 63 | |
— | — | @@ -76,7 +78,7 @@ |
77 | 79 | 'type' => FormOptions::INT, |
78 | 80 | ) |
79 | 81 | ), |
80 | | - $this->object->options |
| 82 | + $this->object->getOptions |
81 | 83 | ); |
82 | 84 | } |
83 | 85 | |
Index: trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php |
— | — | @@ -331,7 +331,6 @@ |
332 | 332 | $this->setUser( $this->userName ); |
333 | 333 | global $wgUser, $wgContLang; |
334 | 334 | $wgUser = $this->user; |
335 | | - $prefix = $wgContLang->getFormattedNsText( NS_PROJECT ); |
336 | 335 | |
337 | 336 | $this->setTitle( NS_SPECIAL ); |
338 | 337 | |
Index: trunk/phase3/tests/phpunit/phpunit.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | |
21 | 21 | class PHPUnitMaintClass extends Maintenance { |
22 | 22 | public function finalSetup() { |
23 | | - $settings = parent::finalSetup(); |
| 23 | + parent::finalSetup(); |
24 | 24 | |
25 | 25 | global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType, $wgUseDatabaseMessages; |
26 | 26 | |
Index: trunk/phase3/includes/parser/LinkHolderArray.php |
— | — | @@ -35,15 +35,15 @@ |
36 | 36 | * Compact the titles, only serialize the text form. |
37 | 37 | */ |
38 | 38 | function __sleep() { |
39 | | - foreach ( $this->internals as $ns => &$nsLinks ) { |
40 | | - foreach ( $nsLinks as $key => &$entry ) { |
| 39 | + foreach ( $this->internals as &$nsLinks ) { |
| 40 | + foreach ( $nsLinks as &$entry ) { |
41 | 41 | unset( $entry['title'] ); |
42 | 42 | } |
43 | 43 | } |
44 | 44 | unset( $nsLinks ); |
45 | 45 | unset( $entry ); |
46 | 46 | |
47 | | - foreach ( $this->interwikis as $key => &$entry ) { |
| 47 | + foreach ( $this->interwikis as &$entry ) { |
48 | 48 | unset( $entry['title'] ); |
49 | 49 | } |
50 | 50 | unset( $entry ); |
— | — | @@ -55,8 +55,8 @@ |
56 | 56 | * Recreate the Title objects |
57 | 57 | */ |
58 | 58 | function __wakeup() { |
59 | | - foreach ( $this->internals as $ns => &$nsLinks ) { |
60 | | - foreach ( $nsLinks as $key => &$entry ) { |
| 59 | + foreach ( $this->internals as &$nsLinks ) { |
| 60 | + foreach ( $nsLinks as &$entry ) { |
61 | 61 | $entry['title'] = Title::newFromText( $entry['pdbk'] ); |
62 | 62 | } |
63 | 63 | } |
— | — | @@ -259,7 +259,6 @@ |
260 | 260 | |
261 | 261 | wfProfileIn( __METHOD__.'-check' ); |
262 | 262 | $dbr = wfGetDB( DB_SLAVE ); |
263 | | - $page = $dbr->tableName( 'page' ); |
264 | 263 | $threshold = $this->parent->getOptions()->getStubThreshold(); |
265 | 264 | |
266 | 265 | # Sort by namespace |
— | — | @@ -268,8 +267,6 @@ |
269 | 268 | $linkcolour_ids = array(); |
270 | 269 | |
271 | 270 | # Generate query |
272 | | - $query = false; |
273 | | - $current = null; |
274 | 271 | $queries = array(); |
275 | 272 | foreach ( $this->internals as $ns => $entries ) { |
276 | 273 | foreach ( $entries as $entry ) { |
Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -1097,7 +1097,7 @@ |
1098 | 1098 | } |
1099 | 1099 | |
1100 | 1100 | public function removeIdentifierQuotes( $s ) { |
1101 | | - return strpos($s, '/*Q*/') === FALSE ? $s : substr($s, 5); ; |
| 1101 | + return strpos($s, '/*Q*/') === FALSE ? $s : substr($s, 5); |
1102 | 1102 | } |
1103 | 1103 | |
1104 | 1104 | public function isQuotedIdentifier( $s ) { |
Index: trunk/phase3/includes/UserMailer.php |
— | — | @@ -127,7 +127,6 @@ |
128 | 128 | } |
129 | 129 | |
130 | 130 | if ( is_array( $wgSMTP ) ) { |
131 | | - $found = false; |
132 | 131 | if ( function_exists( 'stream_resolve_include_path' ) ) { |
133 | 132 | $found = stream_resolve_include_path( 'Mail.php' ); |
134 | 133 | } else { |
Index: trunk/phase3/includes/installer/MysqlInstaller.php |
— | — | @@ -494,7 +494,6 @@ |
495 | 495 | } |
496 | 496 | |
497 | 497 | // Try to grant to all the users we know exist or we were able to create |
498 | | - $escPass = $this->db->addQuotes( $password ); |
499 | 498 | $dbAllTables = $this->db->addIdentifierQuotes( $dbName ) . '.*'; |
500 | 499 | foreach( $grantableNames as $name ) { |
501 | 500 | try { |
Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -118,7 +118,6 @@ |
119 | 119 | } else { |
120 | 120 | $id = $title->getArticleID( Title::GAID_FOR_UPDATE ); |
121 | 121 | $article = new Article( $title ); |
122 | | - $error = ''; |
123 | 122 | $dbw = wfGetDB( DB_MASTER ); |
124 | 123 | try { |
125 | 124 | // delete the associated article first |
Index: trunk/phase3/includes/ZipDirectoryReader.php |
— | — | @@ -542,7 +542,7 @@ |
543 | 543 | */ |
544 | 544 | function getStructSize( $struct ) { |
545 | 545 | $size = 0; |
546 | | - foreach ( $struct as $key => $type ) { |
| 546 | + foreach ( $struct as $type ) { |
547 | 547 | if ( is_array( $type ) ) { |
548 | 548 | list( $typeName, $fieldSize ) = $type; |
549 | 549 | $size += $fieldSize; |
Index: trunk/phase3/includes/specials/SpecialUploadStash.php |
— | — | @@ -320,7 +320,6 @@ |
321 | 321 | $this->setHeaders(); |
322 | 322 | $this->outputHeader(); |
323 | 323 | |
324 | | - |
325 | 324 | // create the form, which will also be used to execute a callback to process incoming form data |
326 | 325 | // this design is extremely dubious, but supposedly HTMLForm is our standard now? |
327 | 326 | |
Index: trunk/phase3/includes/Import.php |
— | — | @@ -907,6 +907,9 @@ |
908 | 908 | $this->params = $params; |
909 | 909 | } |
910 | 910 | |
| 911 | + /** |
| 912 | + * @return Title |
| 913 | + */ |
911 | 914 | function getTitle() { |
912 | 915 | return $this->title; |
913 | 916 | } |
Index: trunk/phase3/languages/classes/LanguageTyv.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | $roundFrontVowels = array( "ө", "ү", "ö", "ü" ); |
30 | 30 | $unroundBackVowels = array( "а", "ы", "я", "a", "y" ); |
31 | 31 | $roundBackVowels = array( "ё", "о", "у", "ю", "o", "u" ); |
32 | | - $voicedPhonemes = array( "д", "б", "з", "ж", "г", "d", "b", "z", "g" ); |
| 32 | + //$voicedPhonemes = array( "д", "б", "з", "ж", "г", "d", "b", "z", "g" ); |
33 | 33 | $unvoicedPhonemes = array( "т", "п", "с", "ш", "к", "ч", "х", "t", "p", "s", "k", "x" ); |
34 | 34 | $directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң", "t", "p", "s", "k", "x", "l", "m", "n", "ŋ" ); |
35 | 35 | $directiveVoicedStems = array( "д", "б", "з", "ж", "г", "р", "й", "d", "b", "z", "g", "r", "j" ); |