r99965 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99964‎ | r99965 | r99966 >
Date:19:12, 16 October 2011
Author:reedy
Status:ok
Tags:
Comment:
de-indent switch
Modified paths:
  • /trunk/extensions/Contest/specials/SpecialContestSignup.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/specials/SpecialContestSignup.php
@@ -105,24 +105,23 @@
106106 $this->showError( 'contest-signup-unknown' );
107107 $out->addHTML( '<br /><br /><br /><br />' );
108108 $out->returnToMain();
 109+ return;
109110 }
110 - else {
111 - switch ( $contest->getStatus() ) {
112 - case Contest::STATUS_ACTIVE:
113 - $this->showEnabledPage( $contest, $challengeId );
114 - break;
115 - case Contest::STATUS_DRAFT:
116 - $this->showWarning( 'contest-signup-draft' );
117 - $out->addHTML( '<br /><br /><br /><br />' );
118 - $out->returnToMain();
119 - break;
120 - case Contest::STATUS_FINISHED:
121 - case Contest::STATUS_EXPIRED:
122 - $this->showWarning( 'contest-signup-finished' );
123 - $out->addHTML( '<br /><br /><br /><br />' );
124 - $out->returnToMain();
125 - break;
126 - }
 111+ switch ( $contest->getStatus() ) {
 112+ case Contest::STATUS_ACTIVE:
 113+ $this->showEnabledPage( $contest, $challengeId );
 114+ break;
 115+ case Contest::STATUS_DRAFT:
 116+ $this->showWarning( 'contest-signup-draft' );
 117+ $out->addHTML( '<br /><br /><br /><br />' );
 118+ $out->returnToMain();
 119+ break;
 120+ case Contest::STATUS_FINISHED:
 121+ case Contest::STATUS_EXPIRED:
 122+ $this->showWarning( 'contest-signup-finished' );
 123+ $out->addHTML( '<br /><br /><br /><br />' );
 124+ $out->returnToMain();
 125+ break;
127126 }
128127 }
129128

Status & tagging log