| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 4 | public function build(ImageRepository $imageSet) |
|
| 26 | { |
||
| 27 | 4 | $lib = app(PorterLibrary::class); |
|
| 28 | |||
| 29 | 4 | $this->files->put( |
|
| 30 | 4 | $lib->dockerComposeFile(), |
|
| 31 | 4 | view("docker_compose.{$imageSet->getName()}.base")->with([ |
|
| 32 | 4 | 'home' => setting('home'), |
|
| 33 | 4 | 'host_machine_name' => setting('host_machine_name'), |
|
| 34 | 4 | 'activePhpVersions' => PhpVersion::active()->get(), |
|
| 35 | 4 | 'useMysql' => setting('use_mysql') == 'on', |
|
| 36 | 4 | 'useRedis' => setting('use_redis') == 'on', |
|
| 37 | 4 | 'useBrowser' => setting('use_browser') == 'on', |
|
| 38 | 4 | 'imageSet' => $imageSet->getName(), |
|
| 39 | 4 | 'imageSetPath' => $imageSet->getPath(), |
|
| 40 | 4 | 'libraryPath' => $lib->path(), |
|
| 41 | 4 | ])->render() |
|
| 42 | ); |
||
| 53 |