Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflict within PSR12.ControlStructures.ControlStructureSpacing #581

Commits on Sep 2, 2024

  1. Fix conflict within PSR12.ControlStructures.ControlStructureSpacing

    For multi-line control structures, the first line of code must be on the next
    line after the control structure. This sniff correctly identified such cases.
    When the first line of code was on the same line as the control structure, the
    sniff correctly fixed this by adding a newline between these. However, when
    there were multiple blank lines between these, the fixer would continue adding
    new newlines. This change fixes this bug by first removing all non-indentation
    white-space before adding the one expected newline. Includes test.
    fredden committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    d9e164d View commit details
    Browse the repository at this point in the history