Style change of def starting with if

* When a def starts with if and is not a oneliner the if
  should be on a new line.
* The reason is that it might be easy to miss the if when
  reading the code.
Merge pull request #1033 from akka/wip-def-if-patriknw

Style change of def starting with if