| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | 3 | public function getMilestoneIssuesUrl(string $label) : string |
|
| 66 | { |
||
| 67 | 3 | $query = urlencode(sprintf( |
|
| 68 | 3 | 'milestone:"%s" repo:%s/%s state:closed%s', |
|
| 69 | 3 | str_replace('"', '\"', $this->milestone), |
|
| 70 | 3 | $this->user, |
|
| 71 | 3 | $this->repository, |
|
| 72 | 3 | $label !== '' ? ' label:' . $label : '' |
|
| 73 | )); |
||
| 74 | |||
| 75 | 3 | return sprintf('%s/search/issues?q=%s', self::ROOT_URL, $query); |
|
| 76 | } |
||
| 78 |