=========================== Rule ``ordered_interfaces`` =========================== Orders the interfaces in an ``implements`` or ``interface extends`` clause. Configuration ------------- ``case_sensitive`` ~~~~~~~~~~~~~~~~~~ Whether the sorting should be case sensitive. Allowed types: ``bool`` Default value: ``false`` ``direction`` ~~~~~~~~~~~~~ Which direction the interfaces should be ordered. Allowed values: ``'ascend'`` and ``'descend'`` Default value: ``'ascend'`` ``order`` ~~~~~~~~~ How the interfaces should be ordered. Allowed values: ``'alpha'`` and ``'length'`` Default value: ``'alpha'`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New 'descend']``. .. code-block:: diff --- Original +++ New 'length']``. .. code-block:: diff --- Original +++ New 'length', 'direction' => 'descend']``. .. code-block:: diff --- Original +++ New 'alpha']``. .. code-block:: diff --- Original +++ New 'alpha', 'case_sensitive' => true]``. .. code-block:: diff --- Original +++ New `_ - Test class: `PhpCsFixer\\Tests\\Fixer\\ClassNotation\\OrderedInterfacesFixerTest <./../../../tests/Fixer/ClassNotation/OrderedInterfacesFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.