Code Style - PHP - Blank Lines Question Keith Davis Created October 18, 2011 19:24 What does Minimum Blank Lines - Before Method Body do? I've got it set to 1, but Formatter seems to ignore that.
Note no blank line in between the property $b and the method bar
Adding 1 to the setting has now added 1 blank line before the method bar()
That's what I thought, and the rule you indicate does work, but the one I'm referring to does not....
The Before Method Body is the one that I changed.
Set it to 0
Remove the blank line between var $b and function bar()
Then set it back to 1 and it will apply a blank line.
I do notice that if Around method is set to 0 the Before method body fails.
Huh? That's not the method body to me, that's the method itself. The body in your example starts at
a$ =
I'm not saying its right, I was saying what changed with the setting.
Its a bug.
"Before method body" option is not supported and is displayed in UI by mistake. I have filed a bug report for that: http://youtrack.jetbrains.net/issue/WI-8011
Thanks