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

php formating error

Open sinanouri opened this issue 2 years ago • 2 comments

hi when i try to format codes like this wrong formatting happens

    public function index()
    {
        $x = 'test';
        if (
            $x === 'nott test'
            || $x === 0
            || $x !== 'test'
        ) {
            return false;
        } else {
            return true;
        }
    }

becomes

    public function index()
    {
        $x = 'test';
        if (
            $x ==    = 'nott test'
            || $x == = 0
            || $x !== 'test'
        ) {
            return false;
        } else {
            return true;
        }
    }

sinanouri avatar Jan 08 '23 11:01 sinanouri

Seems something break format for ===, I will take a look this.

chouzz avatar Jan 10 '23 02:01 chouzz

Current implemention didn't support format like ===, but I will find a way to support this.

chouzz avatar Jan 10 '23 15:01 chouzz