| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function getById($object, $rowId) { |
||
| 12 | $stmt = classSupernova::$gc->query |
||
|
|
|||
| 13 | ->setIdField($object::$idField) |
||
| 14 | ->field('*') |
||
| 15 | ->from($object::$tableName) |
||
| 16 | ->where($object::$idField . ' = "' . $rowId . '"'); |
||
| 17 | |||
| 18 | $object->row = $stmt->selectRow(); |
||
| 19 | |||
| 20 | return $object; |
||
| 21 | } |
||
| 22 | |||
| 33 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.