https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114113

Revision: 114113
Author:   reedy
Date:     2012-03-18 21:01:49 +0000 (Sun, 18 Mar 2012)
Log Message:
-----------
Cleanup extra ; and break statements

Remove a wrong comment

Modified Paths:
--------------
    trunk/extensions/WhiteSpace/WhiteSpace.class.php

Modified: trunk/extensions/WhiteSpace/WhiteSpace.class.php
===================================================================
--- trunk/extensions/WhiteSpace/WhiteSpace.class.php    2012-03-18 21:01:11 UTC 
(rev 114112)
+++ trunk/extensions/WhiteSpace/WhiteSpace.class.php    2012-03-18 21:01:49 UTC 
(rev 114113)
@@ -28,14 +28,14 @@
                switch ( $match[ 1 ] ) {
                        case 'dws' : {
                                return '';
-                       } break;
+                       }
                        case 'nl' : {
                                return "\n" . $match[ 2 ];
-                       } break;
+                       }
                        default : {
                                return $match[ 0 ];
-                       } break;
-               }; // if
+                       }
+               }
        } // function callback
 
        static private function replaceTags( &$text ) {
@@ -45,7 +45,7 @@
        static public function onParserBeforePreprocess( $parser, &$text, 
$flags ) {
                if ( $flags & Parser::PTD_FOR_INCLUSION ) {
                        self::replaceTags( $text );
-               }; // if
+               } // if
                return true;
        } // function onParserBeforePreprocess
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to