==================================== Rule ``class_attributes_separation`` ==================================== Class, trait and interface elements must be separated with one or none blank line. Configuration ------------- ``elements`` ~~~~~~~~~~~~ Dictionary of ``const|method|property|trait_import|case`` => ``none|one|only_if_meta`` values. Allowed types: ``array`` Default value: ``['const' => 'one', 'method' => 'one', 'property' => 'one', 'trait_import' => 'none', 'case' => 'none']`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New ['property' => 'one']]``. .. code-block:: diff --- Original +++ New ['const' => 'one']]``. .. code-block:: diff --- Original +++ New ['const' => 'only_if_meta']]``. .. code-block:: diff --- Original +++ New ['property' => 'only_if_meta']]``. .. code-block:: diff --- Original +++ New `_ with config: ``['elements' => ['method' => 'one']]`` - `@Symfony <./../../ruleSets/Symfony.rst>`_ with config: ``['elements' => ['method' => 'one']]`` References ---------- - Fixer class: `PhpCsFixer\\Fixer\\ClassNotation\\ClassAttributesSeparationFixer <./../../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\ClassNotation\\ClassAttributesSeparationFixerTest <./../../../tests/Fixer/ClassNotation/ClassAttributesSeparationFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.