I think that the brace placement linter rule needs some tweaking. For example:
<?php if ($x) { echo 'foo'; }else { echo 'bar'; }
Running arc lint on the above example produces the following fix, which seems wrong:
@@ -4,4 +4,4 @@ echo 'foo'; }else { echo 'bar'; -} + }
I would expect the fix to look like this:
@@ -2,6 +2,6 @@ if ($x) { echo 'foo'; -}else { +} else { echo 'bar'; }