| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 1 | public function put($id, $name = null, $body = null, $guestSpaceId = null) |
|
| 34 | { |
||
| 35 | 1 | $options = ['json' => ['id' => $id]]; |
|
| 36 | 1 | if ($name !== null) { |
|
| 37 | 1 | $options['json']['name'] = $name; |
|
| 38 | 1 | } |
|
| 39 | 1 | if ($body !== null) { |
|
| 40 | 1 | $options['json']['body'] = $body; |
|
| 41 | 1 | } |
|
| 42 | |||
| 43 | 1 | return $this->client |
|
| 44 | 1 | ->put(KintoneApi::generateUrl('space/thread.json', $guestSpaceId), $options) |
|
| 45 | 1 | ->json(); |
|
| 46 | } |
||
| 47 | |||
| 76 | } |