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