Conditions | 3 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 1 | public function get($appId, $id, $guestSpaceId = null, $isIframe = false, $isShowTitle = false, array $options = []): string |
|
33 | { |
||
34 | 1 | $url = $guestSpaceId ? KintoneApi::GUEST_SPACE_PREFIX . $guestSpaceId . '/' : '/k/'; |
|
35 | 1 | $url .= $appId . '/report'; |
|
36 | 1 | if ($isIframe) { |
|
37 | 1 | $url .= '/portlet'; |
|
38 | } |
||
39 | |||
40 | 1 | $options = [ |
|
41 | 1 | 'query' => [ |
|
42 | 1 | 'report' => $id, |
|
43 | 1 | 'title' => $isShowTitle |
|
44 | 1 | ] |
|
45 | 1 | ] + $options; |
|
46 | |||
47 | 1 | return (string)$this->client |
|
48 | 1 | ->get($url, $options) |
|
49 | 1 | ->getBody(); |
|
50 | } |
||
52 |