| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 18 | public function parseResponse($response): array  | 
            ||
| 19 |     { | 
            ||
| 20 | // Parse predictions  | 
            ||
| 21 |         foreach ($response['predictions'] as $res) { | 
            ||
| 22 | $this->results[] = array_fill_keys(  | 
            ||
| 23 | ['id', 'text'],  | 
            ||
| 24 | (new ZipFromPlaceIdAction($this->query, $res['place_id']))->execute()  | 
            ||
| 25 | );  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | return [  | 
            ||
| 29 | 'total_count' => count($this->results),  | 
            ||
| 30 | 'items' => $this->results,  | 
            ||
| 31 | ];  | 
            ||
| 34 |