我想知道是否可以将对齐列中的字段行为从PHPStorm复制到PHP-CS-Fixer
因为你有了这个:
var $numbers = ["one", "two", "three", "four", "five", "six"];
var $v = 0;
public $path = "root";
const FIRST = 'first';
const SECOND = 0;
const Z = -1;而不是:
var $numbers = ["one", "two", "three", "four", "five", "six"];
var $v = 0;
public $path = "root";
const FIRST = 'first';
const SECOND = 0;
const Z = -1;对齐=是通过使用以下指令完成的:
'binary_operator_spaces' => [
'default' => 'align',
'operators' => ['=>' => 'align']
],但是我也找不到如何对齐变量名的方法
发布于 2021-04-03 06:03:44
PHP CS Fixer没有这样的功能,如果你有时间实现,我会推荐this作为开始。
https://stackoverflow.com/questions/63797520
复制相似问题