r50444 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50443‎ | r50444 | r50445 >
Date:17:26, 10 May 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Remove excess whitespace
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -185,7 +185,6 @@
186186 return "$path/$file";
187187 }
188188
189 -
190189 /**
191190 * Creates a new MessageCollection for this group.
192191 *
@@ -436,7 +435,6 @@
437436 $collection[$name]->database = $values;
438437 }
439438 }
440 -
441439 }
442440
443441 public function getWriter() {
@@ -445,7 +443,6 @@
446444 $writer->commaToArray = true;
447445 return $writer;
448446 }
449 -
450447 }
451448
452449 class CoreMostUsedMessageGroup extends CoreMessageGroup {
@@ -582,7 +579,6 @@
583580 }
584581 }
585582
586 -
587583 class WikiPageMessageGroup extends WikiMessageGroup {
588584 public $title;
589585
@@ -594,7 +590,7 @@
595591 }
596592 $this->title = $title;
597593 $this->namespaces = array( NS_TRANSLATIONS, NS_TRANSLATIONS_TALK );
598 -
 594+
599595 }
600596
601597 public function getDefinitions() {
@@ -603,7 +599,7 @@
604600 $vars = array( 'trs_key', 'trs_text' );
605601 $conds = array( 'trs_page' => $this->title->getArticleId() );
606602 $res = $dbr->select( $tables, $vars, $conds, __METHOD__ );
607 -
 603+
608604 $defs = array();
609605 $prefix = $this->title->getPrefixedDBKey() . '/';
610606 $re = '~<tvar\|([^>]+)>(.*?)</>~u';
@@ -617,7 +613,7 @@
618614 ksort( $defs );
619615 $new_defs = array();
620616 foreach ( $defs as $k => $v ) $new_defs[$prefix.$k] = $v;
621 -
 617+
622618 return $new_defs;
623619 }
624620
@@ -671,10 +667,8 @@
672668 }
673669 }
674670 }
675 -
676671 }
677672
678 -
679673 class MessageGroups {
680674 public static function init() {
681675 static $loaded = false;
@@ -691,7 +685,7 @@
692686 global $wgEnablePageTranslation;
693687 if ( $wgEnablePageTranslation ) {
694688 $dbr = wfGetDB( DB_SLAVE );
695 -
 689+
696690 $tables = array( 'page', 'revtag', 'revtag_type' );
697691 $vars = array( 'page_id', 'page_namespace', 'page_title', 'rt_revision' );
698692 $conds = array( 'page_id=rt_page', 'rtt_id=rt_type', 'rtt_name' => 'tp:mark' );

Status & tagging log