| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 26 | private function tokenize(): mixed | ||
| 27 |     { | ||
| 28 | |||
| 29 | $body = array(); | ||
| 30 | $body['grant_type'] = 'client_credentials'; | ||
| 31 | |||
| 32 | $client = new Client(); | ||
| 33 |         $res = $client->request('POST', $this->endpoint, [ | ||
| 34 | 'headers' => [ | ||
| 35 | 'Content-Type' => 'application/x-www-form-urlencoded', | ||
| 36 | 'Accept' => '*/*', | ||
| 37 | 'Authorization' => 'Basic '.$this->clientkey, | ||
| 38 | ], | ||
| 39 | 'form_params' => ['grant_type' => 'client_credentials'], | ||
| 40 | ]); | ||
| 41 | return $res; | ||
| 42 | } | ||
| 55 |