Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
17 | public function search(string $q): array |
||
18 | { |
||
19 | \error_log('***** MOCK SEARCH *****'); |
||
20 | |||
21 | $result = []; |
||
22 | switch ($q) { |
||
23 | case 'Fish': |
||
24 | $result = [ |
||
25 | 'Title' => 'Fishing in New Zealand', |
||
26 | ]; |
||
27 | $result['ResultsFound'] = 1; |
||
28 | $result['AllFacets'] = []; |
||
29 | } |
||
30 | |||
31 | return $result; |
||
|
|||
32 | } |
||
34 |