chamilo/chamilo-lms

View on GitHub
public/main/user/subscribe_user.php

Summary

Maintainability
A
0 mins
Test Coverage

The function get_user_data() has an NPath complexity of 8496. The configured NPath complexity threshold is 200.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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

The function get_number_of_users() has an NPath complexity of 440. The configured NPath complexity threshold is 200.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 '$users_of_course' which will lead to PHP notices.
Open

            $users_of_course[] = $course_user['user_id'];
Severity: Minor
Found in public/main/user/subscribe_user.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 '$users_of_course' which will lead to PHP notices.
Open

            $users_of_course[] = $course_user['user_id'];
Severity: Minor
Found in public/main/user/subscribe_user.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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $sql = "SELECT COUNT(u.id)
                    FROM $user_table u
                    LEFT JOIN $course_user_table cu
                    ON u.id = cu.user_id and c_id = $courseId
Severity: Minor
Found in public/main/user/subscribe_user.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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $a_course_users = CourseManager:: get_user_list_from_course_code(
                $courseCode,
                0
            );
Severity: Minor
Found in public/main/user/subscribe_user.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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $sql = "SELECT COUNT(u.id)
                    FROM $user_table u
                    LEFT JOIN $course_user_table cu
                    ON u.id = cu.user_id AND c_id = $courseId";
Severity: Minor
Found in public/main/user/subscribe_user.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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $sql .= " WHERE cu.user_id IS NULL $studentRoleFilter ";
            }
Severity: Minor
Found in public/main/user/subscribe_user.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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        // students
        if (0 != $sessionId) {
            $sql = "SELECT COUNT(u.id)
                    FROM $user_table u
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $sql .= " WHERE
                            cu.user_id IS NULL
                            $studentRoleFilter AND
                            (u.official_code <> 'ADMIN' OR u.official_code IS NULL) ";
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $sql .= " WHERE cu.user_id IS NULL $teacherRoleFilter";
            }
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $sql .= " WHERE
                            cu.user_id IS NULL
                            $studentRoleFilter AND
                            access_url_id = $url_access_id ";
Severity: Minor
Found in public/main/user/subscribe_user.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 display_extra_profile_fields_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $selected = false;
                    }
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $sql .= " WHERE
                                    cu.user_id IS NULL
                                    $teacherRoleFilter AND
                                    access_url_id = $url_access_id ";
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $sql .= " WHERE cu.user_id IS NULL $studentRoleFilter ";
            }
Severity: Minor
Found in public/main/user/subscribe_user.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 registerFilter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $type = STUDENT;
    }
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $select_fields = "u.id    AS col0,
                u.official_code        AS col1,
                ".($is_western_name_order
                ? "u.firstname         AS col2,
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $a_course_users = CourseManager::get_user_list_from_course_code($course_code, 0);
        }
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            // adding a teacher NOT through a session
            $sql = "SELECT $select_fields
                    FROM $user_table u
                    LEFT JOIN $course_user_table cu
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        // adding a student
        if (!empty($sessionId)) {
            $sql = "SELECT $select_fields
                    FROM $user_table u
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $sql .= " WHERE
                            cu.user_id IS NULL
                            $teacherRoleFilter AND
                            (u.official_code <> 'ADMIN' OR u.official_code IS NULL) ";
Severity: Minor
Found in public/main/user/subscribe_user.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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $sql = "SELECT $select_fields
                    FROM $user_table u
                    LEFT JOIN $course_user_table cu
                    ON
Severity: Minor
Found in public/main/user/subscribe_user.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 '$users_of_course'.
Open

            $users_of_course[] = $course_user['user_id'];
Severity: Minor
Found in public/main/user/subscribe_user.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

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

            $additional_users = search_additional_profile_fields($keyword);
Severity: Minor
Found in public/main/user/subscribe_user.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

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

            $users_of_course[] = $course_user['user_id'];
Severity: Minor
Found in public/main/user/subscribe_user.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

Avoid unused parameters such as '$url_params'.
Open

function active_filter($active, $url_params, $row)
Severity: Minor
Found in public/main/user/subscribe_user.php by phpmd

UnusedFormalParameter

Since: 0.2

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

Example

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

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

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

                foreach ($field_details[9] as $option_id => $option_details) {
Severity: Minor
Found in public/main/user/subscribe_user.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

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

    foreach ($profiling_field_options_exact_values as $profilingkey => $profilingvalue) {
Severity: Minor
Found in public/main/user/subscribe_user.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

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

    foreach ($extra as $id => $field_details) {
Severity: Minor
Found in public/main/user/subscribe_user.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

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

            $additional_users = search_additional_profile_fields($keyword);
Severity: Minor
Found in public/main/user/subscribe_user.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 $number_of_items is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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

The parameter $user_id is not named in camelCase.
Open

function registerFilter($user_id)
{
    if (isset($_REQUEST['type']) && COURSEMANAGER == $_REQUEST['type']) {
        $type = COURSEMANAGER;
    } else {
Severity: Minor
Found in public/main/user/subscribe_user.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

The parameter $url_params is not named in camelCase.
Open

function active_filter($active, $url_params, $row)
{
    $_user = api_get_user_info();
    if ('1' == $active) {
        $action = 'Accountactive';
Severity: Minor
Found in public/main/user/subscribe_user.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 "tool_name" is not in valid camel caps format
Open

Display::display_header($tool_name, 'User');

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

                    FROM $user_table u

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

$is_western_name_order = api_is_western_name_order();

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

    echo '<br/>'.get_lang('Search resultsFor').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';

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

                    FROM $user_table u

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

                if (-1 != $url_access_id) {

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

                            FROM $user_table u

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

                if (-1 != $url_access_id) {

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

                    LEFT JOIN $tbl_session_rel_course_user cu

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

                            FROM $user_table u

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

                    $userInfo = api_get_user_info($user_id);

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

                    LEFT JOIN $course_user_table cu

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

    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);

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

                if (-1 != $url_access_id) {

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

$this_section = SECTION_COURSES;

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

                            INNER JOIN  $tbl_url_rel_user as url_rel_user

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

                if (-1 != $url_access_id) {

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

                                    $user_id,

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

                    $tbl_url_rel_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

                        FROM $user_table u

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

                        INNER JOIN  $tbl_url_rel_user as url_rel_user

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

                            LEFT JOIN $tbl_session_rel_course_user cu

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

                                access_url_id = $url_access_id AND

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

                    $tbl_url_rel_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

$list_Registerister_user = '';

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

                        LEFT JOIN $course_user_table cu

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

                $url_access_id = api_get_current_access_url_id();

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

                    $tbl_url_rel_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

$list_not_Registerister_user = '';

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

    ($is_western_name_order xor $sort_by_first_name) ? 3 : 2

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

    $tbl_session_rel_course_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);

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

                    FROM $user_table u

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

                    LEFT JOIN $table_user_field_values field_values

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

                                CourseManager::subscribeUser($user_id, $courseInfo['real_id'], COURSEMANAGER);

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

                            CourseManager::subscribeUser($user_id, $courseInfo['real_id']);

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

                $url_access_id = api_get_current_access_url_id();

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

                            INNER JOIN $tbl_url_rel_user as url_rel_user

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

$current_course_tool = TOOL_USER;

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

    $tool_name = get_lang('Search results');

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

                    $tbl_url_rel_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

                            access_url_id = $url_access_id ";

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

                            INNER JOIN $tbl_url_rel_user as url_rel_user

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

$tool_name = get_lang('Enroll users to course');

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

    ($is_western_name_order xor $sort_by_first_name) ? 3 : 2

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

                $url_access_id = api_get_current_access_url_id();

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

$sort_by_first_name = api_sort_by_first_name();

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

                    FROM $user_table u

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

                    LEFT JOIN $course_user_table cu

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

                            LEFT JOIN $tbl_session_rel_course_user cu

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

                        field_values.value = '".Database::escape_string($field_identification[1])."'

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

                            LEFT JOIN $course_user_table cu

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

    $keyword_name = Security::remove_XSS($_POST['keyword']);

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

function get_number_of_users()

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

    $user_table = Database::get_main_table(TABLE_MAIN_USER);

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

                                access_url_id = $url_access_id

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

                            FROM $user_table u

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

                $field_identification = explode('*', $_GET['subscribe_user_filter_value']);

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

                                  access_url_id = $url_access_id

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

    $tool_name = get_lang('Enroll teachers');

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

        'name' => $tool_name,

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

                foreach ($_POST['user'] as $index => $user_id) {

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

    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);

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

                    LEFT JOIN $tbl_session_rel_course_user cu

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

                        field_values.field_id = '".intval($field_identification[0])."' AND

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

                $url_access_id = api_get_current_access_url_id();

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

            $additional_users = search_additional_profile_fields($keyword);

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

    $course_code = api_get_course_id();

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

        $select_fields = "u.id    AS col0,

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

                    FROM $user_table u

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

                if (-1 != $url_access_id) {

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

                            INNER JOIN $tbl_url_rel_user as url_rel_user

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

            $sql = "SELECT $select_fields

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

                        field_values.field_id = '".intval($field_identification[0])."' AND

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

                    LEFT JOIN $course_user_table cu

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

                                access_url_id = $url_access_id

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

            $a_course_users = CourseManager::get_user_list_from_course_code($course_code, $sessionId);

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

    return $count_user;

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

    $result_profiling = Database::query($sql);

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

    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);

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

    $sql = "SELECT * FROM $table_user_field_options

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

                $field_identification = explode('*', $_GET['subscribe_user_filter_value']);

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

                                field_values.value = '".Database::escape_string($field_identification[1])."'";

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

                    FROM $user_table u

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

            $sql = "SELECT $select_fields

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

                    FROM $user_table u

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

                    LEFT JOIN $table_user_field_values field_values

Empty lines are not allowed in multi-line function calls
Open


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

    while ($profiled_users = Database::fetch_array($result)) {

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

function display_extra_profile_fields_filter()

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

                    LEFT JOIN $tbl_session_rel_course_user cu

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

                            FROM $user_table u

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

                $field_identification = explode('*', $_GET['subscribe_user_filter_value']);

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

function registerFilter($user_id)

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

                    $return .= '<option value="'.$field_details[0].'*'.$option_details[1].'" '.$selected.'>'.$option_details[2].'</option>';

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

function get_user_data($from, $number_of_items, $column, $direction)

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

                $field_identification = explode('*', $_GET['subscribe_user_filter_value']);

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

            $a_course_users = CourseManager::get_user_list_from_course_code($course_code, 0);

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

        foreach ($a_course_users as $course_user) {

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

function active_filter($active, $url_params, $row)

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

                    $return .= '<option value="'.$field_details[0].'*'.$option_details[1].'" '.$selected.'>'.$option_details[2].'</option>';

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

    $user_table = Database::get_main_table(TABLE_MAIN_USER);

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

                                    access_url_id = $url_access_id ";

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

                        $field_identification = explode('*', $_GET['subscribe_user_filter_value']);

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

function active_filter($active, $url_params, $row)

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

    $_user = api_get_user_info();

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

    foreach ($profiling_field_options_exact_values as $profilingkey => $profilingvalue) {

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

                $return .= '<optgroup label="'.$field_details[3].'">';

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

                foreach ($field_details[9] as $option_id => $option_details) {

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

            $a_course_users = CourseManager:: get_user_list_from_course_code(

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

        foreach ($a_course_users as $course_user) {

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

        $count_user = $row[0];

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

    $url_access_id = api_get_current_access_url_id();

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

        $select_fields = "u.id              AS col0,

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

                        LEFT JOIN $course_user_table cu

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

    $number_of_items = (int) $number_of_items;

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

    $profiling_field_options_exact_values_sql = '';

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

            $a_course_users = CourseManager:: get_user_list_from_course_code(

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

            $users_of_course[] = $course_user['user_id'];

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

                    INNER JOIN $tbl_url_rel_user as url_rel_user

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

                        field_values.field_id = '".intval($field_identification[0])."' AND

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

                            LEFT JOIN $course_user_table cu

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

                                field_values.field_id = '".intval($field_identification[0])."' AND

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

            $users_of_course[] = $course_user['user_id'];

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

function registerFilter($user_id)

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

    $user_id = (int) $user_id;

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

    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);

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

    $table_user = Database::get_main_table(TABLE_MAIN_USER);

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

        $profiling_field_options_exact_values[] = $profiling_field_options;

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

        $additional_users[$profiled_users['col0']] = $profiled_users;

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

                        $field_details[0].'*'.$option_details[1] == $_GET['subscribe_user_filter_value']

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

    $tbl_session_rel_course_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);

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

                ".($is_western_name_order

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

            $sql = "SELECT $select_fields

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

                    LEFT JOIN $course_user_table cu

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

                        $field_identification = explode('*', $_GET['subscribe_user_filter_value']);

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

                $sql .= " INNER JOIN $tbl_url_rel_user as url_rel_user

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

                $field_identification = explode('*', $_GET['subscribe_user_filter_value']);

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

    $sql .= " LIMIT $from, $number_of_items";

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

function search_additional_profile_fields($keyword)

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

    while ($profiling_field_options = Database::fetch_array($result_profiling)) {

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

        $profiling_field_options_exact_values_sql .= " OR (field_id = '".$profilingvalue['field_id']."' AND value='".$profilingvalue['option_value']."') ";

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

        $additional_users[$profiled_users['col0']] = $profiled_users;

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

    return $additional_users;

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

    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);

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

                    FROM $user_table u

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

                        field_values.value = '".Database::escape_string($field_identification[1])."'";

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

                        field_values.value = '".Database::escape_string($field_identification[1])."'";

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

                if (-1 != $url_access_id) {

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

                                field_values.value = '".Database::escape_string($field_identification[1])."' AND

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

                            access_url_id = $url_access_id ";

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

        $profiling_field_options_exact_values[] = $profiling_field_options;

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

            FROM $table_user user, $table_user_field_values user_values, $tableExtraField e

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

            FROM $table_user user, $table_user_field_values user_values, $tableExtraField e

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

    foreach ($extra as $id => $field_details) {

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

    $tbl_url_rel_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

                        field_values.field_id = '".intval($field_identification[0])."' AND

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

                        field_values.value = '".Database::escape_string($field_identification[1])."'";

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

                            LEFT JOIN $table_user_field_values field_values

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

                ".($is_western_name_order

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

        foreach ($a_course_users as $course_user) {

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

                    LEFT JOIN $tbl_session_rel_course_user cu

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

    $number_of_items = (int) $number_of_items;

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

                    $sql = "SELECT $select_fields

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

                foreach ($field_details[9] as $option_id => $option_details) {

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

            $users_of_course[] = $course_user['user_id'];

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

function email_filter($email)

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

    if ($row['0'] != $_user['user_id']) {

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

    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);

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

                foreach ($field_details[9] as $option_id => $option_details) {

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

                        $field_details[0].'*'.$option_details[1] == $_GET['subscribe_user_filter_value']

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

function get_user_data($from, $number_of_items, $column, $direction)

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

                    LEFT JOIN $table_user_field_values field_values

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

            $sql .= " AND access_url_id = $url_access_id";

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

                    LEFT JOIN $table_user_field_values field_values

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

                        field_values.field_id = '".intval($field_identification[0])."' AND

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

                $sql .= " AND access_url_id = $url_access_id";

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

            $a_course_users = CourseManager::get_user_list_from_course_code($course_code, $sessionId);

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

            $sql = "SELECT $select_fields

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

                            LEFT JOIN $table_user_field_values field_values

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

                                field_values.field_id = '".intval($field_identification[0])."' AND

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

                    LEFT JOIN $table_user_field_values field_values

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

                        FROM $user_table u

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

                        INNER JOIN $tbl_url_rel_user as url_rel_user

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

            $a_course_users = CourseManager::get_user_list_from_course_code($course_code, 0);

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

    $result = '<a class="btn btn-small btn--primary" href="'.api_get_self().'?'.api_get_cidreq().'&Registerister=yes&type='.$type.'&user_id='.$user_id.'">'.

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

                (field_value LIKE '%".$keyword."%'".$profiling_field_options_exact_values_sql.")";

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

    $additional_users = [];

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

        $additional_users[$profiled_users['col0']] = $profiled_users;

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

                    $return .= '<option value="'.$field_details[0].'*'.$option_details[1].'" '.$selected.'>'.$option_details[2].'</option>';

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

            $users_of_course[] = $course_user['user_id'];

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

    $is_western_name_order = api_is_western_name_order();

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

                        field_values.value = '".Database::escape_string($field_identification[1])."'";

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

                    $sql = "SELECT $select_fields

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

            $additional_users = search_additional_profile_fields($keyword);

Empty lines are not allowed in multi-line function calls
Open


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

        switch ($field_details[2]) {

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

        foreach ($a_course_users as $course_user) {

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

    $count_user = 0;

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

    $user_id = (int) $user_id;

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

    while ($profiling_field_options = Database::fetch_array($result_profiling)) {

The variable $table_user_field_values is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $additional_users is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $a_course_users is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $a_course_users is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $count_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $is_western_name_order is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $users_of_course is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $a_course_users is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_code is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $is_western_name_order is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $count_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $_user is not named in camelCase.
Open

function active_filter($active, $url_params, $row)
{
    $_user = api_get_user_info();
    if ('1' == $active) {
        $action = 'Accountactive';
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $is_western_name_order is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $users_of_course is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $count_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $additional_users is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user is not named in camelCase.
Open

function get_number_of_users()
{
    // Database table definition
    $user_table = Database::get_main_table(TABLE_MAIN_USER);
    $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiling_field_options_exact_values is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_id is not named in camelCase.
Open

function registerFilter($user_id)
{
    if (isset($_REQUEST['type']) && COURSEMANAGER == $_REQUEST['type']) {
        $type = COURSEMANAGER;
    } else {
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiled_users is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiling_field_options is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $additional_users is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $a_course_users is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $number_of_items is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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_profiling is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiling_field_options_exact_values_sql is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $option_id is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiled_users is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $a_course_users is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $number_of_items is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiling_field_options is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $option_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_id is not named in camelCase.
Open

function registerFilter($user_id)
{
    if (isset($_REQUEST['type']) && COURSEMANAGER == $_REQUEST['type']) {
        $type = COURSEMANAGER;
    } else {
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_session_rel_course_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiling_field_options_exact_values_sql is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $additional_users is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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_profiling is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiled_users is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $number_of_items is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $tbl_url_rel_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_options is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiling_field_options_exact_values is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $profiling_field_options_exact_values_sql is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $option_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $option_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $a_course_users is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_options is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $additional_users is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $url_access_id is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_code is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $_user is not named in camelCase.
Open

function active_filter($active, $url_params, $row)
{
    $_user = api_get_user_info();
    if ('1' == $active) {
        $action = 'Accountactive';
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $option_details is not named in camelCase.
Open

function display_extra_profile_fields_filter()
{
    // getting all the additional user profile fields
    $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
    $return = '<option value="">'.get_lang('Select filter').'</option>';
Severity: Minor
Found in public/main/user/subscribe_user.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 $select_fields is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_code is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_id is not named in camelCase.
Open

function registerFilter($user_id)
{
    if (isset($_REQUEST['type']) && COURSEMANAGER == $_REQUEST['type']) {
        $type = COURSEMANAGER;
    } else {
Severity: Minor
Found in public/main/user/subscribe_user.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 $table_user_field_values is not named in camelCase.
Open

function search_additional_profile_fields($keyword)
{
    // database table definitions
    $table_user_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
    $table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $course_user_table is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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 $field_identification is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    $url_access_id = api_get_current_access_url_id();
    $course_code = api_get_course_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/user/subscribe_user.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