=========================== Rule ``ordered_interfaces`` =========================== Orders the interfaces in an ``implements`` or ``interface extends`` clause. Configuration ------------- ``order`` ~~~~~~~~~ How the interfaces should be ordered. Allowed values: ``'alpha'`` and ``'length'`` Default value: ``'alpha'`` ``direction`` ~~~~~~~~~~~~~ Which direction the interfaces should be ordered. Allowed values: ``'ascend'`` and ``'descend'`` Default value: ``'ascend'`` ``case_sensitive`` ~~~~~~~~~~~~~~~~~~ Whether the sorting should be case sensitive. Allowed types: ``bool`` Default value: ``false`` 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