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