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