| Total Complexity | 4 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class TrelloManagement |
||
| 11 | { |
||
| 12 | private $xoopsDb; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * TrelloManagement constructor. |
||
| 16 | * @param $xoopsDb |
||
| 17 | */ |
||
| 18 | public function __construct($xoopsDb) |
||
| 19 | { |
||
| 20 | $this->xoopsDb = $xoopsDb; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param $statusId |
||
| 25 | * @param $itemId |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function getProjectTaskByStatus($statusId, $itemId) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function getAllStatus() |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param $statusId |
||
| 53 | * @param $itemId |
||
| 54 | */ |
||
| 55 | public function editTaskStatus($statusId, $itemId) |
||
| 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.