| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | function writeConfigFile(array $values) |
||
|
|
|||
| 30 | { |
||
| 31 | $content = $this->fileContent($values); |
||
| 32 | |||
| 33 | $path = base_path('config/zoutapps/branding.php'); |
||
| 34 | |||
| 35 | if (!$this->filesystem->isDirectory(base_path('config/zoutapps'))) { |
||
| 36 | $this->filesystem->makeDirectory(base_path('config/zoutapps')); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->filesystem->put($path, $content); |
||
| 40 | |||
| 41 | $this->command->info("Config file create at <comment>{$path}</comment>"); |
||
| 42 | } |
||
| 43 | |||
| 56 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.