Where is the option to control property access spacing when formatting?

I'm almost sure that there used to be an option to control this formatting case:

function __set( $k, $v ) {
    $this->values_input->{$k} = $v;
}

vs

function __set( $k, $v ) {
    $this->values_input->{ $k } = $v;
}

I have a huge project that has the second case everywhere but when I try to format the code it removes the spaces around $k.

Has it been removed or am I missing something? I have almost all spacing cases checked in PhpStorm settings and the few unchecked don't seem to be relevant.

0
1 comment

Unfortunately, there is no way to control this behaviour at the moment. I have submitted a corresponding feature request:
https://youtrack.jetbrains.com/issue/WI-71891/Formatter-Allow-to-control-spaces-within-curly-braces-in-property-access

 

Please feel free to vote & follow to be notified on its progress.

1

Please sign in to leave a comment.