public/main/survey/ch_multiplechoice.php
Missing class import via use statement (line '55', 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_multiplechoice is not named in CamelCase. Open
Open
class ch_multiplechoice extends survey_question
{
/**
* @param array $surveyData
* @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 $questionData does not match actual variable name $form Open
Open
* @param array $questionData
- Exclude checks
Doc comment for parameter $answers does not match actual variable name $questionData Open
Open
* @param array $answers
- Exclude checks
Class name "ch_multiplechoice" is not in camel caps format Open
Open
class ch_multiplechoice extends survey_question
- Exclude checks