public/main/survey/ch_multiplechoiceother.php
Missing class import via use statement (line '62', column '25'). Open
Open
$question = new ch_yesno();
- Read upRead up
- Exclude checks
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
Open
class ch_multiplechoiceother extends survey_question
{
/**
* @param array $survey_data
* @param array $formData
- Read upRead up
- Exclude checks
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
Open
* @param array $answers
- Exclude checks
Missing function doc comment Open
Open
public static function decodeOptionValue($value)
- Exclude checks
Doc comment for parameter $survey_data does not match actual variable name $surveyData Open
Open
* @param array $survey_data
- Exclude checks
Doc comment for parameter $questionData does not match actual variable name $form Open
Open
* @param array $questionData
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class ch_multiplechoiceother extends survey_question
- Exclude checks
Class name "ch_multiplechoiceother" is not in camel caps format Open
Open
class ch_multiplechoiceother extends survey_question
- Exclude checks