Conditions | 7 |
Paths | 16 |
Total Lines | 24 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 20 |
CRAP Score | 7 |
Changes | 3 | ||
Bugs | 1 | Features | 2 |
1 | <?php |
||
20 | 2 | public function merge(InputInterface $input, Configuration $config) |
|
21 | { |
||
22 | 2 | foreach ($input->getArguments() as $argument => $value) { |
|
23 | 2 | if ($input->hasArgumentSet($argument)) { |
|
|
|||
24 | 1 | $config->set($argument, $value); |
|
25 | 1 | } else { |
|
26 | 2 | $configValue = $config->get($argument); |
|
27 | 2 | if ($configValue !== null) { |
|
28 | 1 | $input->setArgument($argument, $config->get($argument)); |
|
29 | 1 | } |
|
30 | } |
||
31 | 2 | } |
|
32 | |||
33 | 2 | foreach ($input->getOptions() as $option => $value) { |
|
34 | 2 | if ($input->hasOptionSet($option)) { |
|
35 | 1 | $config->set($option, $value); |
|
36 | 1 | } else { |
|
37 | 2 | $configValue = $config->get($option); |
|
38 | 2 | if ($configValue !== null) { |
|
39 | 1 | $input->setOption($option, $configValue); |
|
40 | 1 | } |
|
41 | } |
||
42 | 2 | } |
|
43 | 2 | } |
|
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.