| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 7 | public function build(ImageRepository $imageSet) |
|
| 32 | { |
||
| 33 | 7 | $this->files->put( |
|
| 34 | 7 | $this->porterLibrary->dockerComposeFile(), |
|
| 35 | 7 | view("{$imageSet->getName()}::base")->with([ |
|
| 36 | 7 | 'home' => setting('home'), |
|
| 37 | 7 | 'host_machine_name' => setting('host_machine_name'), |
|
| 38 | 7 | 'activePhpVersions' => PhpVersion::active()->get(), |
|
| 39 | 7 | 'useMysql' => setting('use_mysql') == 'on', |
|
| 40 | 7 | 'useRedis' => setting('use_redis') == 'on', |
|
| 41 | 7 | 'useBrowser' => setting('use_browser') == 'on', |
|
| 42 | 7 | 'useDns' => setting('use_dns') == 'on' || setting_missing('use_dns'), |
|
| 43 | 7 | 'imageSet' => $imageSet, |
|
| 44 | 7 | 'libraryPath' => $this->porterLibrary->path(), |
|
| 45 | 7 | ])->render() |
|
| 46 | ); |
||
| 57 |