Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
39 | public function get(array $ids = [], array $codes = [], $name = null, array $spaceIds = [], $limit = self::MAX_GET_APPS, $offset = 0, $guestSpaceId = null) |
||
40 | { |
||
41 | $options = ['json' => compact('ids', 'codes', 'name', 'spaceIds')]; |
||
42 | $options['json']['limit'] = $limit; |
||
43 | $options['json']['offset'] = $offset; |
||
44 | |||
45 | /** @var JsonStream $stream */ |
||
46 | $stream = $this->client |
||
47 | ->get(KintoneApi::generateUrl('apps.json', $guestSpaceId), $options) |
||
48 | ->getBody(); |
||
49 | |||
50 | return $stream->jsonSerialize(); |
||
51 | } |
||
52 | |||
54 | } |