| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 54 | 1 | public function getDetailedReport(int $workspaceId) |
|
| 55 | { |
||
| 56 | 1 | $res = $this->client->request('GET', self::VERSION . '/details', [ |
|
| 57 | 1 | 'auth' => [$this->api_key, 'api_token'], |
|
| 58 | 'query' => [ |
||
| 59 | 1 | 'user_agent' => '[email protected]', |
|
| 60 | 1 | 'workspace_id' => $workspaceId, |
|
| 61 | 1 | 'since' => Carbon::yesterday()->format('Y-m-d') |
|
| 62 | ] |
||
| 63 | ]); |
||
| 64 | |||
| 65 | 1 | return $this->serializer->deserialize($res->getBody(), DetailedReport::class, 'json'); |
|
| 66 | } |
||
| 67 | } |
||
| 68 |