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