Added
- Add
--tight
option to remove blank lines between declarations where possible
Changed
- Rewrite declaration spacing to improve consistency and reduce diff size
- Allow subsequent groups of declarations to use "loose" and "tight" spacing alternately, i.e. do not simply propagate loose spacing from its first appearance onwards
- Allow properties and constants with multi-line values to maintain "tight" spacing
- Do not propagate "loose" spacing triggered by comments other than DocBlocks to subsequent declarations of the same type
- Preserve blank lines between declarations with mutually exclusive modifiers, e.g. between a group of
public
properties and a group ofprotected
andprivate
properties, but not betweenpublic
properties and a group ofpublic
andprotected
properties
Fixed
- Fix issue where a blank line is not always added between declarations and subsequent code
- Fix declaration spacing issues with
function &()
constructs and nested declarations