chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/exercise_show_functions.lib.php

Summary

Maintainability
A
0 mins
Test Coverage

The method display_calculated_answer has 10 parameters. Consider reducing the number of parameters to less than 10.
Open

    public static function display_calculated_answer(
        $exercise,
        $feedback_type,
        $answer,
        $id,

The method display_multiple_answer_true_false() has an NPath complexity of 8064. The configured NPath complexity threshold is 200.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 display_multiple_answer_combination_true_false() has an NPath complexity of 3840. The configured NPath complexity threshold is 200.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 display_multiple_answer_true_false has 12 parameters. Consider reducing the number of parameters to less than 10.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

The method displayMultipleAnswerTrueFalseDegreeCertainty() has an NPath complexity of 6144. The configured NPath complexity threshold is 200.
Open

    public static function displayMultipleAnswerTrueFalseDegreeCertainty(
        $exercise,
        $feedbackType,
        $studentChoice,
        $studentChoiceDegree,

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 display_unique_or_multiple_answer has 13 parameters. Consider reducing the number of parameters to less than 10.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

The method display_unique_or_multiple_answer() has an NPath complexity of 1026432. The configured NPath complexity threshold is 200.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 display_hotspot_answer() has an NPath complexity of 440. The configured NPath complexity threshold is 200.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 display_multiple_answer_combination_true_false has 12 parameters. Consider reducing the number of parameters to less than 10.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

Missing class import via use statement (line '787', column '29').
Open

            $question = new MultipleAnswerCombinationTrueFalse();

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 '657', column '25').
Open

        $question = new MultipleAnswerTrueFalseDegreeCertainty();

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 display_fill_in_blanks_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            echo '<tr><td>';
            echo Security::remove_XSS($answerHTML, COURSEMANAGERLOWSECURITY);
            echo '</td>';
            echo '</tr>';

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            if ($studentChoice) {
                $icon = StateIcon::CHECKBOX_MARKED;
            } else {
                $icon = StateIcon::CHECKBOX_BLANK;

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 displayMultipleAnswerTrueFalseDegreeCertainty uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '-';
            }

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 display_free_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '<tr>';
                echo Display::tag('td', ExerciseLib::getNotCorrectedYetText());
                echo '</tr>';
            }

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 display_hotspot_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $content .= '&nbsp;';
                }

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $icon = StateIcon::RADIOBOX_BLANK;
            }

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 display_multiple_answer_true_false uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $content .= '-';
            }

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '<td>&nbsp;</td>';
            }

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 displayMultipleAnswerTrueFalseDegreeCertainty uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    echo '-';
                }

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 display_calculated_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            if (empty($id)) {
                echo '<tr><td>'.Security::remove_XSS($answer).'</td></tr>';
            } else {
                echo '<tr><td>';

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 display_hotspot_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $content .= '&nbsp;';
            }

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            if ($answerCorrect) {
                $iconAnswer = StateIcon::CHECKBOX_MARKED;
            } else {
                $iconAnswer = StateIcon::CHECKBOX_BLANK;

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 display_calculated_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '<tr><td>';
                echo Security::remove_XSS($answer);
                echo '</tr>';
            }

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 display_hotspot_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $content .= '<td class="text-left" width="60%">&nbsp;</td>';
            }

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $icon = StateIcon::CHECKBOX_BLANK;
            }

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 displayMultipleAnswerTrueFalseDegreeCertainty uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            echo '-';
        }

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 display_multiple_answer_combination_true_false uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo $question->options[2];
            }

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 display_multiple_answer_combination_true_false uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '<td>&nbsp;</td>';
            }

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 display_multiple_answer_true_false uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $content .= '-';
                }

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 displayMultipleAnswerTrueFalseDegreeCertainty uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '<td>&nbsp;</td>';
            }

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 display_multiple_answer_combination_true_false uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    echo $question->options[2];
                }

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 display_calculated_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '<tr><td>';
                echo Security::remove_XSS($answer);
                echo '</td><td>';
                echo Security::remove_XSS($choice);

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $iconAnswer = StateIcon::RADIOBOX_BLANK;
            }

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $iconAnswer = StateIcon::CHECKBOX_BLANK;
            }

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 display_unique_or_multiple_answer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                echo '<td style="width:5%">';
                echo '-';
                echo '</td>';
            }

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 parameters such as '$exercise'.
Open

        $exercise,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$questionId'.
Open

        $questionId,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$originalStudentAnswer'.
Open

        $originalStudentAnswer = ''

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$resultsDisabled'.
Open

        $resultsDisabled = 0,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$answerType'.
Open

        $answerType,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$id'.
Open

        $id,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$ans'.
Open

        $ans,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$answerType'.
Open

        $answerType,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$ans'.
Open

        $ans,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$questionId'.
Open

        $questionId,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$id'.
Open

        $id,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$questionId'.
Open

        $questionId,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$resultsDisabled'.
Open

        $resultsDisabled,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused local variables such as '$course_id'.
Open

            $course_id = api_get_course_int_id();

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 parameters such as '$resultsDisabled'.
Open

        $resultsDisabled = 0

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$id'.
Open

        $id,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$showTotalScoreAndUserChoices'.
Open

        $showTotalScoreAndUserChoices,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$questionId'.
Open

        $questionId,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$resultsDisabled'.
Open

        $resultsDisabled = 0

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$feedback_type'.
Open

        $feedback_type,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$ans'.
Open

        $ans,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

The parameter $feedback_type is not named in camelCase.
Open

    public static function display_calculated_answer(
        $exercise,
        $feedback_type,
        $answer,
        $id,

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 $feedback_type is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $feedback_type is not named in camelCase.
Open

    public static function display_free_answer(
        $feedback_type,
        $answer,
        $exe_id,
        $questionId,

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 $feedback_type is not named in camelCase.
Open

    public static function display_oral_expression_answer(
        $feedback_type,
        $answer,
        $trackExerciseId,
        $questionId,

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 $exe_id is not named in camelCase.
Open

    public static function display_free_answer(
        $feedback_type,
        $answer,
        $exe_id,
        $questionId,

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

Method name "ExerciseShowFunctions::display_calculated_answer" is not in camel caps format
Open

    public static function display_calculated_answer(

Missing parameter name
Open

     * @param string    Answer text

Multi-line function call not indented correctly; expected 12 spaces but found 24
Open

                        $questionId

Doc comment for parameter $studentChoice does not match actual variable name $answer
Open

     * @param string $studentChoice

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = true;

Variable "hide_expected_answer" is not in valid camel caps format
Open

                if ($hide_expected_answer) {

Expected 39 spaces after parameter type; 1 found
Open

     * @param Exercise $exercise

Missing parameter name
Open

     * @param int       Question ID

Variable "exe_id" is not in valid camel caps format
Open

        $exe_id,

Method name "ExerciseShowFunctions::display_hotspot_answer" is not in camel caps format
Open

    public static function display_hotspot_answer(

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = false;

Variable "hide_expected_answer" is not in valid camel caps format
Open

            if (false === $hide_expected_answer) {

Expected 17 spaces after parameter name; 1 found
Open

     * @param int $feedbackType Feedback type

Expected 3 spaces after parameter type; 2 found
Open

     * @param string  $answerCorrect Correct answer comment

Expected 6 spaces after parameter type; 1 found
Open

     * @param int $resultsDisabled

Expected 5 spaces after parameter type; 1 found
Open

     * @param bool $showTotalScoreAndUserChoices

Variable "course_id" is not in valid camel caps format
Open

            $course_id = api_get_course_int_id();

Variable "new_options" is not in valid camel caps format
Open

            if (isset($new_options[$studentChoice])) {

Missing parameter name
Open

     * @param int       Exercise ID

Missing parameter name
Open

     * @param $trackExerciseId

Expected 13 spaces after parameter type; 1 found
Open

     * @param int $resultsDisabled

Variable "feedback_type" is not in valid camel caps format
Open

        if ($showAlertIfNotCorrected && !$questionScore && EXERCISE_FEEDBACK_TYPE_EXAM != $feedback_type && empty($comment) && empty($teacherAudio)) {

Doc comment for parameter $answer does not match actual variable name $answerId
Open

     * @param string $answer

Expected 3 spaces after parameter type; 2 found
Open

     * @param string  $answer Textual answer

Method name "ExerciseShowFunctions::display_multiple_answer_true_false" is not in camel caps format
Open

    public static function display_multiple_answer_true_false(

Variable "hide_expected_answer" is not in valid camel caps format
Open

            if (!$hide_expected_answer) {

Missing parameter name
Open

     * @param int Student choice

Missing parameter name
Open

     * @param string  Textual answer

Variable "feedback_type" is not in valid camel caps format
Open

        if (EXERCISE_FEEDBACK_TYPE_EXAM != $feedback_type) {

Missing parameter name
Open

     * @param $feedback_type

Doc comment for parameter $orderColor does not match actual variable name $resultsDisabled
Open

     * @param int    $orderColor

Blank line found at end of control structure
Open


Expected 19 spaces after parameter name; 1 found
Open

     * @param int $answerType Answer type

Expected 6 spaces after parameter type; 1 found
Open

     * @param int $studentChoice Student choice

Expected 6 spaces after parameter type; 1 found
Open

     * @param int $id Exercise ID

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = true;

Variable "new_options" is not in valid camel caps format
Open

                    $content .= get_lang($new_options[$answerCorrect]['title']);

Variable "hide_expected_answer" is not in valid camel caps format
Open

            if (!$hide_expected_answer) {

Expected 3 spaces after parameter type; 2 found
Open

     * @param string  $answerComment Comment on answer

Expected 6 spaces after parameter type; 1 found
Open

     * @param int $questionId Question ID

Expected 19 spaces after parameter name; 1 found
Open

     * @param int $questionId Question ID

Missing parameter name
Open

     * @param int Exercise ID

Multi-line function call not indented correctly; expected 16 spaces but found 20
Open

                    )

Missing class doc comment
Open

class ExerciseShowFunctions

Expected 16 spaces after parameter name; 1 found
Open

     * @param int $studentChoice Student choice

Variable "hide_expected_answer" is not in valid camel caps format
Open

        $hide_expected_answer = false;

Variable "new_options" is not in valid camel caps format
Open

            $new_options = [];

Variable "new_options" is not in valid camel caps format
Open

                if (isset($new_options[$answerCorrect])) {

Method name "ExerciseShowFunctions::display_multiple_answer_combination_true_false" is not in camel caps format
Open

    public static function display_multiple_answer_combination_true_false(

Variable "hide_expected_answer" is not in valid camel caps format
Open

        $hide_expected_answer = false;

Missing parameter name
Open

     * @param bool Whether to show the answer comment or not

Multi-line function call not indented correctly; expected 20 spaces but found 16
Open

                RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,

Missing parameter name
Open

     * @param int       Exercise ID

Variable "feedback_type" is not in valid camel caps format
Open

        $feedback_type,

Expected 13 spaces after parameter type; 1 found
Open

     * @param int $questionScore

Doc comment for parameter $feedback_type does not match actual variable name $exercise
Open

     * @param int    $feedback_type

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Expected 16 spaces after parameter name; 1 found
Open

     * @param string  $answerComment Comment on answer

Expected 5 spaces after parameter type; 1 found
Open

     * @param bool $ans Whether to show the answer comment or not

Variable "new_options" is not in valid camel caps format
Open

                if (isset($new_options[$studentChoice]) || in_array(

Method name "ExerciseShowFunctions::display_fill_in_blanks_answer" is not in camel caps format
Open

    public static function display_fill_in_blanks_answer(

Variable "feedback_type" is not in valid camel caps format
Open

        $feedback_type,

Missing parameter name
Open

     * @param $answer

Missing parameter name
Open

     * @param $questionId

Doc comment for parameter $answerComment does not match actual variable name $studentChoice
Open

     * @param string $answerComment

Variable "feedback_type" is not in valid camel caps format
Open

                if (0 == $feedback_type) {

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = true;

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Multi-line function call not indented correctly; expected 8 spaces but found 20
Open

                    );

Variable "feedback_type" is not in valid camel caps format
Open

        $feedback_type,

Variable "hide_expected_answer" is not in valid camel caps format
Open

        if (!$hide_expected_answer

Expected 16 spaces after parameter name; 1 found
Open

     * @param string  $answerCorrect Correct answer comment

Expected 27 spaces after parameter name; 1 found
Open

     * @param int $id Exercise ID

Missing parameter name
Open

     * @param string  Comment on answer

Doc comment for parameter $showTotalScoreAndUserChoices does not match actual variable name $orderColor
Open

     * @param bool   $showTotalScoreAndUserChoices

Variable "feedback_type" is not in valid camel caps format
Open

            if (EXERCISE_FEEDBACK_TYPE_EXAM != $feedback_type) {

Expected 6 spaces after parameter type; 1 found
Open

     * @param int $feedbackType Feedback type

Variable "new_options" is not in valid camel caps format
Open

            if (isset($new_options[$studentChoice])) {

Missing parameter name
Open

     * @param int Answer type

Missing parameter name
Open

     * @param int Question ID

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    if ($hide_expected_answer) {

Expected 14 spaces after parameter type; 1 found
Open

     *  @param Exercise $exercise

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = false;

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = false;

Variable "exe_id" is not in valid camel caps format
Open

        $comments = Event::get_comments($exe_id, $questionId);

Doc comment for parameter $resultsDisabled does not match actual variable name $answerComment
Open

     * @param int    $resultsDisabled

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        [

Method name "ExerciseShowFunctions::display_oral_expression_answer" is not in camel caps format
Open

    public static function display_oral_expression_answer(

Method name "ExerciseShowFunctions::display_unique_or_multiple_answer" is not in camel caps format
Open

    public static function display_unique_or_multiple_answer(

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Expected 23 spaces after parameter name; 1 found
Open

     * @param string  $answer Textual answer

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Variable "new_options" is not in valid camel caps format
Open

                    $new_options[$item['iid']] = $item;

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = true;

Method name "ExerciseShowFunctions::display_free_answer" is not in camel caps format
Open

    public static function display_free_answer(

Multi-line function call not indented correctly; expected 12 spaces but found 24
Open

                        $trackExerciseId,

Variable "hide_expected_answer" is not in valid camel caps format
Open

        $hide_expected_answer = false;

Expected 6 spaces after parameter type; 1 found
Open

     * @param int $answerType Answer type

Expected 26 spaces after parameter name; 1 found
Open

     * @param bool $ans Whether to show the answer comment or not

Variable "results_disabled" is not in valid camel caps format
Open

                    $exercise->results_disabled,

Missing parameter name
Open

     * @param string  Correct answer comment

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Missing parameter name
Open

     * @param string    Answer text

Variable "hide_expected_answer" is not in valid camel caps format
Open

        $hide_expected_answer = false;

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = false;

Multi-line function call not indented correctly; expected 20 spaces but found 16
Open

                RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        $resultsDisabled,

Missing parameter name
Open

     * @param int       Question ID

Variable "feedback_type" is not in valid camel caps format
Open

        $feedback_type,

Doc comment for parameter $answerId does not match actual variable name $feedback_type
Open

     * @param int    $answerId

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    $hide_expected_answer = false;

Variable "new_options" is not in valid camel caps format
Open

                $content .= get_lang($new_options[$studentChoice]['title']);

Variable "hide_expected_answer" is not in valid camel caps format
Open

                    if ($hide_expected_answer) {

Variable "hide_expected_answer" is not in valid camel caps format
Open

                $hide_expected_answer = true;

Variable "hide_expected_answer" is not in valid camel caps format
Open

            if (!$hide_expected_answer) {

Multi-line function call not indented correctly; expected 12 spaces but found 24
Open

                        $questionId

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            ) {

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        [

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            ) {

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        $resultsDisabled,

Multi-line function call not indented correctly; expected 12 spaces but found 24
Open

                        $trackExerciseId,

Multi-line function call not indented correctly; expected 8 spaces but found 20
Open

                    );

Multi-line function call not indented correctly; expected 20 spaces but found 16
Open

                RESULT_DISABLE_SHOW_ONLY_IN_CORRECT_ANSWER,

Multi-line function call not indented correctly; expected 16 spaces but found 20
Open

                    )

Multi-line function call not indented correctly; expected 20 spaces but found 16
Open

                RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS_AND_RANKING,

The variable $new_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_type is not named in camelCase.
Open

    public static function display_free_answer(
        $feedback_type,
        $answer,
        $exe_id,
        $questionId,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $exe_id is not named in camelCase.
Open

    public static function display_free_answer(
        $feedback_type,
        $answer,
        $exe_id,
        $questionId,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_type is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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_type is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_type is not named in camelCase.
Open

    public static function display_oral_expression_answer(
        $feedback_type,
        $answer,
        $trackExerciseId,
        $questionId,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $course_id is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 $hide_expected_answer is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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_options is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

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 display_fill_in_blanks_answer is not named in camelCase.
Open

    public static function display_fill_in_blanks_answer(
        $exercise,
        $feedbackType,
        $answer,
        $id,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_multiple_answer_combination_true_false is not named in camelCase.
Open

    public static function display_multiple_answer_combination_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_calculated_answer is not named in camelCase.
Open

    public static function display_calculated_answer(
        $exercise,
        $feedback_type,
        $answer,
        $id,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_oral_expression_answer is not named in camelCase.
Open

    public static function display_oral_expression_answer(
        $feedback_type,
        $answer,
        $trackExerciseId,
        $questionId,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_hotspot_answer is not named in camelCase.
Open

    public static function display_hotspot_answer(
        $exercise,
        $feedback_type,
        $answerId,
        $answer,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_unique_or_multiple_answer is not named in camelCase.
Open

    public static function display_unique_or_multiple_answer(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_free_answer is not named in camelCase.
Open

    public static function display_free_answer(
        $feedback_type,
        $answer,
        $exe_id,
        $questionId,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method display_multiple_answer_true_false is not named in camelCase.
Open

    public static function display_multiple_answer_true_false(
        $exercise,
        $feedbackType,
        $answerType,
        $studentChoice,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status