Conditions | 5 |
Paths | 9 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 5 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
20 | 1 | public function merge(InputInterface $input, Configuration $config) |
|
21 | { |
||
22 | 1 | foreach ($input->getArguments() as $argument => $value) { |
|
23 | 1 | if ($input->hasArgumentSet($argument)) { |
|
|
|||
24 | 1 | $config->set($argument, $value); |
|
25 | 1 | } else { |
|
26 | 1 | $input->setArgument($argument, $config->get($argument)); |
|
27 | 1 | } |
|
28 | 1 | } |
|
29 | 1 | ||
30 | 1 | foreach ($input->getOptions() as $option => $value) { |
|
31 | 1 | if ($input->hasOptionSet($option)) { |
|
32 | $config->set($option, $value); |
||
33 | } else { |
||
34 | $input->setOption($option, $config->get($option)); |
||
35 | } |
||
36 | } |
||
37 | 1 | } |
|
38 | } |
||
39 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.