Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Unable to format class on both side in php #56

Open
biswajitpaul01 opened this issue Jan 25, 2020 · 1 comment
Open

Unable to format class on both side in php #56

biswajitpaul01 opened this issue Jan 25, 2020 · 1 comment

Comments

@biswajitpaul01
Copy link

biswajitpaul01 commented Jan 25, 2020

It is unable to format below laravel code:

    protected $policies = [
        User::class => UserPolicy::class,
        Role::class => RolePolicy::class,
        Permission::class => PermissionPolicy::class,
        Building::class => BuildingPolicy::class,
        Apartment::class => ApartmentPolicy::class,
        Application::class => ApplicationPolicy::class,
    ];

When I select policy values and align using the keyboard shortcut, it becomes like below which is not valid syntax in php.

        User:       : class => UserPolicy:       : class,
        Role:       : class => RolePolicy:       : class,
        Permission: : class => PermissionPolicy: : class,
        Building:   : class => BuildingPolicy:   : class,
        Apartment:  : class => ApartmentPolicy:  : class,
        Application:: class => ApplicationPolicy:: class,
@Philam18
Copy link

Philam18 commented Jul 8, 2020

I'm using 1.1.6. Any tokens after the scope resolution operator are spaced:

ProfilerGeneral:: ID =>
    [
        ...
    ],

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants