| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | function getApiEndPoint() |
||
| 15 | { |
||
| 16 | if($this->lastPostId == '') |
||
| 17 | { |
||
| 18 | $apiEndPoint = '/v3/posts/hashtag/' . $this->view . '?hashtag=' . $this->channel; |
||
| 19 | } |
||
| 20 | else |
||
| 21 | { |
||
| 22 | if($this->view == 'combo') |
||
| 23 | { |
||
| 24 | $apiEndPoint = '/v3/posts/hashtag?hashtag=' . $this->channel . '&after=' . $this->lastPostId; |
||
| 25 | } |
||
| 26 | else |
||
| 27 | { |
||
| 28 | $apiEndPoint = '/v3/posts/hashtag/' . $this->view . '?hashtag=' . $this->channel . '&after=' . $this->lastPostId; |
||
| 29 | } |
||
| 30 | } |
||
| 31 | return $apiEndPoint; |
||
| 32 | } |
||
| 33 | function getPayload() |
||
| 43 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.