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