Skip to content

add an option to use shortned qualifiers with importsΒ #1728

@HichemTab-tech

Description

@HichemTab-tech

Code styles often favor imports over Qualifiers. For example, instead of:

/**
* @method static \Illuminate\Database\Eloquent\Builder<static>|MyModel query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|MyModel querysortByRequest()

*/

we should have:

use Illuminate\Database\Eloquent\Builder;

/**
* @method static Builder<static>|MyModel query()
* @method static Builder<static>|MyModel querysortByRequest()
*/

In order to do that we can just have an option on the command, something like:

ide-helper:models -RW --optimized-qualifiers

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions