PhpStorm PHP code format aligns concatenated strings

I break up long strings into concatenated parts to avoid my code overflowing the right margin, like this:

When I run code format, PhpStorm aligns the parts like this:

I can't find where in the PHP Code Style settings to configure that formatting, can anyone point me to it?


Hi there,

AFAIK there is no such option available, at all.

The usual practice in such cases is to split the actual function call (parameters) to multiple lines (each on new line or just those that do not fit). For example:

'some string here'
// or
$this->assertEquals( $param1, $params2,
'some string here' );

Ah OK, thanks Andriy, I'll do that then.


Please sign in to leave a comment.