wp-phptidy
wp-phptidy copied to clipboard
Automatically format PHP code to meet the WordPress Coding Standards
indents -> on new line: func()->x() \t->func(); don't know if that's in the right place - but it works ;)
First pass.
This is for adding space after NOT operators to conform with the WordPress PHP Coding Standards. See the section on logical comparisons under spacing: https://make.wordpress.org/core/handbook/coding-standards/php/#space-usage
`$var.'something'` should become `$var . 'something'`.
``` register_post_type( 'movie', array( 'label' => 'Movies', 'public' => true ) ); ``` is transformed into: ``` php register_post_type( 'movie', array( 'label' => 'Movies', 'public' => true ) ); ```...