I’m working with PHP in IntelliJ 2017.3 (Same issue in PhpStorm). And I can’t find an option in the Code Style to solve this issue I’m having. When reformatting it makes a line break on both sides of the anonymous functions. But I would like to keep the function declaration and closing brace inline. Is there some setting I’m missing?
Tag: code-formatting
How can I format PHP files with HTML markup in Visual Studio Code?
I’m using Laravel so all the views are .blade.php files. Visual Studio Code won’t format the HTML because of the PHP extension. I removed the “blade” part of the filename, but it still isn’t formatting the files properly (via Alt+Shift+F). I also tried about five extensions, but none of them do the reformatting. How can I format .blade.php files in
Objective reasons for using spaces instead of tabs for indentation?
Are there objective reasons for using spaces instead of tabs for indenting files as per PSR-2 standard, can someone provide: facts, references, specific expertise on which PSR-2 standard is based? Authors of PSR-2 standard had in mind something more than “look and feel”, something more than just opinion based thing, and lots of people have trouble understanding why spaces are