| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 1 | public function getEvents(GitlabQueryDto $queryDto): array |
|
| 27 | { |
||
| 28 | 1 | $res = $this->guzzleClient->request( |
|
| 29 | 1 | 'GET', |
|
| 30 | 1 | self::EVENTS_API, |
|
| 31 | 1 | ['query' => array_merge((array) $queryDto, $this->getToken())], |
|
| 32 | ); |
||
| 33 | |||
| 34 | 1 | return json_decode((string) $res->getBody(), null, 512, JSON_THROW_ON_ERROR); |
|
| 35 | } |
||
| 42 |