Index: trunk/phase3/maintenance/tests/phpunit/includes/search/SearchUpdateTest.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | function updateText( $text ) { |
32 | | - list( $title, $resultText ) = $this->update( $text ); |
| 32 | + list( , $resultText ) = $this->update( $text ); |
33 | 33 | $resultText = trim( $resultText ); // abstract from some implementation details |
34 | 34 | return $resultText; |
35 | 35 | } |
Index: trunk/phase3/maintenance/tests/phpunit/suites/UploadFromUrlTestSuite.php |
— | — | @@ -14,9 +14,9 @@ |
15 | 15 | } |
16 | 16 | |
17 | 17 | function setUp() { |
18 | | - global $wgParser, $wgParserConf, $IP, $messageMemc, $wgMemc, $wgDeferredUpdateList, |
| 18 | + global $wgParser, $wgParserConf, $IP, $wgDeferredUpdateList, |
19 | 19 | $wgUser, $wgLang, $wgOut, $wgRequest, $wgStyleDirectory, $wgEnableParserCache, |
20 | | - $wgMessageCache, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $parserMemc, |
| 20 | + $wgMessageCache, $wgUseDatabaseMessages, $wgMsgCacheExpiry, |
21 | 21 | $wgNamespaceAliases, $wgNamespaceProtection, $wgLocalFileRepo, |
22 | 22 | $wgThumbnailScriptPath, $wgScriptPath, |
23 | 23 | $wgArticlePath, $wgStyleSheetPath, $wgScript, $wgStylePath; |
Index: trunk/phase3/maintenance/tests/parser/parserTest.inc |
— | — | @@ -120,9 +120,9 @@ |
121 | 121 | } |
122 | 122 | |
123 | 123 | static function setUp() { |
124 | | - global $wgParser, $wgParserConf, $IP, $messageMemc, $wgMemc, $wgDeferredUpdateList, |
| 124 | + global $wgParser, $wgParserConf, $IP, $wgDeferredUpdateList, |
125 | 125 | $wgUser, $wgLang, $wgOut, $wgRequest, $wgStyleDirectory, $wgEnableParserCache, |
126 | | - $wgMessageCache, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $parserMemc, |
| 126 | + $wgMessageCache, $wgUseDatabaseMessages, $wgMsgCacheExpiry, |
127 | 127 | $wgNamespaceAliases, $wgNamespaceProtection, $wgLocalFileRepo, |
128 | 128 | $wgThumbnailScriptPath, $wgScriptPath, |
129 | 129 | $wgArticlePath, $wgStyleSheetPath, $wgScript, $wgStylePath; |
Index: trunk/phase3/maintenance/updateDoubleWidthSearch.php |
— | — | @@ -39,9 +39,7 @@ |
40 | 40 | } |
41 | 41 | |
42 | 42 | public function execute() { |
43 | | - $quiet = $this->hasOption( 'q' ); |
44 | 43 | $maxLockTime = $this->getOption( 'l', 20 ); |
45 | | - $lockTime = time(); |
46 | 44 | |
47 | 45 | $dbw = wfGetDB( DB_MASTER ); |
48 | 46 | if ( $dbw->getType() !== 'mysql' ) { |
Index: trunk/phase3/maintenance/reassignEdits.php |
— | — | @@ -101,14 +101,17 @@ |
102 | 102 | if ( $total ) { |
103 | 103 | # Reassign edits |
104 | 104 | $this->output( "\nReassigning current edits..." ); |
105 | | - $res = $dbw->update( 'revision', $this->userSpecification( $to, 'rev_user', 'rev_user_text' ), $this->userConditions( $from, 'rev_user', 'rev_user_text' ), __METHOD__ ); |
| 105 | + $dbw->update( 'revision', $this->userSpecification( $to, 'rev_user', 'rev_user_text' ), |
| 106 | + $this->userConditions( $from, 'rev_user', 'rev_user_text' ), __METHOD__ ); |
106 | 107 | $this->output( "done.\nReassigning deleted edits..." ); |
107 | | - $res = $dbw->update( 'archive', $this->userSpecification( $to, 'ar_user', 'ar_user_text' ), $this->userConditions( $from, 'ar_user', 'ar_user_text' ), __METHOD__ ); |
| 108 | + $dbw->update( 'archive', $this->userSpecification( $to, 'ar_user', 'ar_user_text' ), |
| 109 | + $this->userConditions( $from, 'ar_user', 'ar_user_text' ), __METHOD__ ); |
108 | 110 | $this->output( "done.\n" ); |
109 | 111 | # Update recent changes if required |
110 | 112 | if ( $rc ) { |
111 | 113 | $this->output( "Updating recent changes..." ); |
112 | | - $dbw->update( 'recentchanges', $this->userSpecification( $to, 'rc_user', 'rc_user_text' ), $this->userConditions( $from, 'rc_user', 'rc_user_text' ), __METHOD__ ); |
| 114 | + $dbw->update( 'recentchanges', $this->userSpecification( $to, 'rc_user', 'rc_user_text' ), |
| 115 | + $this->userConditions( $from, 'rc_user', 'rc_user_text' ), __METHOD__ ); |
113 | 116 | $this->output( "done.\n" ); |
114 | 117 | } |
115 | 118 | } |
Index: trunk/phase3/includes/parser/LinkHolderArray.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | $query = false; |
160 | 160 | $current = null; |
161 | 161 | foreach ( $this->internals as $ns => $entries ) { |
162 | | - foreach ( $entries as $index => $entry ) { |
| 162 | + foreach ( $entries as $entry ) { |
163 | 163 | $title = $entry['title']; |
164 | 164 | $pdbk = $entry['pdbk']; |
165 | 165 | |
Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -52,8 +52,6 @@ |
53 | 53 | $this->mPassword = $password; |
54 | 54 | $this->mDBname = $dbName; |
55 | 55 | |
56 | | - $success = false; |
57 | | - |
58 | 56 | wfProfileIn("dbconnect-$server"); |
59 | 57 | |
60 | 58 | # The kernel's default SYN retransmission period is far too slow for us, |
Index: trunk/phase3/includes/db/LBFactory_Multi.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | if ( $this->lastWiki === $wiki ) { |
89 | 89 | return $this->lastSection; |
90 | 90 | } |
91 | | - list( $dbName, $prefix ) = $this->getDBNameAndPrefix( $wiki ); |
| 91 | + list( $dbName, ) = $this->getDBNameAndPrefix( $wiki ); |
92 | 92 | if ( isset( $this->sectionsByDB[$dbName] ) ) { |
93 | 93 | $section = $this->sectionsByDB[$dbName]; |
94 | 94 | } else { |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderContext.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | /* Methods */ |
45 | 45 | |
46 | 46 | public function __construct( ResourceLoader $resourceLoader, WebRequest $request ) { |
47 | | - global $wgLang, $wgDefaultSkin, $wgResourceLoaderDebug; |
| 47 | + global $wgDefaultSkin, $wgResourceLoaderDebug; |
48 | 48 | |
49 | 49 | $this->resourceLoader = $resourceLoader; |
50 | 50 | $this->request = $request; |
Index: trunk/phase3/includes/StreamFile.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | if ( $safe ) { |
98 | 98 | global $wgFileBlacklist, $wgCheckFileExtensions, $wgStrictFileExtensions, |
99 | 99 | $wgFileExtensions, $wgVerifyMimeType, $wgMimeTypeBlacklist; |
100 | | - list( $partName, $extList ) = UploadBase::splitExtensions( $filename ); |
| 100 | + list( , $extList ) = UploadBase::splitExtensions( $filename ); |
101 | 101 | if ( UploadBase::checkFileExtensionList( $extList, $wgFileBlacklist ) ) { |
102 | 102 | return 'unknown/unknown'; |
103 | 103 | } |
Index: trunk/phase3/includes/specials/SpecialPrefixindex.php |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | $namespace = NS_MAIN; |
130 | 130 | } else { |
131 | 131 | list( $namespace, $prefixKey, $prefix ) = $prefixList; |
132 | | - list( /* $fromNs */, $fromKey, $from ) = $fromList; |
| 132 | + list( , $fromKey, ) = $fromList; |
133 | 133 | |
134 | 134 | ### FIXME: should complain if $fromNs != $namespace |
135 | 135 | |
Index: trunk/phase3/includes/specials/SpecialUploadStash.php |
— | — | @@ -57,9 +57,6 @@ |
58 | 58 | // prevent callers from doing standard HTML output -- we'll take it from here |
59 | 59 | $wgOut->disable(); |
60 | 60 | |
61 | | - $code = 500; |
62 | | - $message = 'Unknown error'; |
63 | | - |
64 | 61 | if ( !isset( $subPage ) || $subPage === '' ) { |
65 | 62 | // the user probably visited the page just to see what would happen, so explain it a bit. |
66 | 63 | $code = '400'; |
— | — | @@ -126,7 +123,7 @@ |
127 | 124 | throw $e; |
128 | 125 | } |
129 | 126 | |
130 | | - list( $dummy, $width, $origKey ) = $matches; |
| 127 | + list( , $width, $origKey ) = $matches; |
131 | 128 | |
132 | 129 | // do not trap exceptions, if key is in bad format, or file not found, |
133 | 130 | // let exceptions propagate to caller. |
Index: trunk/phase3/includes/specials/SpecialBooksources.php |
— | — | @@ -69,7 +69,6 @@ |
70 | 70 | public static function isValidISBN( $isbn ) { |
71 | 71 | $isbn = self::cleanIsbn( $isbn ); |
72 | 72 | $sum = 0; |
73 | | - $check = -1; |
74 | 73 | if( strlen( $isbn ) == 13 ) { |
75 | 74 | for( $i = 0; $i < 12; $i++ ) { |
76 | 75 | if($i % 2 == 0) { |