===================== Rule ``group_import`` ===================== There MUST be group use for the same namespaces. Configuration ------------- ``group_types`` ~~~~~~~~~~~~~~~ Defines the order of import types. Allowed types: ``list`` Default value: ``['classy', 'functions', 'constants']`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New ['classy']]``. .. code-block:: diff --- Original +++ New `_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Import\\GroupImportFixerTest <./../../../tests/Fixer/Import/GroupImportFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.