public/main/exercise/export/aiken/aiken_classes.php
Missing class import via use statement (line '23', column '31'). Open
Open
$answer = new AikenAnswerMultipleChoice($this->id);
- 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
Avoid unused parameters such as '$form'. Open
Open
public function createAnswersForm($form)
- Read upRead up
- Exclude checks
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
Avoid unused parameters such as '$form'. Open
Open
public function processAnswersCreation($form, $exercise)
- Read upRead up
- Exclude checks
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
Avoid unused parameters such as '$exercise'. Open
Open
public function processAnswersCreation($form, $exercise)
- Read upRead up
- Exclude checks
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
Each class must be in a file by itself Open
Open
class AikenAnswerMultipleChoice extends Answer
- Exclude checks
Missing function doc comment Open
Open
public function createAnswersForm($form)
- Exclude checks
Multiple classes defined in a single file Open
Open
class AikenAnswerMultipleChoice extends Answer
- Exclude checks
Missing function doc comment Open
Open
public function processAnswersCreation($form, $exercise)
- Exclude checks