| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public static function build(InputInterface $input, Config $config, Repository $repository): Template |
||
| 22 | { |
||
| 23 | if ($input->getOption('run-mode') === Template::DOCKER) { |
||
| 24 | return new Docker( |
||
| 25 | realpath($repository->getRoot()), |
||
| 26 | getcwd() . '/vendor', |
||
| 27 | $input->getOption('container-name') |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | return new Local( |
||
| 32 | realpath($repository->getRoot()), |
||
| 33 | getcwd() . '/vendor', |
||
| 34 | realpath($config->getPath()) |
||
| 35 | ); |
||
| 37 | } |