@@ -57,7 +57,9 @@ |
||
| 57 | 57 | public function getDate($date_from, $date_to, $source_id = null) |
| 58 | 58 | { |
| 59 | 59 | $endpoint = '/lead/' . $date_from . '/' . $date_to; |
| 60 | - if (!empty($source_id)) $endpoint .= '/' . $source_id; |
|
| 60 | + if (!empty($source_id)) { |
|
| 61 | + $endpoint .= '/' . $source_id; |
|
| 62 | + } |
|
| 61 | 63 | return $this->doRequest('get', $endpoint); |
| 62 | 64 | } |
| 63 | 65 | |