| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 19 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 54 | View Code Duplication | protected function createSeederFile() |
|
| 55 | { |
||
| 56 | $path = $this->config->getSeedDirectory('DatabaseSeeder.php'); |
||
| 57 | |||
| 58 | if (!file_exists($path)) { |
||
| 59 | $stub = file_get_contents(__DIR__.'/Stubs/seeder.stub'); |
||
| 60 | |||
| 61 | $this->writeFile( |
||
| 62 | $this->config->getSeedDirectory('DatabaseSeeder.php'), |
||
| 63 | $stub |
||
| 64 | ); |
||
| 65 | |||
| 66 | $this->output->writeInfo('Created DatabaseSeeder file.'); |
||
| 67 | |||
| 68 | return true; |
||
| 69 | } |
||
| 70 | |||
| 71 | return false; |
||
| 72 | } |
||
| 73 | } |
||
| 74 |