| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 1 | public function importFlow($label, $flowJson) |
|
| 17 | { |
||
| 18 | 1 | $id = uniqid(); |
|
| 19 | |||
| 20 | $body = [ |
||
| 21 | 1 | 'id' => $id, |
|
| 22 | 1 | 'label' => $label, |
|
| 23 | 1 | 'nodes' => $this->getNodes($id, $flowJson) |
|
| 24 | 1 | ]; |
|
| 25 | |||
| 26 | 1 | $data = $this->instance->jsonPost('flow', $body, $this->token); |
|
| 27 | |||
| 28 | 1 | return $data['id']; |
|
| 29 | } |
||
| 30 | |||
| 57 |