| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 40 | public function __construct(ClientInterface $client, string $token, string $domain) |
|
| 25 | { |
||
| 26 | 40 | $this->client = $client; |
|
| 27 | 40 | $this->defaults = [ |
|
| 28 | 40 | 'allow_redirects' => false, |
|
| 29 | 40 | 'base_uri' => 'https://api-ssl.bitly.com', |
|
| 30 | 'headers' => [ |
||
| 31 | 40 | 'Accept' => 'application/json', |
|
| 32 | 40 | 'Authorization' => "Bearer $token", |
|
| 33 | 40 | 'Content-Type' => 'application/json', |
|
| 34 | ], |
||
| 35 | 'json' => [ |
||
| 36 | 40 | 'domain' => $domain, |
|
| 37 | ], |
||
| 54 |