| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | View Code Duplication | function all($params = []) |
|
|
|
|||
| 14 | { |
||
| 15 | $endpoint = 'https://api.hubapi.com/comments/v3/comments'; |
||
| 16 | |||
| 17 | $queryString = build_query_string($params); |
||
| 18 | |||
| 19 | return $this->client->request('get', $endpoint, [], $queryString); |
||
| 20 | } |
||
| 21 | |||
| 37 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.