| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function get(): array |
||
| 32 | { |
||
| 33 | $filters = []; |
||
| 34 | $url = $this->endpoint . 'breaches/'; |
||
| 35 | |||
| 36 | // Filter domain, if available. |
||
| 37 | if (isset($this->domain)) { |
||
| 38 | $filters['domain'] = $this->domain; |
||
| 39 | } |
||
| 40 | |||
| 41 | $url = $this->setFilters($url, $filters); |
||
| 42 | $breaches = $this->requestGet($url); |
||
| 43 | |||
| 44 | return $breaches; |
||
| 45 | } |
||
| 58 | } |