| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | private function getChoices(array $supportedComparators, array $enabledComparators) |
||
| 35 | { |
||
| 36 | $supported = array_keys(array_filter($this->getComparatorMap(), function ($comparator) use ($supportedComparators) { |
||
| 37 | return in_array($comparator, $supportedComparators); |
||
| 38 | })); |
||
| 39 | |||
| 40 | $supported = array_filter($supported, function ($comparator) use ($enabledComparators) { |
||
| 41 | return in_array($comparator, $enabledComparators); |
||
| 42 | }); |
||
| 43 | |||
| 44 | return array_combine($supported, $supported); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |