Code Style - PHP - Blank Lines Question

What does Minimum Blank Lines - Before Method Body do? I've got it set to 1, but Formatter seems to ignore that.

method_body_blank_line1.JPG

0
7 comments

Note no blank line in between the property $b and the method bar
before.png

after.png

Adding 1 to the setting has now added 1 blank line before the method bar()

0

That's what I thought, and the rule you indicate does work, but the one I'm referring to does not....

0

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.

0

Huh? That's not the method body to me, that's the method itself. The body in your example starts at

a$ =

0

I'm not saying its right, I was saying what changed with the setting.

Its a bug.

0

"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

0

Please sign in to leave a comment.