Fix phpcs errors and warnings in includes/exception
authorKunal Mehta <legoktm@gmail.com>
Sun, 15 Mar 2015 01:59:28 +0000 (18:59 -0700)
committerKunal Mehta <legoktm@gmail.com>
Sun, 15 Mar 2015 02:36:51 +0000 (19:36 -0700)
Change-Id: I979c94a41df67426e621a734d5a86d55b890d269

includes/exception/MWException.php
includes/exception/MWExceptionHandler.php

index 097c043..478fead 100644 (file)
@@ -119,7 +119,8 @@ class MWException extends Exception {
                if ( $this->useMessageCache() ) {
                        try {
                                return wfMessage( $key, $args )->text();
-                       } catch ( Exception $e ) {}
+                       } catch ( Exception $e ) {
+                       }
                }
                return wfMsgReplaceArgs( $fallback, $args );
        }
index 77ab6ad..5644231 100644 (file)
@@ -246,6 +246,7 @@ class MWExceptionHandler {
                        if ( preg_match( "/Class (undefined: \w+|'\w+' not found)/",
                                $lastError['message']
                        ) ) {
+                               // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong
                                $msg = <<<TXT
 {$msg}
 
@@ -253,6 +254,7 @@ MediaWiki or an installed extension requires this class but it is not embedded d
 
 Please see <a href="https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries">mediawiki.org</a> for help on installing the required components.
 TXT;
+                               // @codingStandardsIgnoreEnd
                        }
                        $e = new ErrorException( $msg, 0, $lastError['type'] );
                        self::logError( $e );