| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | protected function getKeywordsFromRequest($response) |
||
| 32 | { |
||
| 33 | $keywords = $response['guides']; |
||
| 34 | |||
| 35 | if (!isset($keywords)) return []; |
||
| 36 | |||
| 37 | return array_map(function ($keywordData) { |
||
| 38 | return [ |
||
| 39 | 'term' => $keywordData['term'], |
||
| 40 | 'display' => $keywordData['display'], |
||
| 41 | 'position' => $keywordData['position'], |
||
| 42 | ]; |
||
| 43 | }, $keywords); |
||
| 44 | } |
||
| 45 | } |