Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 528 Bytes

SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys.md

File metadata and controls

15 lines (9 loc) · 528 Bytes

Pattern: Wrong array keys order

Issue: -

Description

Arrays should be defined with keys in alphabetical order. It defines where new entries should be inserted. It reduces merge conflicts and duplicate entries.

This rule enforces natural sorting of array definitions by key in multi-line arrays.

Further Reading