From fd11d89fa78bfccecaf45e8a911d16803b9fcb0e Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 11 Aug 2014 11:01:19 +0200 Subject: [PATCH] Clarify trait/interface message in model generator Makes it clear why a trait/interface is skipped. Fixes #98 --- src/Console/ModelsCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 5f26a2a..02f3edc 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -175,6 +175,8 @@ class ModelsCommand extends Command } catch (\Exception $e) { $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 { $this->error("Class $name does not exist"); }