| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | 1 | public function get($code): array |
|
| 38 | { |
||
| 39 | 1 | $options = ['json' => ['code' => $code]]; |
|
| 40 | |||
| 41 | /** @var JsonStream $stream */ |
||
| 42 | 1 | $stream = $this->client |
|
| 43 | 1 | ->get(UserApi::generateUrl('user/organizations.json'), $options) |
|
| 44 | 1 | ->getBody(); |
|
| 45 | |||
| 46 | 1 | return $stream->jsonSerialize()['organizationTitles']; |
|
| 47 | } |
||
| 74 |