Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | protected function parseKeywordsFromRequest($response) |
||
26 | { |
||
27 | if (!isset($response['resource_data_cache'][0]['data']['guides'])) { |
||
28 | return null; |
||
29 | } |
||
30 | |||
31 | $keywords = $response['resource_data_cache'][0]['data']['guides']; |
||
32 | |||
33 | return array_map( |
||
34 | function ($keywordData) { |
||
35 | return $keywordData['term']; |
||
36 | }, $keywords |
||
37 | ); |
||
38 | } |
||
39 | } |