| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function get(SentryRequest $sentryRequest, $endpoint) |
||
| 30 | { |
||
| 31 | $stream = $this |
||
| 32 | ->client |
||
| 33 | ->get($sentryRequest->getBaseUrl() . $endpoint, [ |
||
| 34 | 'headers' => [ |
||
| 35 | 'Authorization' => sprintf('Bearer %s', $sentryRequest->getApiKey()) |
||
| 36 | ] |
||
| 37 | ]) |
||
| 38 | ->getBody() |
||
| 39 | ->getContents(); |
||
| 40 | |||
| 41 | return json_decode($stream, true); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |