我正在寻找一个规则(或多个规则的组合)来包装超长关联数组。也许基于最大线长?(我不是 CS Fixer 专家,如果这是一个愚蠢的想法,请见谅)
// Remains Untouched
$foo = ['bar' => $bar, 'biz' => $biz];
// Long Assoc Arrays are wrapped and stacked
$foo = ['bar' => $bar, 'biz' => $biz, 'anotherSweetKey' => $totallRadVar, 'longEnoughToBreakLineLengthMax' => $something ];
$foo = [
'bar' => $bar,
'biz' => $biz,
'anotherSweetKey' => $totallRadVar,
'longEnoughToBreakLineLengthMax' => $something
];
如果有人知道这是否已经存在,我很想知道使用哪个规则。谢谢。