| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 28 | public function getProjectTaskByStatus($statusId, $itemId) |
||
| 29 | { |
||
| 30 | $helper = Helper::getInstance(); |
||
| 31 | $dbHandle = new TrelloDBController($this->xoopsDb); |
||
| 32 | $query = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix($helper->getDirname() . '_items') . 'WHERE status= ? AND itemid = ?'; |
||
| 33 | $result = $dbHandle->runQuery($query, 'ii', [$statusId, $itemId]); |
||
|
|
|||
| 34 | |||
| 35 | return $result; |
||
| 36 | } |
||
| 65 |
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.