Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | public function loadById($recordDescription, $id) { |
||
30 | $dbq = new \DBAL\DbQuery($recordDescription->db); |
||
31 | $dbq |
||
32 | ->setTable($recordDescription->table) |
||
33 | ->setOneRow() |
||
34 | ->setWhereArray(array($recordDescription->indexFieldName => $id)); |
||
35 | return $recordDescription->db->dbqSelectAndFetch($dbq); |
||
36 | } |
||
39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.