mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b3d5cab7c |
@@ -935,14 +935,14 @@ class ModelsCommand extends Command
|
|||||||
|
|
||||||
// remove the already existing tag to prevent duplicates
|
// remove the already existing tag to prevent duplicates
|
||||||
foreach ($phpdoc->getTagsByName('mixin') as $tag) {
|
foreach ($phpdoc->getTagsByName('mixin') as $tag) {
|
||||||
if($tag->getContent() === $eloquentClassNameInModel) {
|
if ($tag->getContent() === $eloquentClassNameInModel) {
|
||||||
$phpdoc->deleteTag($tag);
|
$phpdoc->deleteTag($tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpdoc->appendTag(Tag::createInstance('@mixin ' . $eloquentClassNameInModel, $phpdoc));
|
$phpdoc->appendTag(Tag::createInstance('@mixin ' . $eloquentClassNameInModel, $phpdoc));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->phpstorm_noinspections) {
|
if ($this->phpstorm_noinspections) {
|
||||||
/**
|
/**
|
||||||
* Facades, Eloquent API
|
* Facades, Eloquent API
|
||||||
|
|||||||
Reference in New Issue
Block a user