From d5de9ab29d2c255197d96dd4a364ad19960b6078 Mon Sep 17 00:00:00 2001 From: Eduardo Pittol Date: Wed, 6 Nov 2024 23:20:14 -0300 Subject: [PATCH] Fix rules order on classes documentation --- doc/classes.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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.