| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function createApiKey() |
||
| 34 | { |
||
| 35 | $ret = null; |
||
| 36 | |||
| 37 | $response = $this->request('PUT', $this->uri('/account/apikey'), []); |
||
| 38 | |||
| 39 | if ($response instanceof Response && 201 === $response->getStatusCode()) { |
||
| 40 | $ret = (string) json_decode($response->getBody(), true); |
||
| 41 | StaticValidator::execute($ret, 'ApiKey'); |
||
| 42 | } |
||
| 43 | |||
| 44 | return $ret; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |