Conditions | 7 |
Paths | 16 |
Total Lines | 24 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 7 |
Changes | 3 | ||
Bugs | 1 | 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 | $configValue = $config->get($argument); |
|
27 | 1 | if ($configValue !== null) { |
|
28 | 1 | $input->setArgument($argument, $configValue); |
|
29 | 1 | } |
|
30 | 1 | } |
|
31 | 1 | } |
|
32 | |||
33 | foreach ($input->getOptions() as $option => $value) { |
||
34 | if ($input->hasOptionSet($option)) { |
||
35 | $config->set($option, $value); |
||
36 | } else { |
||
37 | 1 | $configValue = $config->get($option); |
|
38 | if ($configValue !== null) { |
||
39 | 1 | $input->setOption($option, $configValue); |
|
40 | } |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |
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.