If the extension is what I think, sophisticode 's php-formatter , seeing the description:
A wrapper for the Sensiolabs PHP CS Fixer. Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible).
I will tell you that the brace on the next line to the declaration for a PHP method / function is one of the specifications of the PSR-2 standard, which is usually applied by default.
You should start with the file as complete as possible and discard the ones you don't want to use. The rule that performs the behavior you want to avoid is this: braces , so don't add it to the list of rules .
You can edit the configuration of the transformations of the PHP Formatter extension through:
The style you want to change is named Allman, and the name in the extension is AllmanStyleBraces .
Interestingly, there are more writing methods apart from Allman:
You can see more information here regarding the preferences you want to change, apart from AllmanStyleBraces in PHP Formatter.
In another area of Stack Overflow they also had the same problem, but in reverse.
If the extension is what I think, sophisticode 's php-formatter , seeing the description:
I will tell you that the brace on the next line to the declaration for a PHP method / function is one of the specifications of the PSR-2 standard, which is usually applied by default.
You must change the "rules" that the tool applies if you don't want to use them. The page with the configuration instructions is as follows: https://github.com/Dickurt/vscode-php-formatter/wiki/Configuration . For the use you want, you must create a configuration file in which the rules to be applied are specified , select the ones you need from the list.
The configuration file that comes as an example is this:
You should start with the file as complete as possible and discard the ones you don't want to use. The rule that performs the behavior you want to avoid is this: braces , so don't add it to the list of rules .