Clarify trait/interface message in model generator

Makes it clear why a trait/interface is skipped.
Fixes #98
This commit is contained in:
Barry vd. Heuvel
2014-08-11 11:01:19 +02:00
parent c01769aebd
commit fd11d89fa7
+2
View File
@@ -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");
} }