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