Closed finn-matti closed 4 years ago
This is something to do with PHP_CodeSniffer package itself, not this extension.
You can see this by running phpcbf
from the command line, e.g.
Given ./index.php
that contains:
<?php
<?php
$a = [
'b' => [
'c' => 1,
]
];
Running ./vendor/bin/phpcbf --standard=PSR2 ./index.php
does nothing.
Please consider raising an issue in the squizlabs/PHP_CodeSniffer repo.
Describe the bug When using format on save ad when accidently adding a curly brace (or similar), saving, removing the brace and saving again, the indentation is not fixed completely.
Gif showing the problem:
To Reproduce Steps to reproduce the behavior:
Expected behavior Everything should look like before with all correct indentations.
Environment
Extension settings
Additional context Contents of phpcs.xml