| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | protected function doExecuteCommand(InputInterface $input, OutputInterface $output) |
||
| 48 | { |
||
| 49 | $cloud = $this->getCloud($input); |
||
| 50 | $preset = $input->getArgument('preset'); |
||
| 51 | $profile = $cloud->addProfileFromPreset($preset); |
||
|
|
|||
| 52 | $output->writeln( |
||
| 53 | sprintf( |
||
| 54 | '<info>Successfully created profile %s with id %s</info>', |
||
| 55 | $profile->getName(), |
||
| 56 | $profile->getId() |
||
| 57 | ) |
||
| 58 | ); |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.