Skip to content

Problems with spaces when formatting #68

@reprintsev

Description

@reprintsev

When using the --exclude=AddMissingCurlyBraces option, the space between the closing parenthesis and next statement is removed

<?php
if (true) return;

becomes

<?php
if (true)return;

When using the --exclude=MergeParenCloseWithCurlyOpen option, an extra space is added before else

<?php
if (true) {
    // something
}
else {
    // something
}

becomes

<?php
if (true) {
    // something
}
 else {
    // something
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions