Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
6 | public function push($api_key, $type, $subject, $content, $url) |
||
7 | { |
||
8 | if ($type == 'note') { |
||
9 | |||
10 | $message = $this->pushNote($api_key, $subject, $content); |
||
11 | |||
12 | } elseif ($type == 'url') { |
||
13 | |||
14 | $message = $this->pushUrl($api_key, $subject, $content, $url); |
||
15 | |||
16 | } else { |
||
17 | |||
18 | $message = 'Push type incorrect or not specified'; |
||
19 | |||
20 | } |
||
21 | |||
22 | return $message; |
||
23 | } |
||
39 |