The method processAnswersCreation() has an NPath complexity of 388. The configured NPath complexity threshold is 200. Open
public function processAnswersCreation($form, $exercise)
{
$questionWeighting = $nbrGoodAnswers = 0;
$correct = $form->getSubmitValue('correct');
$objAnswer = new Answer($this->id);
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method createAnswersForm() has an NPath complexity of 1712128. The configured NPath complexity threshold is 200. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
Missing class import via use statement (line '78', column '27'). Open
$answer = new Answer($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
Missing class import via use statement (line '287', column '26'). Open
$objAnswer = new Answer($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
The method createAnswersForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$form->setDefaults($defaults);
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method createAnswersForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$try_result = 1;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method createAnswersForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$comment_title = '<th width="50%">'.get_lang('Comment').'</th>';
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method createAnswersForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$url_result = $url;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method createAnswersForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
for ($k = 1; $k <= $nb_answers; $k++) {
$new_list[$k] = $k;
}
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method createAnswersForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if ($answer->correct[$i]) {
$correct = $i;
}
$answer_result = $answer->answer[$i];
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid unused local variables such as '$position'. Open
$position = trim($form->getSubmitValue('position['.$i.']'));
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Missing function doc comment Open
public function createAnswersForm($form)
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$url = $item_list[3];
- Exclude checks
Variable "comment_title" is not in valid camel caps format Open
$comment_title = '<th width="50%">'.get_lang('Comment').'</th>';
- Exclude checks
Variable "weight_result" is not in valid camel caps format Open
$defaults['weighting['.$i.']'] = $weight_result;
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$try = $item_list[0];
- Exclude checks
Variable "list_dest" is not in valid camel caps format Open
$temp_scenario['destination'.$i] = $list_dest;
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$form->addHtmlEditor('answer['.$i.']', null, [], $editor_config);
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$form->addHtmlEditor('answer['.$i.']', null, true, [], $editor_config);
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['url'.$i] = $url_result;
- Exclude checks
Variable "try_result" is not in valid camel caps format Open
$temp_scenario['try'.$i] = $try_result;
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$form->setConstants(['nb_answers' => $nb_answers]);
- Exclude checks
Missing function doc comment Open
public function return_header(Exercise $exercise, $counter = null, $score = [])
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
if ($nb_answers < 1) {
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
for ($k = 1; $k <= $nb_answers; $k++) {
- Exclude checks
Variable "answer_result" is not in valid camel caps format Open
$answer_result = $answer->answer[$i];
- Exclude checks
Missing function doc comment Open
public function processAnswersCreation($form, $exercise)
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers = 1;
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$defaults['scenario'] = $temp_scenario;
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$form->addHtmlEditor('comment['.$i.']', null, true, [], $editor_config);
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
if (!in_array($exercise->results_disabled, [
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers = $answer->nbrAnswers;
- Exclude checks
Variable "try_result" is not in valid camel caps format Open
$try_result = 0;
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$defaults['scenario'] = $temp_scenario;
- Exclude checks
Variable "feedback_title" is not in valid camel caps format Open
$feedback_title = '';
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['destination'.$i] = $list_dest;
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers += (isset($_POST['lessAnswers']) ? -1 : (isset($_POST['moreAnswers']) ? 1 : 0));
- Exclude checks
Variable "url_result" is not in valid camel caps format Open
$temp_scenario['url'.$i] = $url_result;
- Exclude checks
Missing function doc comment Open
public function __construct()
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers = isset($_POST['nb_answers']) ? (int) $_POST['nb_answers'] : 3;
- Exclude checks
Variable "comment_title" is not in valid camel caps format Open
$comment_title = '<th width="50%" >'.get_lang('Comment').'</th>';
- Exclude checks
Variable "new_list" is not in valid camel caps format Open
$new_list = [];
- Exclude checks
Variable "weight_result" is not in valid camel caps format Open
$weight_result = '0';
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['try'.$i] = $try_result;
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$form->addHtmlEditor('comment['.$i.']', null, [], $editor_config);
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers = $form->getSubmitValue('nb_answers');
- Exclude checks
Method name "UniqueAnswerNoOption::return_header" is not in camel caps format Open
public function return_header(Exercise $exercise, $counter = null, $score = [])
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
$obj_ex = Session::read('objExercise');
- Exclude checks
Variable "feedback_title" is not in valid camel caps format Open
$feedback_title = '<th width="50%" >'.get_lang('Scenario').'</th>';
- Exclude checks
Variable "answer_result" is not in valid camel caps format Open
$defaults['answer['.$i.']'] = $answer_result;
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$item_list = explode('@@', $answer->destination[$i]);
- Exclude checks
Variable "list_dest" is not in valid camel caps format Open
$list_dest = $item_list[2];
- Exclude checks
Variable "try_result" is not in valid camel caps format Open
$try_result = 1;
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
for ($k = 1; $k <= $nb_answers; $k++) {
- Exclude checks
Variable "new_list" is not in valid camel caps format Open
$new_list[$k] = $k;
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
(empty($this->exerciseList) && empty($obj_ex->id))
- Exclude checks
Variable "feedback_title" is not in valid camel caps format Open
$html .= $comment_title.$feedback_title;
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers--;
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
if ($nb_answers == $i) {
- Exclude checks
Variable "url_result" is not in valid camel caps format Open
$url_result = '';
- Exclude checks
Variable "comment_title" is not in valid camel caps format Open
$html .= $comment_title.$feedback_title;
- Exclude checks
Variable "weight_result" is not in valid camel caps format Open
$weight_result = float_format($answer->weighting[$i], 1);
- Exclude checks
Variable "url_result" is not in valid camel caps format Open
$url_result = $url;
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
if (true == $obj_ex->edit_exercise_in_lp ||
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$editor_config['Width'] = '250';
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$editor_config['Height'] = '110';
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario = [];
- Exclude checks
Variable "new_list" is not in valid camel caps format Open
$new_list[$count] = $count;
- Exclude checks
Variable "new_list" is not in valid camel caps format Open
foreach ($new_list as $key) {
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['lp'.$i] = $lp;
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
for ($i = 1; $i <= $nb_answers - $minus; $i++) {
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$editor_config = [
- Exclude checks
Variable "edit_exercise_in_lp" is not in valid camel caps format Open
if (true == $obj_ex->edit_exercise_in_lp ||
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
if (1 == $obj_ex->getFeedbackType()) {
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$lp = $item_list[1];
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$list_dest = $item_list[2];
- Exclude checks
The variable $obj_ex is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $weight_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_scenario is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function processAnswersCreation($form, $exercise)
{
$questionWeighting = $nbrGoodAnswers = 0;
$correct = $form->getSubmitValue('correct');
$objAnswer = new Answer($this->id);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $weight_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_scenario is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $new_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $list_dest is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $item_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $comment_title is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $new_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $new_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $weight_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $editor_config is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function processAnswersCreation($form, $exercise)
{
$questionWeighting = $nbrGoodAnswers = 0;
$correct = $form->getSubmitValue('correct');
$objAnswer = new Answer($this->id);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_scenario is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $editor_config is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $obj_ex is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $feedback_title is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $comment_title is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $item_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $answer_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $obj_ex is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $editor_config is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $editor_config is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_scenario is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $answer_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $try_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $item_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_scenario is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $try_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $try_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_scenario is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $editor_config is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $editor_config is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $list_dest is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_result is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $feedback_title is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $feedback_title is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $new_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $item_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_scenario is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $editor_config is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $nb_answers is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $comment_title is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $item_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $obj_ex is not named in camelCase. Open
public function createAnswersForm($form)
{
// getting the exercise list
$obj_ex = Session::read('objExercise');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The method return_header is not named in camelCase. Open
public function return_header(Exercise $exercise, $counter = null, $score = [])
{
$header = parent::return_header($exercise, $counter, $score);
$header .= '<table class="'.$this->questionTableClass.'"><tr>';
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}