Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function create($agreeTermsOfService = 'yes', $notMinor = 'yes') |
||
16 | { |
||
17 | $options = array( |
||
18 | 'body' => json_encode(array( |
||
19 | 'username' => $this->getClient()->getUsername(), |
||
20 | 'token' => $this->getClient()->getToken(), |
||
21 | 'agreeTermsOfService' => $agreeTermsOfService, |
||
22 | 'notMinor' => $notMinor |
||
23 | )), |
||
24 | ); |
||
25 | |||
26 | $response = $this->getClient()->getHttpClient()->request('post', Api::API_BASE_ENDPOINT . '/users', $options); |
||
|
|||
27 | |||
28 | return true; |
||
29 | } |
||
81 |