| Conditions | 2 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getTweets(TweetsRequest $request) |
||
| 19 | { |
||
| 20 | try { |
||
| 21 | $response = $this->getApiProvider()->getClient()->request('GET', 'tweets/'.$request->getSorting(), [ |
||
| 22 | 'query' => $request->getParams(), |
||
| 23 | ]); |
||
| 24 | |||
| 25 | return $this->getEntitiesBuilder(Tweet::class) |
||
| 26 | ->fromResponse($response) |
||
| 27 | ->collection(); |
||
| 28 | } catch (RequestException $e) { |
||
| 29 | // |
||
| 30 | } |
||
| 31 | |||
| 32 | return []; |
||
| 33 | } |
||
| 35 |