chamilo/chamilo-lms

View on GitHub
src/CoreBundle/State/CategorizedExerciseResultStateProvider.php

Summary

Maintainability
A
0 mins
Test Coverage

The method displayQuestionListByAttempt() has an NPath complexity of 102840192. The configured NPath complexity threshold is 200.
Open

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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 class CategorizedExerciseResultStateProvider has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.
Open

class CategorizedExerciseResultStateProvider implements ProviderInterface
{
    public function __construct(
        private readonly EntityManagerInterface $entityManager,
        private readonly AuthorizationCheckerInterface $security,

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

The method displayQuestionListByAttempt uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $category_list[$objQuestionTmp->category]['no_answer']++;
                }

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 '$context'.
Open

    public function provide(Operation $operation, array $uriVariables = [], array $context = []): array|object|null

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 '$operation'.
Open

    public function provide(Operation $operation, array $uriVariables = [], array $context = []): array|object|null

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

            $objExercise->results_disabled,

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

            $show_only_score = true;

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

            $total_score += $result['score'];

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

                $category_list[$objQuestionTmp->category]['score'] += $my_total_score;

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

                    $category_list[$objQuestionTmp->category]['wrong']++;

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

            if (!empty($objQuestionTmp->category_list)) {

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

                    $category_list[$category_id]['total'] += $my_total_weight;

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

            if (!$category_was_added_for_this_test) {

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

        $category_list['total'] = [

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

                $category_list['none']['total'],

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

                $category_list['none']['total'],

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

            $total_weight += $result['weight'];

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

            $my_total_score = $result['score'];

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

            $scorePassed = ExerciseLib::scorePassed($my_total_score, $my_total_weight);

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

                    $category_list[$objQuestionTmp->category]['no_answer']++;

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

            'score' => $total_score,

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

            'total' => $total_weight,

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

                $category_list['none']['score'],

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

        $show_only_score = false;

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

            $objExercise->results_disabled,

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

                if (RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT === $objExercise->results_disabled) {

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

        foreach ($question_list as $questionId) {

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

            $my_total_weight = $result['weight'];

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

            $category_was_added_for_this_test = false;

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

                    if (!empty($my_total_score)) {

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

                $category_list[$objQuestionTmp->category]['score'] += $my_total_score;

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

                        $category_list[$objQuestionTmp->category]['passed']++;

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

        if (($show_results || $show_only_score) && $showTotalScore) {

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

                $category_list['none']['score'] += $my_total_score;

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

                $category_list[$category_id]['score'],

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

                $category_list[$category_id]['total'],

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

                        $total_score = $pluginEvaluation->getResultWithFormula(

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

                $category_list[$category_id]['total'],

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

            $category_list['total']['total'],

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

        $question_list = explode(',', $exerciseTracking->getDataTracking());

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

                $show_results,

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

                    $category_list[$category_id]['score'] += $my_total_score;

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

                    $category_list[$category_id]['total'] += $my_total_weight;

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

                    $category_was_added_for_this_test = true;

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

        if (isset($category_list['none']) && $category_list['none']['score'] > 0) {

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

                if (!isset($category_list[$objQuestionTmp->category])) {

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

                    $category_list[$objQuestionTmp->category] = [

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

                    $category_list[$category_id]['score'] += $my_total_score;

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

        if (!$show_results && !$show_only_score && RESULT_DISABLE_RADAR !== $objExercise->results_disabled) {

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

        if (isset($category_list['none']) && $category_list['none']['score'] > 0) {

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

        $total_score = $total_weight = 0;

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

                $category_was_added_for_this_test = true;

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

        foreach ($labelsWithId as $category_id => $title) {

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

            if (!isset($category_list[$category_id])) {

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

                $category_list[$category_id]['total'],

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

            $category_list['total']['total'],

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

            $show_results = true;

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

            $objExercise->results_disabled,

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

            $show_only_score = false;

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

            $scorePassed = ExerciseLib::scorePassed($my_total_score, $my_total_weight);

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

                foreach ($objQuestionTmp->category_list as $category_id) {

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

        return $category_list;

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

                foreach ($objQuestionTmp->category_list as $category_id) {

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

        $show_results = false;

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

            $show_results = true;

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

        if (RESULT_DISABLE_SHOW_SCORE_ONLY === $objExercise->results_disabled

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

                $category_list[$objQuestionTmp->category]['total_questions']++;

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

                $category_list[$category_id]['score'],

Missing function doc comment
Open

    public function __construct(

Closing brace must be on a line by itself
Open

    ) {}

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

        $question_list = array_map('intval', $question_list);

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

        if (!$show_results && !$show_only_score && RESULT_DISABLE_RADAR !== $objExercise->results_disabled) {

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

                $category_list[$category_id]['score'],

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

            $show_results = true;

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

        if (($show_results || $show_only_score) && $showTotalScore) {

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

                $category_list['none']['score'],

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

        $category_list = [

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

                $category_list[$objQuestionTmp->category]['total'] += $my_total_weight;

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

                    $category_list[$category_id]['total'] += $my_total_weight;

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

        if (!$show_results && !$show_only_score && RESULT_DISABLE_RADAR !== $objExercise->results_disabled) {

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array

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

            if (!isset($category_list[$category_id])) {

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

                $category_list[$category_id]['score'],

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

            $exercise_stat_info = $objExercise->get_stat_track_exercise_info_by_exe_id(

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

            if (false === $objExercise->hasResultsAccess($exercise_stat_info)) {

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

        $total_score = $total_weight = 0;

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

            $show_only_score = true;

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

                $show_only_score = false;

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

        if (empty($category_list)) {

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

                $category_list['none']['score'] += $my_total_score;

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

                $category_list[$category_id]['total'],

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

            $category_list['total']['score'],

Add a single space around assignment operators
Open

declare(strict_types=1);

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

        $question_list = array_map('intval', $question_list);

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

                    $show_only_score = false;

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

                if (RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT_NO_FEEDBACK === $objExercise->results_disabled) {

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

                    $show_only_score = false;

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

                $objExercise->results_disabled

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

                $category_list[$objQuestionTmp->category]['total'] += $my_total_weight;

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

                    $category_list[$category_id]['score'] += $my_total_score;

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

                $category_list['none']['total'] += $my_total_weight;

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

                $category_list['none']['total'] += $my_total_weight;

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

                        $total_weight = $pluginEvaluation->getMaxScore();

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

            $show_results = true;

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

            $category_list['total']['score'],

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly AuthorizationCheckerInterface $security,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly RequestStack $requestStack

Closing brace must be on a line by itself
Open

    ) {}

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly EntityManagerInterface $entityManager,

The variable $question_list is not named in camelCase.
Open

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $question_list is not named in camelCase.
Open

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $question_list is not named in camelCase.
Open

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $question_list is not named in camelCase.
Open

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private static function getStatsTableByAttempt(Exercise $exercise, array $category_list = []): array
    {
        if (empty($category_list)) {
            return [];
        }

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

    private function displayQuestionListByAttempt(
        Exercise $objExercise,
        TrackEExercise $exerciseTracking
    ): array {
        $courseId = api_get_course_int_id();

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

There are no issues that match your filters.

Category
Status