mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
Clarify trait/interface message in model generator
Makes it clear why a trait/interface is skipped. Fixes #98
This commit is contained in:
@@ -175,6 +175,8 @@ class ModelsCommand extends Command
|
|||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->error("Exception: " . $e->getMessage() . "\nCould not analyze class $name.");
|
$this->error("Exception: " . $e->getMessage() . "\nCould not analyze class $name.");
|
||||||
}
|
}
|
||||||
|
} elseif (interface_exists($name) || (function_exists('trait_exists') && trait_exists($name))) {
|
||||||
|
$this->info("Skipping interface/trait $name");
|
||||||
} else {
|
} else {
|
||||||
$this->error("Class $name does not exist");
|
$this->error("Class $name does not exist");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user