| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | public function run() |
||
| 8 | { |
||
| 9 | $seeders = $this->seeders; |
||
| 10 | |||
| 11 | $this->command->info('Seeding ' . __CLASS__ . '...'); |
||
| 12 | $this->command->getOutput()->progressStart(count($seeders)); |
||
| 13 | |||
| 14 | foreach ($seeders as $class => $is_class) { |
||
| 15 | if ($is_class) { |
||
| 16 | $this->call($class, true); |
||
|
|
|||
| 17 | } else { |
||
| 18 | $method = $class; |
||
| 19 | $this->$method(); |
||
| 20 | } |
||
| 21 | $this->command->getOutput()->progressAdvance(); |
||
| 22 | } |
||
| 23 | $this->command->getOutput()->progressFinish(); |
||
| 24 | } |
||
| 26 |