From 76674be735dc7b58973cdadbe753554872fd7ce7 Mon Sep 17 00:00:00 2001 From: bebnev Date: Sat, 1 Aug 2015 17:13:43 +0400 Subject: [PATCH] fix model docBlocks duplicates Add each parsed model to ignore list, so if it exists more than once it will not be parsed twice. --- src/Console/ModelsCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 019f0af..07bc9ff 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -181,6 +181,7 @@ class ModelsCommand extends Command $this->getPropertiesFromMethods($model); $output .= $this->createPhpDocs($name); + $ignore[] = $name; } catch (\Exception $e) { $this->error("Exception: " . $e->getMessage() . "\nCould not analyze class $name."); }