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?

2 comments
Comment actions Permalink

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:

$this->assetEquals(
$param1,
$param2,
'some string here'
);
// or
$this->assertEquals( $param1, $params2,
'some string here' );
0
Comment actions Permalink

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

0

Please sign in to leave a comment.