From 90f3ca04395a5376ff001ab96c04398cea5de302 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 14 Mar 2015 18:59:28 -0700 Subject: [PATCH] Fix phpcs errors and warnings in includes/exception Change-Id: I979c94a41df67426e621a734d5a86d55b890d269 --- includes/exception/MWException.php | 3 ++- includes/exception/MWExceptionHandler.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 ); -- 2.20.1