Passed
Push — 1.11.x ( bce6cd...c146d9 )
by Angel Fernando Quiroz
12:25
created

src/lib/assesment/CcAssesmentResponseStrtype.php (1 issue)

1
<?php
2
/* Source: https://github.com/moodle/moodle/blob/MOODLE_310_STABLE/backup/cc/cc_lib/cc_asssesment.php under GNU/GPL license */
3
4
class CcAssesmentResponseStrtype extends CcResponseLidtype
5
{
6
    public function __construct()
7
    {
8
        $rtt = parent::__construct();
0 ignored issues
show
Are you sure the assignment to $rtt is correct as parent::__construct() targeting CcResponseLidtype::__construct() 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...
9
        $this->tagname = CcQtiTags::RESPONSE_STR;
10
    }
11
}
12