Code Formatter: Method Chaining

Is it possible to format code like this?

<?php
$person = new Person();
$person->setName('Flo')

->setAge(21)

->displayPerson();

?>


The best i have achieved is:
<?php
$person = new Person();
$person->setName('Flo')

->setAge(21)

->displayPerson();

?>


I didnt find any option to insert an indent before the ->, is this possible?
1 comment
Comment actions Permalink

After trying some more options i think it`s really impossible right now ... created a Bug Ticket, please vote for http://youtrack.jetbrains.net/issue/WI-1861

0

Please sign in to leave a comment.