| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 5 | public function webhooks($eventType = '') |
|
| 22 | { |
||
| 23 | 5 | $response = $this->get('_apis/hooks/subscriptions', [ |
|
|
|
|||
| 24 | 5 | 'query' => array_filter([ |
|
| 25 | 5 | 'eventType' => $eventType, |
|
| 26 | 5 | 'consumerId' => 'webHooks', |
|
| 27 | 5 | ]), |
|
| 28 | 5 | ]); |
|
| 29 | |||
| 30 | 1 | return $this->fromDevOpsWebhooks($response['value']); |
|
| 31 | } |
||
| 70 |