I have some questions regards to phpstorm code reformat.
I have long line and single line.
$this->getSelect()->join('some_code_here')->join('some_code_here')->join('some_code_here')->join('some_code_here')->join('some_code_here');
$this->getSelect()->join('some_code_here')->join('some_code_here');
I want to configure setting:
Code style / PHP / Wrapping and Braces / Chained method calls
This setting has 4 variants:
Do not wrap (1)
Wrap if long (2)
Crop down if long (3)
Wrap always (4)
When I choose 2 or 3 I have following:
$this->getSelect()->join('some_code_here')->join('some_code_here')->join('some_code_here')->join(
'some_code_here'
)->join('some_code_here');
$this->getSelect()->join('some_code_here')->join('some_code_here');
When I choose 4th, I have:
$this->getSelect()
->join('some_code_here')
->join('some_code_here')
->join('some_code_here')
->join('some_code_here')
->join('some_code_here');
$this->getSelect()
->join('some_code_here')
->join('some_code_here');
My question is:
Is there any possibility wrap every call from new line, only if method is very long (more than 120 symbols).
Expected result:
$this->getSelect()
->join('some_code_here')
->join('some_code_here')
->join('some_code_here')
->join('some_code_here')
->join('some_code_here');
$this->getSelect()->join('some_code_here')->join('some_code_here');