| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 83 | public function getOptions(array $contextual_options=[]) |
|
| 45 | { |
||
| 46 | 83 | $default_options = LogicalFilter::getDefaultOptions(); |
|
| 47 | |||
| 48 | 83 | $options = $default_options; |
|
| 49 | |||
| 50 | 83 | foreach ($this->options as $name => $value) { |
|
| 51 | 64 | $options[$name] = $value; |
|
| 52 | 83 | } |
|
| 53 | |||
| 54 | 83 | foreach ($contextual_options as $name => $value) { |
|
| 55 | 52 | $options[$name] = $value; |
|
| 56 | 83 | } |
|
| 57 | |||
| 58 | 83 | return $options; |
|
| 59 | } |
||
| 60 | |||
| 63 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.