| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | protected function configure() |
||
| 28 | { |
||
| 29 | parent::configure(); |
||
| 30 | $this |
||
| 31 | ->setName('index:remap') |
||
| 32 | ->setDescription('remap index'); |
||
| 33 | $this->addArgument( |
||
| 34 | 'indexName', |
||
| 35 | InputArgument::OPTIONAL, |
||
| 36 | 'The name of the index to remap (if none given, all will be re-indexed.)' |
||
| 37 | ); |
||
| 38 | |||
| 39 | $this->addOption( |
||
| 40 | 'force', |
||
| 41 | 'f', |
||
| 42 | InputOption::VALUE_NONE, |
||
| 43 | 'If enabled remapping will be forced, even if there are no changes.' |
||
| 44 | ); |
||
| 45 | |||
| 46 | } |
||
| 47 | |||
| 71 |
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.