| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | function list_logs($domains, $day) |
||
|
|
|||
| 24 | { |
||
| 25 | |||
| 26 | if (empty($day) || empty($domains)) { |
||
| 27 | return; |
||
| 28 | } |
||
| 29 | |||
| 30 | $domains = join(';', $domains); |
||
| 31 | $body = array('day' => $day, 'domains' => $domains); |
||
| 32 | $body = json_encode($body); |
||
| 33 | |||
| 34 | return $this->post(Config::FUSION_HOST . '/v2/tune/log/list', $body); |
||
| 35 | } |
||
| 36 | |||
| 49 |
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.