r100294 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100293‎ | r100294 | r100295 >
Date:23:32, 19 October 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix trailing whitespace
Modified paths:
  • /trunk/extensions/Contest/includes/Contest.class.php (modified) (history)
  • /trunk/extensions/Contest/specials/SpecialContest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/specials/SpecialContest.php
@@ -53,12 +53,12 @@
5454 }
5555 else {
5656 $out->setPageTitle( wfMsgExt( 'contest-contest-title', 'parseinline', $contest->getField( 'name' ) ) );
57 -
 57+
5858 $this->displayNavigation();
5959 $this->showGeneralInfo( $contest );
6060 $this->showMailFunctionality( $contest );
6161 $this->showContestants( $contest, $challengeTitle );
62 -
 62+
6363 $out->addModules( 'contest.special.contest' );
6464 }
6565 }
@@ -111,31 +111,31 @@
112112 $stats['name'] = $contest->getField( 'name' );
113113 $stats['status'] = Contest::getStatusMessage( $contest->getStatus() );
114114 $stats['submissioncount'] = $this->getLang()->formatNum( $contest->getField( 'submission_count' ) );
115 -
 115+
116116 $stats['end'] = wfMsgExt(
117117 $contest->getDaysLeft() < 0 ? 'contest-contest-days-ago' : 'contest-contest-days-left',
118118 'parsemag',
119119 $this->getLang()->timeanddate( $contest->getField( 'end' ), true ),
120120 $this->getLang()->formatNum( abs( $contest->getDaysLeft() ) )
121121 );
122 -
 122+
123123 return $stats;
124124 }
125125
126126 /**
127 - *
128 - *
 127+ *
 128+ *
129129 * @since 0.1
130 - *
 130+ *
131131 * @param Contest $contest
132132 */
133133 protected function showMailFunctionality( Contest $contest ) {
134134 $out = $this->getOutput();
135135
136136 $out->addHTML( Html::element( 'h3', array(), wfMsg( 'contest-contest-reminder-mail' ) ) );
137 -
 137+
138138 $out->addWikiMsg( 'contest-contest-reminder-page', $contest->getField( 'reminder_email' ) );
139 -
 139+
140140 $out->addHTML( Html::element(
141141 'button',
142142 array(
@@ -145,7 +145,7 @@
146146 ),
147147 wfMsg( 'contest-contest-send-reminder' )
148148 ) );
149 -
 149+
150150 $out->addHTML( Html::rawElement(
151151 'div',
152152 array(
@@ -155,7 +155,7 @@
156156 ContestUtils::getParsedArticleContent( $contest->getField( 'reminder_email' ) )
157157 ) );
158158 }
159 -
 159+
160160 /**
161161 * Show a paged list of the contestants foe this contest.
162162 *
Index: trunk/extensions/Contest/includes/Contest.class.php
@@ -138,7 +138,7 @@
139139 */
140140 public function getDefaults() {
141141 $defaultPage = 'MediaWiki:Contests/';
142 -
 142+
143143 return array(
144144 'name' => '',
145145 'status' => self::STATUS_DRAFT,

Status & tagging log