From: Kunal Mehta Date: Sun, 15 Mar 2015 01:59:28 +0000 (-0700) Subject: Fix phpcs errors and warnings in includes/exception X-Git-Tag: 1.31.0-rc.0~12092^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=90f3ca04395a5376ff001ab96c04398cea5de302;p=lhc%2Fweb%2Fwiklou.git Fix phpcs errors and warnings in includes/exception Change-Id: I979c94a41df67426e621a734d5a86d55b890d269 --- diff --git a/includes/exception/MWException.php b/includes/exception/MWException.php index 097c0436ad..478fead16c 100644 --- a/includes/exception/MWException.php +++ b/includes/exception/MWException.php @@ -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 ); } diff --git a/includes/exception/MWExceptionHandler.php b/includes/exception/MWExceptionHandler.php index 77ab6ad463..5644231a18 100644 --- a/includes/exception/MWExceptionHandler.php +++ b/includes/exception/MWExceptionHandler.php @@ -246,6 +246,7 @@ class MWExceptionHandler { if ( preg_match( "/Class (undefined: \w+|'\w+' not found)/", $lastError['message'] ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $msg = <<mediawiki.org for help on installing the required components. TXT; + // @codingStandardsIgnoreEnd } $e = new ErrorException( $msg, 0, $lastError['type'] ); self::logError( $e );