vscode-better-align icon indicating copy to clipboard operation
vscode-better-align copied to clipboard

Problems with PHP formatting

Open geekchenzx opened this issue 2 years ago • 1 comments
trafficstars

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

geekchenzx avatar Jan 12 '23 06:01 geekchenzx

Should be a bug, I will try to fix this.

chouzz avatar Jan 17 '23 03:01 chouzz