diff --git a/README.md b/README.md index ef5b8e6c..e036a85f 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ exceptions/differences/extensions (:white_check_mark: are the implemented sniffs - Keep the nesting of control structures per method as small as possible - Prefer early exit over nesting conditions or using else +- :white_check_mark: Abstract classes should not be prefixed with `Abstract` +- :white_check_mark: Interfaces should not be suffixed with `Interface` +- :white_check_mark: Concrete exception class names should not be suffixed with `Exception` +- :white_check_mark: Abstract exception class names and exception interface names should be suffixed with `Exception` - :white_check_mark: Align equals (`=`) signs in assignments - :white_check_mark: Add spaces around a concatenation operator `$foo = 'Hello ' . 'World!';` - :white_check_mark: Add spaces between assignment, control and return statements diff --git a/composer.json b/composer.json index bfd0eb83..9118064f 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "php": "^7.1", "squizlabs/php_codesniffer": "^3.2", "dealerdirect/phpcodesniffer-composer-installer": "^0.4.2", - "slevomat/coding-standard": "^4.4.0" + "slevomat/coding-standard": "^4.5.0" }, "extra": { "branch-alias": { diff --git a/lib/Doctrine/ruleset.xml b/lib/Doctrine/ruleset.xml index 6f6226d5..c2863c0b 100644 --- a/lib/Doctrine/ruleset.xml +++ b/lib/Doctrine/ruleset.xml @@ -93,6 +93,12 @@ + + + + + +