pretty-php icon indicating copy to clipboard operation
pretty-php copied to clipboard

The opinionated PHP code formatter

Results 16 pretty-php issues
Sort by recently updated
recently updated
newest added

As per PSR-12, the default line length "SHOULD NOT" exceed 80 characters and "MUST" have a soft limit of 120 characters.

component: PSR-12
component: code style

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`

component: tests

A rough starting point: > `.OH.` is applied if: > > - the open bracket of the block is not followed by a newline, AND > - either: > -...

documentation

I have compared `--preset symfony` with PHP CS Fixer and found two minor differences. I thought you may be interested. ## Original ```php