mmainstreet /
jodel-web
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | class GetChannel extends AbstractRequest |
||
| 4 | { |
||
| 5 | /** |
||
| 6 | * @var Location |
||
| 7 | */ |
||
| 8 | public $location; |
||
| 9 | public $channel; |
||
| 10 | public $hasPayload = FALSE; |
||
| 11 | public $lastPostId = ''; |
||
| 12 | public $view = 'combo'; |
||
| 13 | |||
| 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() |
||
| 34 | { |
||
| 35 | return array( |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | function getMethod() |
||
| 39 | { |
||
| 40 | return 'GET'; |
||
| 41 | } |
||
| 42 | } |
||
|
0 ignored issues
–
show
|
|||
| 43 |
This check marks files that end in a newline character, i.e. an empy line.