Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
40 | 5 | public static function build(InputInterface $input, Config $config, Repository $repository): Template |
|
41 | { |
||
42 | 5 | if ($input->getOption('run-mode') === Template::DOCKER) { |
|
43 | 1 | return new Docker( |
|
44 | 1 | realpath($repository->getRoot()), |
|
45 | 1 | getcwd() . '/vendor', |
|
46 | 1 | $input->getOption('container') |
|
47 | ); |
||
48 | } |
||
49 | |||
50 | 4 | return new Local( |
|
51 | 4 | realpath($repository->getRoot()), |
|
52 | 4 | getcwd() . '/vendor', |
|
53 | 4 | realpath($config->getPath()) |
|
54 | ); |
||
57 |