wp-phptidy icon indicating copy to clipboard operation
wp-phptidy copied to clipboard

Automatically format PHP code to meet the WordPress Coding Standards

Results 5 wp-phptidy issues
Sort by recently updated
recently updated
newest added

indents -> on new line: func()->x() \t->func(); don't know if that's in the right place - but it works ;)

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 ) ); ```...