| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | protected function toDevOpsAttachment(string $attachmentUrl): array |
|
| 14 | { |
||
| 15 | return [ |
||
| 16 | [ |
||
| 17 | 1 | 'op' => 'add', |
|
| 18 | 1 | 'path'=> '/relations/-', |
|
| 19 | 'value'=> [ |
||
| 20 | 1 | 'rel' => 'AttachedFile', |
|
| 21 | 1 | 'url' => $attachmentUrl, |
|
| 22 | 'attributes' => [ |
||
| 23 | 'comment' => '', |
||
| 24 | ], |
||
| 25 | ], |
||
| 26 | ], |
||
| 27 | ]; |
||
| 28 | } |
||
| 29 | |||
| 39 |