From c892eabea837b48d597cd3688dd9a31af9ce0e13 Mon Sep 17 00:00:00 2001 From: Evgeny Orekhov Date: Thu, 12 Apr 2018 14:38:24 +0300 Subject: [PATCH] Fix #1 - make ordered_class_elements more strict Add grouping of static class elements. --- Config.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Config.php b/Config.php index a407a1f..a93360a 100644 --- a/Config.php +++ b/Config.php @@ -126,7 +126,28 @@ public static function create() 'no_superfluous_elseif' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'ordered_class_elements' => true, + 'ordered_class_elements' => [ + 'use_trait', + 'constant_public', + 'constant_protected', + 'constant_private', + 'property_public_static', + 'property_protected_static', + 'property_private_static', + 'property_public', + 'property_protected', + 'property_private', + 'construct', + 'destruct', + 'magic', + 'phpunit', + 'method_public_static', + 'method_protected_static', + 'method_private_static', + 'method_public', + 'method_protected', + 'method_private', + ], 'ordered_imports' => [ 'importsOrder' => [ 'class',