| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 22 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 29 | public function fire() | ||
| 30 |     { | ||
| 31 |         $database = $this->argument('database'); | ||
| 32 | // Display some helpfull info | ||
| 33 |         if (empty($database)) { | ||
| 34 |             $this->comment("Preparing the seeder class for database {$this->getDatabaseName()}"); | ||
| 35 |         } else { | ||
| 36 |             $this->comment("Preparing the seeder class for database {$database}"); | ||
| 37 | } | ||
| 38 | |||
| 39 | // Grab the options | ||
| 40 |             $this->fireAction('seed', $database); | ||
| 41 | // Symfony style block messages | ||
| 42 |             $formatter = $this->getHelperSet()->get('formatter'); | ||
| 43 | $filename = $this->getFilename(); | ||
| 44 | $errorMessages = [ | ||
| 45 | 'Success!', | ||
| 46 |                                "Database seed class generated in: {$filename}", | ||
| 47 | ]; | ||
| 48 | $formattedBlock = $formatter->formatBlock($errorMessages, 'info', true); | ||
| 49 | $this->line($formattedBlock); | ||
| 50 | } | ||
| 51 | |||
| 63 |