Index: trunk/phase3/maintenance/tests/phpunit/includes/UploadFromUrlTest.php |
— | — | @@ -133,7 +133,6 @@ |
134 | 134 | $this->assertTrue( $exception, "Got exception" ); |
135 | 135 | |
136 | 136 | self::$user->addGroup( 'sysop' ); |
137 | | - $exception = false; |
138 | 137 | $data = $this->doApiRequest( array( |
139 | 138 | 'action' => 'upload', |
140 | 139 | 'url' => 'http://bits.wikimedia.org/skins-1.5/common/images/poweredby_mediawiki_88x31.png', |
Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiUploadTest.php |
— | — | @@ -303,7 +303,6 @@ |
304 | 304 | global $wgUser; |
305 | 305 | $wgUser = self::$users['uploader']->user; |
306 | 306 | |
307 | | - $extension = 'png'; |
308 | 307 | $mimeType = 'image/png'; |
309 | 308 | |
310 | 309 | $filePath = tempnam( wfTempDir(), "" ); |
— | — | @@ -617,7 +616,7 @@ |
618 | 617 | $hash = File::sha1Base36( $filePath ); |
619 | 618 | $dupes = RepoGroup::singleton()->findBySha1( $hash ); |
620 | 619 | $success = true; |
621 | | - foreach ( $dupes as $key => $dupe ) { |
| 620 | + foreach ( $dupes as $dupe ) { |
622 | 621 | $success &= $this->deleteFileByTitle( $dupe->getTitle() ); |
623 | 622 | } |
624 | 623 | return $success; |
Index: trunk/phase3/maintenance/populateCategory.php |
— | — | @@ -66,7 +66,6 @@ |
67 | 67 | |
68 | 68 | $maxlag = intval( $maxlag ); |
69 | 69 | $throttle = intval( $throttle ); |
70 | | - $force = (bool)$force; |
71 | 70 | if ( $begin !== '' ) { |
72 | 71 | $where = 'cl_to > ' . $dbw->addQuotes( $begin ); |
73 | 72 | } else { |
Index: trunk/phase3/maintenance/reassignEdits.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | # Update recent changes if required |
110 | 110 | if ( $rc ) { |
111 | 111 | $this->output( "Updating recent changes..." ); |
112 | | - $res = $dbw->update( 'recentchanges', $this->userSpecification( $to, 'rc_user', 'rc_user_text' ), $this->userConditions( $from, 'rc_user', 'rc_user_text' ), __METHOD__ ); |
| 112 | + $dbw->update( 'recentchanges', $this->userSpecification( $to, 'rc_user', 'rc_user_text' ), $this->userConditions( $from, 'rc_user', 'rc_user_text' ), __METHOD__ ); |
113 | 113 | $this->output( "done.\n" ); |
114 | 114 | } |
115 | 115 | } |
Index: trunk/phase3/maintenance/orphans.php |
— | — | @@ -165,7 +165,6 @@ |
166 | 166 | $dbw = wfGetDB( DB_MASTER ); |
167 | 167 | $page = $dbw->tableName( 'page' ); |
168 | 168 | $revision = $dbw->tableName( 'revision' ); |
169 | | - $text = $dbw->tableName( 'text' ); |
170 | 169 | |
171 | 170 | if ( $fix ) { |
172 | 171 | $dbw->lockTables( $dbw, 'text', __METHOD__ ); |
Index: trunk/phase3/maintenance/dumpTextPass.php |
— | — | @@ -263,7 +263,6 @@ |
264 | 264 | while ( true ) { |
265 | 265 | try { |
266 | 266 | $text = $this->getTextDb( $id ); |
267 | | - $ex = new MWException( "Graceful storage failure" ); |
268 | 267 | } catch ( DBQueryError $ex ) { |
269 | 268 | $text = false; |
270 | 269 | } |
Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -340,7 +340,7 @@ |
341 | 341 | protected function verifyFile() { |
342 | 342 | # get the title, even though we are doing nothing with it, because |
343 | 343 | # we need to populate mFinalExtension |
344 | | - $nt = $this->getTitle(); |
| 344 | + $this->getTitle(); |
345 | 345 | |
346 | 346 | $this->mFileProps = File::getPropsFromPath( $this->mTempPath, $this->mFinalExtension ); |
347 | 347 | $this->checkMacBinary(); |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -789,7 +789,6 @@ |
790 | 790 | wfProfileIn( __METHOD__ ); |
791 | 791 | |
792 | 792 | $lines = StringUtils::explode( "\n", $text ); |
793 | | - $text = null; |
794 | 793 | $out = ''; |
795 | 794 | $td_history = array(); # Is currently a td tag open? |
796 | 795 | $last_tag_history = array(); # Save history of last lag activated (td, th or caption) |
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -511,9 +511,7 @@ |
512 | 512 | // another heading. Infinite loops are avoided because the next iteration MUST |
513 | 513 | // hit the heading open case above, which unconditionally increments the |
514 | 514 | // input pointer. |
515 | | - } |
516 | | - |
517 | | - elseif ( $found == 'open' ) { |
| 515 | + } elseif ( $found == 'open' ) { |
518 | 516 | # count opening brace characters |
519 | 517 | $count = strspn( $text, $curChar, $i ); |
520 | 518 | |
— | — | @@ -536,9 +534,7 @@ |
537 | 535 | $accum .= htmlspecialchars( str_repeat( $curChar, $count ) ); |
538 | 536 | } |
539 | 537 | $i += $count; |
540 | | - } |
541 | | - |
542 | | - elseif ( $found == 'close' ) { |
| 538 | + } elseif ( $found == 'close' ) { |
543 | 539 | $piece = $stack->top; |
544 | 540 | # lets check if there are enough characters for closing brace |
545 | 541 | $maxCount = $piece->count; |
— | — | @@ -961,7 +957,9 @@ |
962 | 958 | $iteratorStack[$level] = false; |
963 | 959 | } |
964 | 960 | |
965 | | - if ( $contextNode instanceof PPNode_DOM ) $contextNode = $contextNode->node; |
| 961 | + if ( $contextNode instanceof PPNode_DOM ) { |
| 962 | + $contextNode = $contextNode->node; |
| 963 | + } |
966 | 964 | |
967 | 965 | $newIterator = false; |
968 | 966 | |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -3302,7 +3302,6 @@ |
3303 | 3303 | # Truncate for whole multibyte characters. +5 bytes for ellipsis |
3304 | 3304 | $comment = $wgContLang->truncate( $comment, 250 ); |
3305 | 3305 | |
3306 | | - $newid = $nt->getArticleID(); |
3307 | 3306 | $oldid = $this->getArticleID(); |
3308 | 3307 | $latest = $this->getLatestRevId(); |
3309 | 3308 | |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -358,7 +358,6 @@ |
359 | 359 | |
360 | 360 | if( $wgPageShowWatchingUsers ) { |
361 | 361 | $dbr = wfGetDB( DB_SLAVE ); |
362 | | - $watchlist = $dbr->tableName( 'watchlist' ); |
363 | 362 | $res = $dbr->select( 'watchlist', |
364 | 363 | array( 'COUNT(*) AS n' ), |
365 | 364 | array( 'wl_title' => $dbr->strencode( $this->mTitle->getDBkey() ), 'wl_namespace' => $this->mTitle->getNamespace() ), |
Index: trunk/phase3/includes/specials/SpecialComparePages.php |
— | — | @@ -97,7 +97,6 @@ |
98 | 98 | $this->form(); |
99 | 99 | |
100 | 100 | if( $this->opts->getValue( 'rev1' ) && $this->opts->getValue( 'rev2' ) ) { |
101 | | - $title = Title::newFromText( $this->opts->getValue( 'page2' ) ); |
102 | 101 | $de = new DifferenceEngine( null, |
103 | 102 | $this->opts->getValue( 'rev1' ), |
104 | 103 | $this->opts->getValue( 'rev2' ), |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -176,7 +176,6 @@ |
177 | 177 | $wgOut->addWikiMsg( 'accmailtext', $u->getName(), $u->getEmail() ); |
178 | 178 | $wgOut->returnToMain( false ); |
179 | 179 | } |
180 | | - $u = 0; |
181 | 180 | } |
182 | 181 | |
183 | 182 | /** |
— | — | @@ -620,7 +619,7 @@ |
621 | 620 | } |
622 | 621 | |
623 | 622 | wfDebug( __METHOD__ . ": creating account\n" ); |
624 | | - $user = $this->initUser( $user, true ); |
| 623 | + $this->initUser( $user, true ); |
625 | 624 | return self::SUCCESS; |
626 | 625 | } |
627 | 626 | |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -342,9 +342,9 @@ |
343 | 343 | global $wgOut; |
344 | 344 | // Figure out the active search profile header |
345 | 345 | $nsAllSet = array_keys( SearchEngine::searchableNamespaces() ); |
346 | | - if( $this->searchAdvanced ) |
| 346 | + if( $this->searchAdvanced ) { |
347 | 347 | $this->active = 'advanced'; |
348 | | - else { |
| 348 | + } else { |
349 | 349 | $profiles = $this->getSearchProfiles(); |
350 | 350 | |
351 | 351 | foreach( $profiles as $key => $data ) { |
— | — | @@ -416,7 +416,6 @@ |
417 | 417 | if( !is_null($infoLine) ) { |
418 | 418 | $out .= "\n<!-- {$infoLine} -->\n"; |
419 | 419 | } |
420 | | - $off = $this->offset + 1; |
421 | 420 | $out .= "<ul class='mw-search-results'>\n"; |
422 | 421 | while( $result = $matches->next() ) { |
423 | 422 | $out .= $this->showHit( $result, $terms ); |
— | — | @@ -623,7 +622,6 @@ |
624 | 623 | |
625 | 624 | $out = "<div id='mw-search-interwiki'><div id='mw-search-interwiki-caption'>". |
626 | 625 | wfMsg('search-interwiki-caption')."</div>\n"; |
627 | | - $off = $this->offset + 1; |
628 | 626 | $out .= "<ul class='mw-search-iwresults'>\n"; |
629 | 627 | |
630 | 628 | // work out custom project captions |