The reason - readability. Suggested by @xepozz.
$object->method1()
->method2();
Even if there are only 2 methods and it fits on 1line. Or are there any exceptions? Not sure about $object->formatter->format() though.
If everyone is OK with that, I'll add it to the code style.
The reason - readability. Suggested by @xepozz.
Even if there are only 2 methods and it fits on 1line. Or are there any exceptions? Not sure about
$object->formatter->format()though.If everyone is OK with that, I'll add it to the code style.