r84448 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84447‎ | r84448 | r84449 >
Date:14:54, 21 March 2011
Author:aaron
Status:ok
Tags:
Comment:
Broke super long lines
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/PendingChanges_body.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/QualityOversight_body.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/PendingChanges_body.php
@@ -251,11 +251,13 @@
252252 // After three days, just use days
253253 if ( $hours > ( 3 * 24 ) ) {
254254 $days = round( $hours / 24, 0 );
255 - $age = wfMsgExt( 'pendingchanges-days', 'parsemag', $wgLang->formatNum( $days ) );
 255+ $age = wfMsgExt( 'pendingchanges-days',
 256+ 'parsemag', $wgLang->formatNum( $days ) );
256257 // If one or more hours, use hours
257258 } elseif ( $hours >= 1 ) {
258259 $hours = round( $hours, 0 );
259 - $age = wfMsgExt( 'pendingchanges-hours', 'parsemag', $wgLang->formatNum( $hours ) );
 260+ $age = wfMsgExt( 'pendingchanges-hours',
 261+ 'parsemag', $wgLang->formatNum( $hours ) );
260262 } else {
261263 $age = wfMsg( 'pendingchanges-recent' ); // hot off the press :)
262264 }
Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php
@@ -44,7 +44,8 @@
4545 protected function showForm() {
4646 global $wgOut, $wgLang, $wgScript;
4747 # Add explanatory text
48 - $wgOut->addWikiMsg( 'unreviewedpages-list', $wgLang->formatNum( $this->pager->getNumRows() ) );
 48+ $wgOut->addWikiMsg( 'unreviewedpages-list',
 49+ $wgLang->formatNum( $this->pager->getNumRows() ) );
4950
5051 # show/hide links
5152 $showhide = array( wfMsgHtml( 'show' ), wfMsgHtml( 'hide' ) );
Index: trunk/extensions/FlaggedRevs/specialpages/QualityOversight_body.php
@@ -94,8 +94,10 @@
9595 * @returns array
9696 */
9797 private function getActions() {
98 - $actions = array( 'approve' => 1, 'approve2' => 1, 'approve-a' => 1, 'approve-i' => 1,
99 - 'approve-ia' => 1, 'approve2-i' => 1, 'unapprove' => 1, 'unapprove2' => 1 );
 98+ $actions = array(
 99+ 'approve' => 1, 'approve2' => 1, 'approve-a' => 1, 'approve-i' => 1,
 100+ 'approve-ia' => 1, 'approve2-i' => 1, 'unapprove' => 1, 'unapprove2' => 1
 101+ );
100102 if ( $this->level === 0 ) { // checked revisions
101103 $actions['approve2'] = 0;
102104 $actions['approve2-i'] = 0;
Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php
@@ -98,20 +98,23 @@
9999 ? '-' // devision by zero
100100 : wfMsg( 'parentheses',
101101 wfMsgExt( 'percent', array( 'escapenoentities' ),
102 - $wgLang->formatnum( sprintf( '%4.2f', 100 * intval( $row->reviewed ) / intval( $row->total ) ) )
 102+ $wgLang->formatnum( sprintf( '%4.2f',
 103+ 100 * intval( $row->reviewed ) / intval( $row->total ) ) )
103104 )
104105 );
105106 $percLatest = intval( $row->total ) == 0
106107 ? '-' // devision by zero
107108 : wfMsg( 'parentheses',
108109 wfMsgExt( 'percent', array( 'escapenoentities' ),
109 - $wgLang->formatnum( sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->total ) ) )
 110+ $wgLang->formatnum( sprintf( '%4.2f',
 111+ 100 * intval( $row->synced ) / intval( $row->total ) ) )
110112 )
111113 );
112114 $percSynced = intval( $row->reviewed ) == 0
113115 ? '-' // devision by zero
114116 : wfMsgExt( 'percent', array( 'escapenoentities' ),
115 - $wgLang->formatnum( sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->reviewed ) ) )
 117+ $wgLang->formatnum( sprintf( '%4.2f',
 118+ 100 * intval( $row->synced ) / intval( $row->reviewed ) ) )
116119 );
117120 $outdated = intval( $row->reviewed ) - intval( $row->synced );
118121 $outdated = $wgLang->formatnum( max( 0, $outdated ) ); // lag between queries
Index: trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php
@@ -227,11 +227,13 @@
228228 // After three days, just use days
229229 if ( $hours > ( 3 * 24 ) ) {
230230 $days = round( $hours / 24, 0 );
231 - $age = wfMsgExt( 'pendingchanges-days', 'parsemag', $wgLang->formatNum( $days ) );
 231+ $age = wfMsgExt( 'pendingchanges-days',
 232+ 'parsemag', $wgLang->formatNum( $days ) );
232233 // If one or more hours, use hours
233234 } elseif ( $hours >= 1 ) {
234235 $hours = round( $hours, 0 );
235 - $age = wfMsgExt( 'pendingchanges-hours', 'parsemag', $wgLang->formatNum( $hours ) );
 236+ $age = wfMsgExt( 'pendingchanges-hours',
 237+ 'parsemag', $wgLang->formatNum( $hours ) );
236238 } else {
237239 $age = wfMsg( 'pendingchanges-recent' ); // hot off the press :)
238240 }

Status & tagging log