Passed
Branch master (a5e4e1)
by Michael
12:01
created

admin/trellostatus.php (1 issue)

Labels
Severity
1
<?php declare(strict_types=1);
2
3
use Xmf\Request;
4
use XoopsModules\Publisher\TrelloManagement;
5
6
require_once __DIR__ . '/admin_header.php';
7
8
$xoopsDb = \XoopsDatabaseFactory::getDatabaseConnection();
9
10
$trelloManagement = new TrelloManagement($xoopsDb);
11
12
$statusId = Request::getInt('statusId', 0, 'GET');
13
$itemId   = Request::getInt('itemId', 0, 'GET');
14
15
$result = $trelloManagement->editTaskStatus($statusId, $itemId);
0 ignored issues
show
Are you sure the assignment to $result is correct as $trelloManagement->editT...tus($statusId, $itemId) targeting XoopsModules\Publisher\T...ement::editTaskStatus() seems to always return null.

This check looks for function or method calls that always return null and whose return value is assigned to a variable.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
$object = $a->getObject();

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.

Loading history...
16