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