Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
20 | 6 | public function getVerificationKey(array $guzzleOptions = []): WebhookVerificationKey |
|
21 | { |
||
22 | 6 | $response = $this->client->get( |
|
23 | 6 | $this->client->getUrl()->withPath('/api/messages/config/token'), |
|
24 | 6 | array_merge_recursive( |
|
25 | 6 | $this->client->authenticateWithBasicAuth(), |
|
26 | $guzzleOptions |
||
27 | ) |
||
28 | ); |
||
29 | |||
30 | /** @phpstan-ignore-next-line */ |
||
31 | 6 | return new WebhookVerificationKey(...$response); |
|
|
|||
32 | } |
||
34 |