| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 19 | 
| Code Lines | 10 | 
| Lines | 19 | 
| Ratio | 100 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 31 | View Code Duplication | protected function createFactoriesFile()  | 
            |
| 32 |     { | 
            ||
| 33 |         $path = $this->config->getFactoryDirectory('ModelFactory.php'); | 
            ||
| 34 | |||
| 35 |         if (!file_exists($path)) { | 
            ||
| 36 | $stub = file_get_contents(__DIR__.'/Stubs/factory.stub');  | 
            ||
| 37 | |||
| 38 | $this->writeFile(  | 
            ||
| 39 | $path,  | 
            ||
| 40 | $stub  | 
            ||
| 41 | );  | 
            ||
| 42 | |||
| 43 |             $this->output->writeInfo('Created ModelFactory file.'); | 
            ||
| 44 | |||
| 45 | return true;  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | return false;  | 
            ||
| 49 | }  | 
            ||
| 50 | |||
| 74 |