vscode-phpfmt icon indicating copy to clipboard operation
vscode-phpfmt copied to clipboard

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

Open sephentos opened this issue 1 year ago • 1 comments

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.

sephentos avatar Jun 13 '24 23:06 sephentos

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

driade avatar Jun 14 '24 06:06 driade