MiloslavBeno Maybe this can be implemented via an option "Do not trim spaces in array values" as the first step, and later - some improvement like auto-alignment?
And the row-based formatting is also frequently used not only in single-line arrays but in multiline too:
$array = [
'name' => 'Vasya',
'surname'=> 'Kolyanych',
'familyname' => 'Pupkin',
];