Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
38 | 3 | public function insert(array $data) |
|
39 | { |
||
40 | 3 | $metadata = $this->metadata((string) get_class($this)); |
|
41 | |||
42 | 3 | $this->db->insert($metadata->getTableName(), $data); |
|
43 | |||
44 | 3 | $item = $this->find($lastId = $this->db->insert_id()); |
|
|
|||
45 | |||
46 | 3 | $this->credo->refresh($item); |
|
47 | |||
48 | 3 | return $lastId; |
|
49 | } |
||
84 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.