kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

const with name PRIVATE etc name case being changed #130

Closed ili101 closed 7 months ago

ili101 commented 7 months ago
<?php

namespace App\Entity;

class User
{
    public const PRIVATE = 5;
    public const PUBLIC = 10;
    public const PROTECTED = 15;
    public const private = 25;
    public const public = 30;
    public const protected = 35;
    public const TEST = 45;
}

After:

<?php

namespace App\Entity;

class User
{
    public const private  = 5;
    public const public  = 10;
    public const protected  = 15;
    public const private  = 25;
    public const public  = 30;
    public const protected  = 35;
    public const TEST = 45;
}

Expected no change of name case or spaces after name.

driade commented 7 months ago

Thanks a lot @ili101, this should be already fixed. May you please confirm?

ili101 commented 7 months ago

Extra space is still added before the "=" on all the example lines except "TEST". Other than that the code itself works now.

driade commented 7 months ago

Fix, thanks!

ili101 commented 7 months ago

Thank you