0

I would like to insert a line break at every object method on auto reformat into PhpStorm :

eg :

function (object $object)
{
    $object->method1()->method2()->method3();

    // select and press ctrl + alt + l

    $object
        ->method1()
        ->method2()
        ->method3()
    ;
}

I use already use a .editorconfig file but I have no clue to found the right parameter!

LazyOne
  • 158,824
  • 45
  • 388
  • 391
  • 2
    PhpStorm calls it "chained method calls". This is basically the same question: [PHPStorm. Reformat code. Chained method call wrapping](https://stackoverflow.com/questions/31154610/phpstorm-reformat-code-chained-method-call-wrapping). Not sure if the answer solves the problem or applies to current version. – Álvaro González Nov 09 '20 at 10:57
  • @ÁlvaroGonzález Yep You found it ! Thx ! – Dylan Lambert Nov 09 '20 at 11:18

0 Answers0