chamilo/chamilo-lms

View on GitHub
public/main/survey/ch_multiplechoice.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '55', column '25').
Open

        $question = new ch_yesno();

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The class ch_multiplechoice is not named in CamelCase.
Open

class ch_multiplechoice extends survey_question
{
    /**
     * @param array $surveyData
     * @param array $formData

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Doc comment for parameter $questionData does not match actual variable name $form
Open

     * @param array $questionData

Doc comment for parameter $answers does not match actual variable name $questionData
Open

     * @param array $answers

Class name "ch_multiplechoice" is not in camel caps format
Open

class ch_multiplechoice extends survey_question

There are no issues that match your filters.

Category
Status