Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function create() |
||
14 | { |
||
15 | require_once dirname(__FILE__) . '/Contact.php'; |
||
16 | $contact = new Install_Helper_Contact($this->kernel, $this->db); |
||
17 | $contact_id = $contact->create(); |
||
|
|||
18 | |||
19 | require_once 'Intraface/shared/email/Email.php'; |
||
20 | $email = new Email($this->kernel); |
||
21 | |||
22 | $email->save(array('belong_to' => 1, 'type_id' => 2, 'contact_id' => $contact_id, 'subject' => 'test', 'body' => 'new test!')); |
||
23 | } |
||
24 | } |
||
26 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.