| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public static function get_list_of_quick_searches(): array |
||
| 33 | { |
||
| 34 | $array = [ |
||
| 35 | 'all' => 'All', |
||
| 36 | 'limited' => 'Limited search', |
||
| 37 | ]; |
||
| 38 | $availableSearchClasses = self::available_quick_searches(); |
||
| 39 | if(!empty($availableSearchClasses) > 0) { |
||
| 40 | foreach($availableSearchClasses as $availableSearchClass) { |
||
| 41 | $array[$availableSearchClass] = Injector::inst()->get($availableSearchClass)->getTitle(); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | return $array; |
||
| 45 | |||
| 49 |