diff --git a/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/codeStyle/BadExceptionsProcessingInspector.java b/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/codeStyle/BadExceptionsProcessingInspector.java index baab261f23..4ff06b0761 100644 --- a/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/codeStyle/BadExceptionsProcessingInspector.java +++ b/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/codeStyle/BadExceptionsProcessingInspector.java @@ -24,7 +24,7 @@ */ public class BadExceptionsProcessingInspector extends BasePhpInspection { - private static final String messagePattern = "Consider moving non-related statements (%c% in total) outside the try-block or refactoring the try-body into a function/method."; + private static final String messagePattern = "It is possible that some of the statements contained in the try block can be extracted into their own methods or functions (we recommend that you do not include more than three statements per try block)."; private static final String messageFailSilently = "The exception being ignored, please don't fail silently and at least log it."; private static final String messageChainedException = "The exception being ignored, please log it or use chained exceptions."; diff --git a/testData/fixtures/codeStyle/bad-exceptions-handling.php b/testData/fixtures/codeStyle/bad-exceptions-handling.php index 34106191eb..370cfe2fd4 100644 --- a/testData/fixtures/codeStyle/bad-exceptions-handling.php +++ b/testData/fixtures/codeStyle/bad-exceptions-handling.php @@ -10,7 +10,7 @@ throw new RuntimeException('...'); } - try { + try { echo 1; echo 2; echo 3;