Closed nisarul-dev closed 1 year ago
Hi, there you're. I've just pushed an initial release for WP which works like PSR2 with the difference you asked for.
I'm going to coordinate with the vscode team for the update to be available, this package is mostly intended to work with Sublime Text.
Thanks!
Issues:
As per WordPress Coding Standard, an array should be defined like this: (space at the beginning and closing of parentheses or square brackets) Source: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#declaring-arrays
As per WordPress Coding Standard, spaces while accessing array items will be like this: Source: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#space-usage
Please, solve this issue by introducing some configurations regarding "[]" (Square brackets) so that WordPress Developers can write PHP and use the vscode-phpfmt with more ease.
Thank you.