Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function exists($phone = null, $email = null) |
||
|
|||
27 | { |
||
28 | $query = 'SELECT Id, OwnerId FROM ' . $this->getType() . ' WHERE PersonEmail = \'' . addslashes(trim($email)) . '\' AND RecordTypeId = \'' . config('laravel-salesforce.record_type.account') . '\''; |
||
29 | |||
30 | $response = $this->query($query); |
||
31 | |||
32 | if ($response && $response->totalSize > 0) { |
||
33 | return array_shift($response->records); |
||
34 | } |
||
35 | |||
36 | return false; |
||
37 | } |
||
38 | } |
||
39 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.