Completed
Push — master ( 362d44...ef706f )
by Ashleigh
15:28
created
src/Objects/Lead.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
             return false;
35 35
         }
36 36
 
37
-        $query = 'SELECT Id, OwnerId  FROM ' . $this->getType() . ' WHERE RecordTypeId = \'' . config('laravel-salesforce.record_type.lead') . '\'';
37
+        $query = 'SELECT Id, OwnerId  FROM '.$this->getType().' WHERE RecordTypeId = \''.config('laravel-salesforce.record_type.lead').'\'';
38 38
 
39 39
         foreach ($params as $fieldName => $fieldValue) {
40
-            $query .= ' AND ' . $fieldName . '=\'' . addslashes(trim($fieldValue)) . '\'';
40
+            $query .= ' AND '.$fieldName.'=\''.addslashes(trim($fieldValue)).'\'';
41 41
         }
42 42
 
43 43
         $response = $this->query($query);
Please login to merge, or discard this patch.