| Conditions | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function delete(array $ids) |
||
| 45 | { |
||
| 46 | $response = $this->client->delete('/1.0/user/backlog', new class($ids) implements Arrayable { |
||
| 47 | private $ids; |
||
| 48 | |||
| 49 | public function __construct(array $ids) |
||
| 50 | { |
||
| 51 | $this->ids = $ids; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function toArray(): array |
||
| 55 | { |
||
| 56 | return $this->ids; |
||
| 57 | } |
||
| 58 | }); |
||
| 59 | |||
| 60 | return $response['result-ids'] ?? $response['errors'] ?? $response; |
||
| 61 | } |
||
| 63 |