Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function checkAlreadyExists($email) |
||
29 | { |
||
30 | $query = 'SELECT Id, OwnerId FROM '.$this->getType().' WHERE PersonEmail = \''.addslashes(trim($email)).'\' AND RecordTypeId = \''.config('laravel-salesforce.record_type.account').'\''; |
||
31 | |||
32 | $response = $this->query($query); |
||
33 | |||
34 | if ($response && $response->totalSize > 0) { |
||
35 | return array_shift($response->records); |
||
36 | } |
||
37 | |||
38 | return false; |
||
39 | } |
||
40 | } |
||
41 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.