chamilo/chamilo-lms

View on GitHub
src/LtiBundle/Component/OutcomeUnsupportedResponse.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$xmlBody'.
Open

    protected function generateBody(SimpleXMLElement $xmlBody): void {}

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Doc comment for parameter $type does not match actual variable name $statusInfo
Open

     * @param string $type

Missing class doc comment
Open

class OutcomeUnsupportedResponse extends OutcomeResponse

Add a single space around assignment operators
Open

declare(strict_types=1);

Closing brace must be on a line by itself
Open

    protected function generateBody(SimpleXMLElement $xmlBody): void {}

Opening brace should be on a new line
Open

    protected function generateBody(SimpleXMLElement $xmlBody): void {}

Closing brace must be on a line by itself
Open

    protected function generateBody(SimpleXMLElement $xmlBody): void {}

There are no issues that match your filters.

Category
Status