pretty-php
pretty-php copied to clipboard
The opinionated PHP code formatter
As per PSR-12, the default line length "SHOULD NOT" exceed 80 characters and "MUST" have a soft limit of 120 characters.
pretty-php adds 2 spaces before the comment. expected 1. Not sure if this is intentional, but I've never seen this style before. ```php
May require detection of terminating statements / `// No break` separators.
Also consider: - [ ] adding newlines after commas in this scenario - [ ] forcing this style whenever an arm breaks over multiple lines
- [ ] Improve documentation to clarify why tokens are eligible or ineligible for alignment - [ ] Optimize for performance - [ ] Test "relaxed" mode with a view...
- [ ] Split parts of `TokenTypeTest` out to `TokenTypeIndexTest`
A rough starting point: > `.OH.` is applied if: > > - the open bracket of the block is not followed by a newline, AND > - either: > -...
I have compared `--preset symfony` with PHP CS Fixer and found two minor differences. I thought you may be interested. ## Original ```php