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