| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 64 | public function comment($spaceId, $threadId, $comment, array $mentions = [], array $files = [], $guestSpaceId = null): array |
||
| 65 | { |
||
| 66 | $options = ['json' => [ |
||
| 67 | 'space' => $spaceId, |
||
| 68 | 'thread' => $threadId, |
||
| 69 | 'comment' => [ |
||
| 70 | 'text' => $comment, |
||
| 71 | 'mentions' => $mentions, |
||
| 72 | 'files' => $files |
||
| 73 | ], |
||
| 74 | ]]; |
||
| 75 | |||
| 76 | /** @var JsonStream $stream */ |
||
| 77 | $stream = $this->client |
||
| 78 | ->post(KintoneApi::generateUrl('space/thread/comment.json', $guestSpaceId), $options) |
||
| 79 | ->getBody(); |
||
| 80 | |||
| 81 | return $stream->jsonSerialize(); |
||
| 82 | } |
||
| 84 |