The function parseQti2() has an NPath complexity of 2711. The configured NPath complexity threshold is 200. Open
function parseQti2($xmlData)
{
global $exerciseInfo;
global $questionTempDir;
global $resourcesLinks;
- 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 function import_exercise() has an NPath complexity of 1774752. The configured NPath complexity threshold is 200. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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 '80', column '21'). Open
$exercise = new Exercise();
- 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 '124', column '36'). Open
$cat = new TestCategory();
- 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 '146', column '27'). Open
$answer = new Answer($last_question_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 '105', column '29'). Open
$question = new Ims2Question();
- 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 parseQti2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$currentMatchSet++;
}
- 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 parseQti2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$exerciseInfo['question'][$currentQuestionIdent]['correct_answers'][] = $nodeValue;
}
- 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 import_exercise uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$answer->new_correct[$i] = 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 method parseQti2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if (!isset($exerciseInfo['question'][$currentQuestionIdent]['wrong_answers'])) {
$exerciseInfo['question'][$currentQuestionIdent]['wrong_answers'] = [];
}
- 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 import_exercise uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$isManifest = isQtiManifest($data);
if ($isManifest) {
$resourcesLinks = qtiProcessManifest($data);
}
- 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 import_exercise uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$i = $j;
$j++;
$matchAnswerIds[$key] = $j;
}
- 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 parseQti2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$exerciseInfo['question'][$currentQuestionIdent]['answer'][$currentAnswerId]['value'] .= $simpleChoiceValue;
}
- 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 parseQti2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$exerciseInfo['question'][$currentQuestionIdent]['statement'] = $currentQuestionItemBody;
}
- 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 parseQti2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$exerciseInfo['question'][$currentQuestionIdent]['answer'][$currentAnswerId]['feedback'] .= trim(
$node->nodeValue
);
}
- 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 import_exercise uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$question->category = $categoryId;
}
- 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 parseQti2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if (FREE_ANSWER == $exerciseInfo['question'][$currentQuestionIdent]['type']) {
$currentQuestionItemBody = trim($currentQuestionItemBody);
if (!empty($currentQuestionItemBody)) {
- 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 '$questionTempDir'. Open
global $questionTempDir;
- 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
Avoid unused local variables such as '$filePath'. Open
$filePath = null;
- 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
Variable "last_exercise_id" is not in valid camel caps format Open
if (!empty($last_exercise_id)) {
- Exclude checks
Variable "new_correct" is not in valid camel caps format Open
$answer->new_correct[$i] = 0;
- Exclude checks
Variable "new_weighting" is not in valid camel caps format Open
$answer->new_weighting[$i] = $question_array['weighting'][$key];
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
foreach ($exerciseInfo['question'] as $question_array) {
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
$totalCorrectWeight = $question_array['weighting'][0];
- Exclude checks
Doc comment for parameter $filePath does not match actual variable name $data Open
* @param string $filePath The absolute filepath
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
$question->updateTitle(formatText(strip_tags($question_array['title'])));
- Exclude checks
Variable "record_item_body" is not in valid camel caps format Open
global $record_item_body;
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
if (isset($question_array['weighting'][$key])) {
- Exclude checks
Consider putting global function "isQtiManifest" in a static class Open
function isQtiManifest($data)
- Exclude checks
Consider putting global function "qti_parse_file" in a static class Open
function qti_parse_file($data)
- Exclude checks
Variable "record_item_body" is not in valid camel caps format Open
$record_item_body = false;
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
$question->type = $question_array['type'];
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
$category = formatText(strip_tags($question_array['category']));
- Exclude checks
Variable "new_nbrAnswers" is not in valid camel caps format Open
$answer->new_nbrAnswers = count($answerList);
- Exclude checks
Consider putting global function "formatText" in a static class Open
function formatText($text)
- Exclude checks
Doc comment for parameter $filePath does not match actual variable name $data Open
* @param string $filePath The absolute filepath
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
if (isset($question_array['category'])) {
- Exclude checks
Variable "last_question_id" is not in valid camel caps format Open
$answer = new Answer($last_question_id);
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
$answerList = $question_array['answer'];
- Exclude checks
Variable "new_correct" is not in valid camel caps format Open
$answer->new_correct[$i] = 1;
- Exclude checks
Doc comment for parameter $filePath does not match actual variable name $data Open
* @param string $filePath The absolute filepath
- Exclude checks
Consider putting global function "qtiProcessManifest" in a static class Open
function qtiProcessManifest($data)
- Exclude checks
Variable "last_exercise_id" is not in valid camel caps format Open
$last_exercise_id = $exercise->getId();
- Exclude checks
Variable "new_weighting" is not in valid camel caps format Open
$totalCorrectWeight += $answer->new_weighting[$i];
- Exclude checks
Doc comment for parameter $exercisePath does not match actual variable name $data Open
* @param string $exercisePath
- Exclude checks
Superfluous parameter comment Open
* @param string $questionFile
- Exclude checks
Variable "answer_id" is not in valid camel caps format Open
$answer_id = $node->getAttribute('mapKey');
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
if (!in_array($question_array['type'], [UNIQUE_ANSWER, MULTIPLE_ANSWER, FREE_ANSWER])) {
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
if (!empty($question_array['description'])) {
- Exclude checks
Variable "new_answer" is not in valid camel caps format Open
$answer->new_answer[$i] = isset($answers['value']) ? formatText($answers['value']) : '';
- Exclude checks
Variable "new_position" is not in valid camel caps format Open
$answer->new_position[$i] = $i;
- Exclude checks
Variable "new_correct" is not in valid camel caps format Open
if ($answer->new_correct[$i]) {
- Exclude checks
Superfluous parameter comment Open
* @param string $file
- Exclude checks
Consider putting global function "isQtiQuestionBank" in a static class Open
function isQtiQuestionBank($data)
- Exclude checks
Variable "last_question_id" is not in valid camel caps format Open
$last_question_id = $question->getId();
- Exclude checks
Variable "new_weighting" is not in valid camel caps format Open
$answer->new_weighting[$i] = 0;
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
if (in_array($key, $question_array['correct_answers'])) {
- Exclude checks
Variable "last_exercise_id" is not in valid camel caps format Open
return $last_exercise_id;
- Exclude checks
Consider putting global function "parseQti2" in a static class Open
function parseQti2($xmlData)
- Exclude checks
Variable "correct_answer_value" is not in valid camel caps format Open
$currentQuestionItemBody .= '['.$correct_answer_value.']';
- Exclude checks
Consider putting global function "import_exercise" in a static class Open
function import_exercise($file)
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
$description .= $question_array['description'];
- Exclude checks
Variable "new_comment" is not in valid camel caps format Open
$answer->new_comment[$i] = isset($answers['feedback']) ? formatText($answers['feedback']) : null;
- Exclude checks
Variable "answer_id" is not in valid camel caps format Open
$exerciseInfo['question'][$currentQuestionIdent]['weighting'][$answer_id] = $node->getAttribute(
- Exclude checks
Variable "correct_answer_value" is not in valid camel caps format Open
$correct_answer_value = $exerciseInfo['question'][$currentQuestionIdent]['correct_answers'][$currentAnswerId];
- Exclude checks
Variable "question_array" is not in valid camel caps format Open
$answer->new_weighting[$i] = $question_array['weighting'][$key];
- Exclude checks
The variable $question_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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 $record_item_body is not named in camelCase. Open
function qti_parse_file($data)
{
global $record_item_body;
global $questionTempDir;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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 $last_question_id is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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 $correct_answer_value is not named in camelCase. Open
function parseQti2($xmlData)
{
global $exerciseInfo;
global $questionTempDir;
global $resourcesLinks;
- 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 $last_exercise_id is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_id is not named in camelCase. Open
function parseQti2($xmlData)
{
global $exerciseInfo;
global $questionTempDir;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_id is not named in camelCase. Open
function parseQti2($xmlData)
{
global $exerciseInfo;
global $questionTempDir;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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 $record_item_body is not named in camelCase. Open
function qti_parse_file($data)
{
global $record_item_body;
global $questionTempDir;
- 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 $correct_answer_value is not named in camelCase. Open
function parseQti2($xmlData)
{
global $exerciseInfo;
global $questionTempDir;
global $resourcesLinks;
- 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 $last_exercise_id is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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_array is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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 $last_exercise_id is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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 $last_question_id is not named in camelCase. Open
function import_exercise($file)
{
global $exerciseInfo;
global $resourcesLinks;
- 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();
}
}