erichard / SublimePHPCompanion

A Sublime Text plugin that provides cool stuff for PHP 5.3+ coding session.
MIT License
932 stars 115 forks source link

remove the FQC automatically when using find_use #56

Closed ctf0 closed 7 years ago

ctf0 commented 9 years ago

is there a chance to add the functionality to remove the inline namespace once we import it as a Use case ? Ex..


// we excute the find_use cmnd
$factory->define(App\Http\Models\User::class, function () {});

and the result become


use App\Http\Models\User;

$factory->define(User::class, function () {});

rather than


use App\Http\Models\User;

$factory->define(App\Http\Models\User::class, function () {});
erichard commented 8 years ago

Could be an interesting feature. I will look at it.

ctf0 commented 8 years ago

awesome, thanx :metal: