You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got something for you. With v0.6-beta you will be able to use the profile configuration option to select a code style profile from gossi/php-code-profiles. Set it to psr-2. That said, I have no idea whether I configured this stupid space-oriented code style correctly, send PR to the referenced repo if something is wrong.
Second did I implemented the gossi/php-code-formatter as post processing after code generation. Activate it by setting the new enableFormatting option to true. It will use the given profile and run the formatting based on that. I started the php-code-formatter as an experiment back in time and it basically never went past that. Though I think this is still one of the best options today. Given that, the formatter is still very experimental and if you encounter something wrong, open an issue over there. If you want it fixed, send a PR (the wiki contains a good amount of documentation). Chances I will work on this are very, very low. Just you are aware of this.
Please share your experience using these two options and if there aren't any critical use-cases, I can turn this beta into stable.
The text was updated successfully, but these errors were encountered:
Hello PSR-2 Lemmings,
I've got something for you. With
v0.6-beta
you will be able to use theprofile
configuration option to select a code style profile from gossi/php-code-profiles. Set it topsr-2
. That said, I have no idea whether I configured this stupid space-oriented code style correctly, send PR to the referenced repo if something is wrong.Second did I implemented the gossi/php-code-formatter as post processing after code generation. Activate it by setting the new
enableFormatting
option to true. It will use the givenprofile
and run the formatting based on that. I started thephp-code-formatter
as an experiment back in time and it basically never went past that. Though I think this is still one of the best options today. Given that, the formatter is still very experimental and if you encounter something wrong, open an issue over there. If you want it fixed, send a PR (the wiki contains a good amount of documentation). Chances I will work on this are very, very low. Just you are aware of this.Please share your experience using these two options and if there aren't any critical use-cases, I can turn this beta into stable.
The text was updated successfully, but these errors were encountered: