vscode-better-align
vscode-better-align copied to clipboard
Problems with PHP formatting
hi,i have a piece of code. As follows
$college_jg_id = $admin->college_jg_id;
$year = $admin->year;
$year_arr = explode(',', $year);
$class_No_id = $admin->class_No_id;
$class_No_id_arr = explode(',', $class_No_id);
$this->where = ['college_jg_id' => $college_jg_id];
$this->whereIn[] = ['grade', 'in', $year_arr];
$this->whereIn[] = ['class_No_id', 'in', $class_No_id_arr];
When I need to format. The following situation occurs where the code is not aligned but the equals sign is aligned $college_jg_id = $admin->college_jg_id; $year = $admin->year; $year_arr = explode(',', $year); $class_No_id = $admin->class_No_id; $class_No_id_arr = explode(',', $class_No_id); $this->where = ['college_jg_id' => $college_jg_id]; $this->whereIn[] = ['grade', 'in', $year_arr]; $this->whereIn[] = ['class_No_id', 'in', $class_No_id_arr];
see the link to the picture https://www.hualigs.cn/image/63bfabdc911d8.jpg expected effect https://www.hualigs.cn/image/63bfad4213b45.jpg
Should be a bug, I will try to fix this.