github lkrms/pretty-php v0.4.63

latest releases: v0.4.72, v0.4.71, v0.4.70...
4 months ago

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 of protected and private properties, but not between public properties and a group of public and protected 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

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.