Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
64 | 2 | public function delete($appId, $recordId, $id, $guestSpaceId = null): array |
|
65 | { |
||
66 | 2 | $options = ['json' => [ |
|
67 | 2 | 'app' => $appId, |
|
68 | 2 | 'record' => $recordId, |
|
69 | 2 | 'comment' => $id |
|
70 | 2 | ]]; |
|
71 | |||
72 | /** @var JsonStream $stream */ |
||
73 | 2 | $stream = $this->client |
|
74 | 2 | ->delete(KintoneApi::generateUrl('record/comment.json', $guestSpaceId), $options) |
|
75 | 2 | ->getBody(); |
|
76 | |||
77 | 2 | return $stream->jsonSerialize(); |
|
78 | } |
||
80 |