| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | 1 | public function merge(InputInterface $input, Configuration $config) |
|
| 21 | { |
||
| 22 | 1 | $missingArguments = $this->getKeysOfNullValues($input->getArguments()); |
|
| 23 | 1 | foreach ($missingArguments as $key) { |
|
| 24 | 1 | $input->setArgument($key, $config->get($key)); |
|
| 25 | 1 | } |
|
| 26 | 1 | $missingOptions = $this->getKeysOfNullValues($input->getOptions()); |
|
| 27 | 1 | foreach ($missingOptions as $key) { |
|
| 28 | 1 | $input->setOption($key, $config->get($key)); |
|
| 29 | 1 | } |
|
| 30 | 1 | $config->merge(array_merge($input->getArguments(), $input->getOptions())); |
|
| 31 | 1 | } |
|
| 32 | |||
| 41 | } |