r57684 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57683‎ | r57684 | r57685 >
Date:22:42, 13 October 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Whitespace updates
Modified paths:
  • /trunk/extensions/Translate/SpecialTranslationStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialTranslationStats.php
@@ -10,7 +10,6 @@
1111 public function execute( $par ) {
1212 global $wgOut, $wgRequest;
1313
14 -
1514 $opts = new FormOptions();
1615 $opts->add( 'graphit', false );
1716 $opts->add( 'preview', false );
@@ -32,7 +31,6 @@
3332 $opts[$key] = $value;
3433 }
3534
36 -
3735 $opts->validateIntBounds( 'days', 1, 300 );
3836 $opts->validateIntBounds( 'width', 200, 1000 );
3937 $opts->validateIntBounds( 'height', 200, 1000 );
@@ -114,7 +112,7 @@
115113 }
116114
117115 if ( $spiParams !== '' ) $spiParams = '/' . $spiParams;
118 -
 116+
119117 $titleText = $this->getTitle()->getPrefixedText();
120118
121119 $wgOut->addHTML(
@@ -126,7 +124,6 @@
127125 '<hr />' .
128126 Xml::tags( 'div', array( 'style' => 'margin: 1em auto; text-align: center;' ), $this->image( $opts ) )
129127 );
130 -
131128 }
132129
133130 protected function eInput( $name, FormOptions $opts ) {
@@ -262,7 +259,6 @@
263260
264261 $so = new TranslatePerLanguageStats( $opts );
265262
266 -
267263 $tables = array( 'recentchanges' );
268264 $fields = array( 'rc_timestamp' );
269265
@@ -310,7 +306,6 @@
311307 $so->labels( $labels );
312308
313309 return array( $labels, $data );
314 -
315310 }
316311
317312 public function draw( FormOptions $opts ) {
@@ -372,12 +367,9 @@
373368
374369 // Draw it
375370 $plot->DrawGraph();
376 -
377371 }
378 -
379372 }
380373
381 -
382374 class TranslatePerLanguageStats {
383375 protected $opts;
384376 protected $cache;
@@ -399,6 +391,7 @@
400392 $filters['group'] = trim( $this->opts['group'] ) !== '';
401393
402394 foreach ( $groups as $group ) {
 395+
403396 foreach ( $codes as $code ) {
404397 if ( $code !== '' ) $key = "$group ($code)";
405398 else $key = $group;
@@ -422,7 +415,6 @@
423416 $type .= '-perlang';
424417
425418 $this->filters = $filters;
426 -
427419 }
428420
429421 public function postQuery( $rows ) { }
@@ -431,7 +423,6 @@
432424 $initial = array_pad( array(), max( 1, count( $this->cache ) ), 0 );
433425 }
434426
435 -
436427 public function indexOf( $row ) {
437428 global $wgContLang;
438429
@@ -475,5 +466,4 @@
476467 $labels = array_keys( $this->cache );
477468 }
478469 }
479 -
480470 }
\ No newline at end of file

Status & tagging log