While writing code in PhpStorm the folded code blocks unfold automatically. I don't know why and this is making me real crazy. Somebody please help.
It's a bug -- very annoying bug.
https://youtrack.jetbrains.com/issue/WEB-13995 -- watch this ticket (star/vote/comment) to get notified on progress.
UPDATE: Current status of the corresponding ticket is "resolved" so it must be working OK in WebStorm v11/PhpStorm v10.