Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
61 | public function removeLabel($labels) |
||
62 | { |
||
63 | if (is_string($labels)) { |
||
64 | $labels = [$labels]; |
||
65 | } |
||
66 | |||
67 | $this->messageRequest->setRemoveLabelIds($labels); |
||
68 | |||
69 | try { |
||
70 | return $this->modify(); |
||
71 | } catch (\Exception $e) { |
||
72 | throw new \Exception("Couldn't remove labels: {$e->getMessage()}"); |
||
73 | } |
||
76 |