diff --git a/doc/classes.md b/doc/classes.md index a00e4530..2b35d79e 100644 --- a/doc/classes.md +++ b/doc/classes.md @@ -9,14 +9,6 @@ Sniff provides the following settings: * `spacesCountBeforeColon`: the number of spaces before `:`. * `spacesCountBeforeType`: the number of spaces before type. -#### SlevomatCodingStandard.Classes.ClassLength - -Disallows long classes. This sniff provides the following settings: - -* `includeComments`: should comments be included in the count (default value is false). -* `includeWhitespace`: should empty lines be included in the count (default value is false). -* `maxLinesLength`: specifies max allowed function lines length (default value is 250). - #### SlevomatCodingStandard.Classes.ClassConstantVisibility 🔧 In PHP 7.1+ it's possible to declare [visibility of class constants](https://wiki.php.net/rfc/class_const_visibility). In a similar vein to optional declaration of visibility for properties and methods which is actually required in sane coding standards, this sniff also requires declaring visibility for all class constants. @@ -30,6 +22,14 @@ const FOO = 1; // visibility missing! public const BAR = 2; // correct ``` +#### SlevomatCodingStandard.Classes.ClassLength + +Disallows long classes. This sniff provides the following settings: + +* `includeComments`: should comments be included in the count (default value is false). +* `includeWhitespace`: should empty lines be included in the count (default value is false). +* `maxLinesLength`: specifies max allowed function lines length (default value is 250). + #### SlevomatCodingStandard.Classes.ClassMemberSpacing 🔧 Sniff checks lines count between different class members, e.g. between last property and first method.