The method processAnswersCreation() has an NPath complexity of 1537. 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 107458560. The configured NPath complexity threshold is 200. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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 '83', 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 '340', 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
Missing class import via use statement (line '108', column '21'). Open
$list = new LearnpathList(api_get_user_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 {
if (1 == $this->isContent) {
// Default sample content.
$form->setDefaults($defaults);
} else {
- 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 {
$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 {
$correct = 1;
if (isset($_POST) && isset($_POST['correct'])) {
$correct = (int) $_POST['correct'];
}
- 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 {
$defaults['answer[1]'] = get_lang('A then B then C');
$defaults['weighting[1]'] = 10;
$defaults['answer[2]'] = get_lang('A then C then B');
$defaults['weighting[2]'] = 0;
- 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 parameter $select_question is not named in camelCase. Open
public function setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
{
$editor_config = [
'ToolbarSet' => 'TestProposedAnswer',
'Width' => '100%',
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $select_lp_id is not named in camelCase. Open
public function setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
{
$editor_config = [
'ToolbarSet' => 'TestProposedAnswer',
'Width' => '100%',
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Variable "question_list" is not in valid camel caps format Open
if (is_array($question_list)) {
- Exclude checks
Variable "list_dest" is not in valid camel caps format Open
$list_dest = $item_list[2] ?? '';
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$url = $item_list[3] ?? '';
- Exclude checks
Variable "question_list" is not in valid camel caps format Open
$question_list = $obj_ex->getQuestionList();
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
$select_question = [];
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
$flat_list = $list->get_flat_list();
- Exclude checks
Variable "select_lp_id" is not in valid camel caps format Open
$select_lp_id[0] = get_lang('Select target course');
- 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
$nb_answers = 1;
- Exclude checks
Variable "try_result" is not in valid camel caps format Open
$try_result = 1;
- Exclude checks
Variable "feedback_title" is not in valid camel caps format Open
$feedback_title = '<th width="20%">'.get_lang('Scenario').'</th>';
- Exclude checks
Variable "feedback_title" is not in valid camel caps format Open
'.$feedback_title.'
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers = $answer->nbrAnswers;
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
$obj_ex->setQuestionList(true);
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
$select_question[0] = get_lang('Select target question');
- Exclude checks
Variable "question_list" is not in valid camel caps format Open
foreach ($question_list as $key => $questionid) {
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$item_list = [];
- Exclude checks
Variable "try_result" is not in valid camel caps format Open
$try_result = 0;
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
foreach ($flat_list as $id => $details) {
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$lp = $item_list[1] ?? '';
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['url'.$i] = $url_result;
- Exclude checks
Variable "select_lp_id" is not in valid camel caps format Open
$select_lp_id[$id] = cut($details['lp_name'], 20);
- Exclude checks
Missing function doc comment Open
public function createAnswersForm($form)
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
$select_question[$questionid] = "Q$key: $questionTitle";
- Exclude checks
Variable "url_result" is not in valid camel caps format Open
$url_result = '';
- Exclude checks
Missing function doc comment Open
public function __construct()
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
$obj_ex = Session::read('objExercise');
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
$select_question[-1] = get_lang('Exit test');
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers = isset($_POST['nb_answers']) ? (int) $_POST['nb_answers'] : 4;
- Exclude checks
Variable "feedback_title" is not in valid camel caps format Open
$feedback_title = '';
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$item_list = explode('@@', $answer->destination[$i]);
- Exclude checks
Variable "url_result" is not in valid camel caps format Open
$temp_scenario['url'.$i] = $url_result;
- Exclude checks
Variable "comment_title" is not in valid camel caps format Open
$comment_title = '<th width="40%">'.get_lang('Comment').'</th>';
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
$question_list = $obj_ex->getQuestionList();
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$editor_config = [
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario = [];
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$list_dest = $item_list[2] ?? '';
- Exclude checks
Variable "comment_title" is not in valid camel caps format Open
$comment_title = '<th width="20%">'.get_lang('Comment').'</th>';
- Exclude checks
Variable "comment_title" is not in valid camel caps format Open
'.$comment_title.'
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$form->addHidden('nb_answers', $nb_answers);
- Exclude checks
Variable "url_result" is not in valid camel caps format Open
$url_result = $url;
- Exclude checks
Variable "select_lp_id" is not in valid camel caps format Open
$select_lp_id = [];
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
for ($i = 1; $i <= $nb_answers; $i++) {
- 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 "obj_ex" is not in valid camel caps format Open
switch ($obj_ex->getFeedbackType()) {
- Exclude checks
Variable "comment_title" is not in valid camel caps format Open
$comment_title = '<th width="20%">'.get_lang('Comment').'</th>';
- Exclude checks
Variable "item_list" is not in valid camel caps format Open
$try = $item_list[0] ?? '';
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$nb_answers = $form->getSubmitValue('nb_answers');
- Exclude checks
Method name "UniqueAnswer::return_header" is not in camel caps format Open
public function return_header(Exercise $exercise, $counter = null, $score = [])
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$defaults['scenario'] = $temp_scenario;
- 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
$editor_config = [
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$form->addHtmlEditor('answer['.$i.']', null, null, false, $editor_config);
- Exclude checks
Variable "nb_answers" is not in valid camel caps format Open
$form->setConstants(['nb_answers' => $nb_answers]);
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['destination'.$i] = $list_dest;
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
(empty($this->exerciseList) && empty($obj_ex->id))
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
switch ($obj_ex->getFeedbackType()) {
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['destination'.$i] = ['0'];
- Exclude checks
Missing function doc comment Open
public function setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
public function setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
- Exclude checks
Variable "editor_config" is not in valid camel caps format Open
$editor_config
- Exclude checks
Variable "select_lp_id" is not in valid camel caps format Open
$select_lp_id
- Exclude checks
Missing function doc comment Open
public function return_header(Exercise $exercise, $counter = null, $score = [])
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['lp'.$i] = ['0'];
- Exclude checks
Variable "try_result" is not in valid camel caps format Open
$temp_scenario['try'.$i] = $try_result;
- Exclude checks
Missing function doc comment Open
public function processAnswersCreation($form, $exercise)
- Exclude checks
Variable "temp_scenario" is not in valid camel caps format Open
$temp_scenario['lp'.$i] = $lp;
- 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('comment['.$i.']', null, null, false, $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 "nb_answers" is not in valid camel caps format Open
for ($i = 1; $i <= $nb_answers; $i++) {
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
$select_question
- Exclude checks
Variable "select_lp_id" is not in valid camel caps format Open
$this->setDirectOptions($i, $form, $renderer, $select_lp_id, $select_question);
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
$this->setDirectOptions($i, $form, $renderer, $select_lp_id, $select_question);
- Exclude checks
Variable "obj_ex" is not in valid camel caps format Open
if (true == $obj_ex->edit_exercise_in_lp ||
- Exclude checks
Variable "select_lp_id" is not in valid camel caps format Open
public function setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
- Exclude checks
The variable $obj_ex is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $select_lp_id is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $select_lp_id is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $select_question is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
{
$editor_config = [
'ToolbarSet' => 'TestProposedAnswer',
'Width' => '100%',
- 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 $select_question is not named in camelCase. Open
public function setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
{
$editor_config = [
'ToolbarSet' => 'TestProposedAnswer',
'Width' => '100%',
- 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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $select_question is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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 $flat_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
{
$editor_config = [
'ToolbarSet' => 'TestProposedAnswer',
'Width' => '100%',
- 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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $select_question is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $select_lp_id is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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 $select_lp_id is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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 $select_question is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $select_lp_id is not named in camelCase. Open
public function setDirectOptions($i, FormValidator $form, $renderer, $select_lp_id, $select_question)
{
$editor_config = [
'ToolbarSet' => 'TestProposedAnswer',
'Width' => '100%',
- 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
/** @var Exercise $obj_ex */
$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 $question_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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 $select_question is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $question_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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 $flat_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $feedback_title is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 $question_list is not named in camelCase. Open
public function createAnswersForm($form)
{
// Getting the exercise list
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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
/** @var Exercise $obj_ex */
$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 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() {
}
}