chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '62', 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_multiplechoiceother is not named in CamelCase.
Open

class ch_multiplechoiceother extends survey_question
{
    /**
     * @param array $survey_data
     * @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 $answers does not match actual variable name $questionData
Open

     * @param array $answers

Missing function doc comment
Open

    public static function decodeOptionValue($value)

Doc comment for parameter $survey_data does not match actual variable name $surveyData
Open

     * @param array $survey_data

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

     * @param array $questionData

You must use "/**" style comments for a class comment
Open

class ch_multiplechoiceother extends survey_question

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

class ch_multiplechoiceother extends survey_question

There are no issues that match your filters.

Category
Status