chamilo/chamilo-lms

View on GitHub
public/main/tracking/exams.php

Summary

Maintainability
A
0 mins
Test Coverage

The function processStudentList() has an NPath complexity of 198144. The configured NPath complexity threshold is 200.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Username');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Fail');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$line' which will lead to PHP notices.
Open

                $line++;
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$row_not_global' which will lead to PHP notices.
Open

    $row_not_global['exercise'] = $exercise->getTitle();
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$row_not_global' which will lead to PHP notices.
Open

                $row_not_global['results'][] = $row['array'];
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Status');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Courses');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Attempts');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Not taken');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('User');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$row_not_global' which will lead to PHP notices.
Open

            $export_array[] = $row_not_global;
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Percentage');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $list[] = $headers;
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$row_not_global' which will lead to PHP notices.
Open

                $row_not_global['usernames'][] = $row['username'];
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Taken');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$row_not_global' which will lead to PHP notices.
Open

                $row_not_global['users'][] = $row['user'];
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Tests');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Total learners');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = get_lang('Tests');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $list[] = $headers;
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$headers' which will lead to PHP notices.
Open

        $headers[] = sprintf(get_lang('Pass minimum %s'), $filter_score).'%';
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

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

                } else {
                    $userRow .= '<td style="background-color:#FC9A9E"  >';
                    $userRow .= get_lang('Fail').'</td>';
                    $tempArray[] = get_lang('Fail');
                }
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

            } else {
                $score = '-';
                $userRow .= '<td>';
                $userRow .= '-';
                $tempArray[] = '-';
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

    } else {
        $headers[] = get_lang('Tests');
        $headers[] = get_lang('User');
        $headers[] = get_lang('Username');
        $headers[] = get_lang('Percentage');
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

                } else {
                    $studentResultContent[] = $row;
                }
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

    } else {
        $html .= '<td>';
    }
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

    } else {
        $students = CourseManager::get_student_list_from_course_code(
            $courseInfo['code'],
            true,
            $sessionId,
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

        } else {
            $html .= '<td style="background-color:#FCE89A"  >';
        }
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

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

                $line++;
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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

The parameter $filter_score is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

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 "is_allowedToTrack" is not in valid camel caps format
Open

if (!$is_allowedToTrack) {

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

                                $export_array_global = array_merge(

Missing parameter name
Open

 * @param $b

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

        $headers[] = sprintf(get_lang('Pass minimum %s'), $filter_score).'%';

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

        $export_array_global[] = $globalRow;

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

        $actionsRight .= '<a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exerciseId.'">'.

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

                                    $filter_score,

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

                                $filter_score,

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

                                    $filter_score,

Missing parameter name
Open

 * @param $a

Consider putting global function "export_complete_report_xls" in a static class
Open

function export_complete_report_xls($filename, $array)

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

    global $global, $filter_score;

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

                foreach ($row['results'][$key] as $result_item) {

Missing function doc comment
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)

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

            $total_with_parameter_score++;

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

        if (!empty($total_with_parameter_score)) {

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

$export_array_global = $export_array = [];

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

                                        $export_array_global,

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

        $html .= $fail = $taken - $total_with_parameter_score;

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

            api_get_self().'?'.api_get_cidreq().'&export=1&score='.$filter_score.'&exercise_id='.$exerciseId

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

$export_array_global = $export_array = [];

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

                            $filter_score,

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

                            $export_array_global,

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

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)

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

$s_css_class = null;

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

                                    $filter_score,

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

    $row_not_global['exercise'] = $exercise->getTitle();

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

        $globalRow[] = $not_taken;

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

                                    $export_array_global = array_merge(

Consider putting global function "sort_user" in a static class
Open

function sort_user($a, $b)

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

                $row_not_global['users'][] = $row['user'];

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

$this_section = SECTION_TRACKING;

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

$form->setDefaults(['score' => $filter_score]);

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

                            $export_array_global = array_merge($export_array_global, $result['export_array_global']);

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

                if ($percentageScore >= $filter_score) {

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

$filter_score = isset($_REQUEST['score']) ? intval($_REQUEST['score']) : 70;

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

    $html .= '<th>'.sprintf(get_lang('Pass minimum %s'), $filter_score).'%</th>';

Consider putting global function "processStudentList" in a static class
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)

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

    $total_with_parameter_score = 0;

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

            $export_array[] = $row_not_global;

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

                        $export_array_global = array_merge(

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

    $export_array = [];

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

        if ($percentageScore >= $filter_score) {

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

                                    $export_array_global,

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

                    $listItem[] = html_entity_decode(strip_tags($result_item));

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

            $export_array[] = $row_not_global;

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

    echo '<h3>'.sprintf(get_lang('Filtering with score %s'), $filter_score).'%</h3>';

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

                                    $export_array_global,

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

        $html .= $not_taken = $totalStudents - $taken;

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

$is_allowedToTrack = api_is_course_admin() || api_is_platform_admin(true) || api_is_session_general_coach();

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

                                $export_array_global = array_merge(

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

    export_complete_report_xls($filename, $export_array_global);

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

        'export_array_global' => $global ? $export_array_global : $export_array,

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

        'export_array_global' => $global ? $export_array_global : $export_array,

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

        $nb_menu_items = count($menuItems);

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

        $html .= $total_with_parameter_score;

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

        if ($nb_menu_items > 1) {

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

                            $export_array_global = array_merge($export_array_global, $result['export_array_global']);

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

    $export_array_global = [];

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

                $row_not_global['results'][] = $row['array'];

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

                $row_not_global['usernames'][] = $row['username'];

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

        $globalRow[] = $total_with_parameter_score;

The variable $export_array is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $filter_score is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $export_array is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $export_array_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_not_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $filter_score is not named in camelCase.
Open

function export_complete_report_xls($filename, $array)
{
    global $global, $filter_score;

    $list = [];
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $result_item is not named in camelCase.
Open

function export_complete_report_xls($filename, $array)
{
    global $global, $filter_score;

    $list = [];
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $filter_score is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $export_array_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_taken is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_not_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $export_array_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_not_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $export_array is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $filter_score is not named in camelCase.
Open

function export_complete_report_xls($filename, $array)
{
    global $global, $filter_score;

    $list = [];
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $result_item is not named in camelCase.
Open

function export_complete_report_xls($filename, $array)
{
    global $global, $filter_score;

    $list = [];
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $not_taken is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_not_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_not_global is not named in camelCase.
Open

function processStudentList($filter_score, $global, Cquiz $exercise, $courseInfo, $sessionId, $newSessionList)
{
    /*if ((isset($exercise['id']) && empty($exercise['id'])) ||
        !isset($exercise['id'])
    ) {
Severity: Minor
Found in public/main/tracking/exams.php by phpmd

CamelCaseVariableName

Since: 0.2

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