@@ -34,10 +34,10 @@ |
||
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); |