Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy
GNU General Public License v2.0
109
stars
30
forks
source link
chained methods & anonymous functions & arrays #11
Open
tobsn opened 11 years ago
when I have a lot of chained methods I always break them over and indent once like this:
same applies to anonymous functions:
right now it becomes this but it should NOT indent and look like above:
another issue is indenting of arrays over multiple lines:
right now this happens because of the two round braces, same as with the anonymous function:
it should become:
is there any way to get that into the tidy?
thanks! :)
I also added an issue for wp-phptidy: https://github.com/scribu/wp-phptidy/issues/1 and pulled a patch for the indenting of object operators: https://github.com/scribu/wp-phptidy/issues/2
update:
I fixed the -> operator indenting - file: wp-phptidy.php line 1541: