Passed
Push — master ( 524180...35a464 )
by Mr
01:33
created
src/Endpoint/Leads.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Endpoint/Requests.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,9 @@
 block discarded – undo
124 124
     public function getDate($date_from, $date_to, $source_id = null)
125 125
     {
126 126
         $endpoint = '/request/' . $date_from . '/' . $date_to;
127
-        if (!empty($source_id)) $endpoint .= '/' . $source_id;
127
+        if (!empty($source_id)) {
128
+            $endpoint .= '/' . $source_id;
129
+        }
128 130
         return $this->doRequest('get', $endpoint);
129 131
     }
130 132
 
Please login to merge, or discard this patch.