kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

phpfmt.wp - What does "WP style" mean? #149

Open sephentos opened 3 weeks ago

sephentos commented 3 weeks ago

phpfmt.wp | boolean | activate WP style

What exactly does the WP parameter stand for? Wordpress styles? What exactly happens when this is active? In the source code, I only see that a --wp parameter is set as arg.

driade commented 3 weeks ago

Hi @sephentos good morning. This option activates the same rules as PSR2 and additionally other (WPResizeSpaces) to match the WP style guide. Please see https://github.com/driade/phpfmt8/issues/33