Suggestion for keeping an consistent, automatic code style (with php-cs-fixer)
I noticed a few comments about Codestyle in PRs.
To keep maintainer and contributors happy, I'd suggest to automate the codestyle. That way everyone can concentrate on the code(quality) and not on the codestyle.
Of course a code-formatter does not everything 1000% the way one wants. It's just not customizable entirely.
However this leads to a more consistent codestyle (thats why PSR-x was born) throughout different projects - which I think is a good thing.
Used: https://cs.symfony.com/doc/usage.html
Cause I feel like this has become a defactor-standard.
Based it on PSR-12, but a lot needs customization. Non "standard" are in this repo:
- the blank line after the opening class brace
- the location of the namespace
- the indentation from chained method calls (this looks almost broken in places?)
Anyway, this is just a suggestion, happy to adjust whatever you want (and we can).
Would probably add this to the pipeline, because otherwise no one runs this, and WHEN someone runs it and wants to contribute everything would be outdated.
Of course we can disable the method chaining rules and leave it in "free"-mode as is right now.
Hope you like it!