Skip to content

Invalid indent when exclude AddMissingCurlyBraces #168

@BergenSoft

Description

@BergenSoft

I have this phpfmt settings:

"phpfmt.exclude": [
    "AddMissingCurlyBraces"
]

And I want to format this code:

if ($a == null)
  $a = 1;

Expected result:

if ($a == null)
    $a = 1;

Actual result:

if ($a == null)
$a = 1;

The indentation is always on the same level like the if statement.

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