r114113 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114112‎ | r114113 | r114114 >
Date:21:01, 18 March 2012
Author:reedy
Status:ok
Tags:
Comment:
Cleanup extra ; and break statements

Remove a wrong comment
Modified paths:
  • /trunk/extensions/WhiteSpace/WhiteSpace.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WhiteSpace/WhiteSpace.class.php
@@ -28,14 +28,14 @@
2929 switch ( $match[ 1 ] ) {
3030 case 'dws' : {
3131 return '';
32 - } break;
 32+ }
3333 case 'nl' : {
3434 return "\n" . $match[ 2 ];
35 - } break;
 35+ }
3636 default : {
3737 return $match[ 0 ];
38 - } break;
39 - }; // if
 38+ }
 39+ }
4040 } // function callback
4141
4242 static private function replaceTags( &$text ) {
@@ -45,7 +45,7 @@
4646 static public function onParserBeforePreprocess( $parser, &$text, $flags ) {
4747 if ( $flags & Parser::PTD_FOR_INCLUSION ) {
4848 self::replaceTags( $text );
49 - }; // if
 49+ } // if
5050 return true;
5151 } // function onParserBeforePreprocess
5252

Sign-offs

UserFlagDate
Nikerabbitinspected09:20, 19 March 2012

Status & tagging log