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