| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function checkAssignee(string $assignee): bool |
||
| 36 | { |
||
| 37 | $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/assignees/:assignee', |
||
| 38 | $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), $assignee)); |
||
| 39 | |||
| 40 | if ($this->getApi()->getHeaders()['Status'] == '204 No Content') { |
||
| 41 | return true; |
||
| 42 | } |
||
| 43 | |||
| 44 | return false; |
||
| 45 | } |
||
| 46 | } |