chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

function get_number_of_users()
{
    $counter = 0;
    $sessionId = api_get_session_id();
    $courseCode = api_get_course_id();
Severity: Minor
Found in public/main/user/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 modify_filter() has an NPath complexity of 4208. The configured NPath complexity threshold is 200.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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_user_data() has an NPath complexity of 132192. The configured NPath complexity threshold is 200.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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

Missing class import via use statement (line '924', column '40').
Open

                $extraFieldValue = new ExtraFieldValue('user');
Severity: Minor
Found in public/main/user/user.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '923', column '41').
Open

                $extraFieldOption = new ExtraFieldOption('user');
Severity: Minor
Found in public/main/user/user.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method 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 {
            $status = 0;
        }
Severity: Minor
Found in public/main/user/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 {
        if (COURSEMANAGER == $type) {
            $status = 2;
        } else {
            $status = 0;
Severity: Minor
Found in public/main/user/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 {
        $users = CourseManager::get_user_list_from_course_code(
            $courseCode,
            0,
            null,
Severity: Minor
Found in public/main/user/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 {
                $order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
            }
Severity: Minor
Found in public/main/user/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 {
            $active = false;
        }
Severity: Minor
Found in public/main/user/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 {
        $status = 0;
        if (COURSEMANAGER == $type) {
            $status = 2;
        }
Severity: Minor
Found in public/main/user/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 {
                    $temp[] = $userData['lastname'];
                    $temp[] = $userData['firstname'];
                }
Severity: Minor
Found in public/main/user/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 {
                    $temp[] = $userData['lastname'];
                    $temp[] = $userData['firstname'];
                }
Severity: Minor
Found in public/main/user/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 modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        // Show buttons for unsubscribe
        if (1 == $course_info['unsubscribe']) {
            if ($user_id == $current_user_id) {
                $result .= '<a
Severity: Minor
Found in public/main/user/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 {
            $active = false;
        }
Severity: Minor
Found in public/main/user/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 {
                $order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
            }
Severity: Minor
Found in public/main/user/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 {
                $order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
            }
Severity: Minor
Found in public/main/user/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 {
                            $temp[] = '';
                        }
Severity: Minor
Found in public/main/user/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 {
                $temp[] = '';
                $temp[] = $photo;
                $temp[] = $userData['official_code'];

Severity: Minor
Found in public/main/user/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 {
                                $temp[] = Security::remove_XSS($data['value']);
                            }
Severity: Minor
Found in public/main/user/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 modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $disabled = '';
            }
Severity: Minor
Found in public/main/user/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 parameters such as '$row'.
Open

function modify_filter($user_id, $row, $data)
Severity: Minor
Found in public/main/user/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 parameters such as '$urlParams'.
Open

function active_filter($active, $urlParams, $row)
Severity: Minor
Found in public/main/user/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

The parameter $official_code is not named in camelCase.
Open

function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
{
    if (false !== api_strripos($firstname, $keyword) ||
        false !== api_strripos($lastname, $keyword) ||
        false !== api_strripos($username, $keyword) ||
Severity: Minor
Found in public/main/user/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 $number_of_items is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 "user_id" is not in valid camel caps format
Open

$user_id = api_get_user_id();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$is_western_name_order = api_is_western_name_order();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$disableUsers = 3 === (int) $course_info['visibility'] &&
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $user_ids = array_diff($_POST['user'], [$user_id]);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        CourseManager::unsubscribe_user($user_ids, $courseCode);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$courseCode = $course_info['code'];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $user_ids = array_diff($_POST['user'], [$user_id]);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$_user = api_get_user_info();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$this_section = SECTION_COURSES;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $course_info['unsubscribe'] = 0;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    if (count($user_ids) > 0) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$sort_by_first_name = api_sort_by_first_name();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$use_anonymous = true;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$current_course_tool = TOOL_USER;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$course_info = api_get_course_info();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$courseId = $course_info['real_id'];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $sql .= $sort_by_first_name ? ' ORDER BY user.firstname, user.lastname' : ' ORDER BY user.lastname, user.firstname';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $a_users[] = $user;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $extra_fields = UserManager::get_extra_user_data(
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $a_users[] = $user;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    FROM $tbl_user user
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        if (1 == $course_info['unsubscribe']) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$default_column = 3;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

Expected 2 spaces after parameter type; 1 found
Open

 * @param string $username
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $number_of_items = (int) $number_of_items;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $a_users[0] = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $user[$key] = $extra_value;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $a_users[] = $user_pdf;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_header($header_nr++, get_lang('First name'));
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    if (1 == $course_info['unsubscribe']) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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>';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

Expected 2 spaces after parameter type; 1 found
Open

 * @param string $firstname
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$user_image_pdf_size = 80;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $select_email_condition = ' user.email, ';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        foreach ($extra_fields as $key => $extra_value) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_info = api_get_user_info($user['user_id']);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $user_pdf = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $a_users[] = $user_pdf;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        'header_attributes' => $header_attributes,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

function get_user_data($from, $number_of_items, $column, $direction)
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $is_western_name_order = api_is_western_name_order();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $extra_fields = array_keys($extra_fields);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if (isset($course_info['activate_legal']) && 1 == $course_info['activate_legal']) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                                $user_image,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            user.id as user_id, ".($is_western_name_order ? "user.firstname, user.lastname" : "user.lastname, user.firstname").",
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                                $user_image,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            ($_GET['user_id'] != $_user['user_id'] || api_is_platform_admin())
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_header($header_nr++, get_lang('Status'), false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        FROM $table_course_user as course_user, $table_users as user ";
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $sql .= ($sort_by_first_name ? " ORDER BY user.firstname, user.lastname" : " ORDER BY user.lastname, user.firstname");
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $user[$key] = $extra_value;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    Export::arrayToXls($a_users, $fileName);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $indexList['lastname'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $header_attributes = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    INNER JOIN $tbl_session_rel_user reluser
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                CourseManager::unsubscribe_user($user_id, $courseCode);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$indexList['official_code'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$indexList['groups'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $tool_name = get_lang('Search results');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

Expected 2 spaces after parameter type; 1 found
Open

 * @param string $official_code
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $course_code = $course_info['code'];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $course_code = $course_info['code'];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    Export::arrayToCsv($a_users, $fileName);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if (($row && $row['user_id'] == $user_id) || empty($row)) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $indexList['firstname'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $a_users = [];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $select_email_condition
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $select_email_condition
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $user_pdf = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $user_id = api_get_user_id();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$indexList['photo'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_header($header_nr++, get_lang('active'), false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $table->set_column_filter($header_nr - 1, 'modify_filter');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    Display::display_header($tool_name, 'User');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        false !== api_strripos($official_code, $keyword)
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $table_users = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $select_email_condition = ' user.email, ';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $a_users[0] = array_merge($a_users[0], $extra_fields);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                                $user_image,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    INNER JOIN $tbl_session_rel_course rel_course
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        user.id = $user_id AND
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$table->set_header($header_nr++, get_lang('Code'));
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$table->set_header($header_nr++, get_lang('Group'), false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_column_filter($header_nr - 1, 'modify_filter');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $course_info = api_get_course_info();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $order_by = 'ORDER BY user.official_code '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $a_users[0] = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $user_pdf = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $a_users[] = $user_pdf;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $indexList['lastname'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_header($header_nr++, get_lang('Last name'));
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_header($header_nr++, get_lang('First name'));
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $tool_name = get_lang('Users');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

Missing parameter name
Open

 * @param $keyword
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $current_access_url_id = api_get_current_access_url_id();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $extra_fields = array_keys($extra_fields);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

Expected 2 spaces after parameter type; 1 found
Open

 * @param string $lastname
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $extra_fields = UserManager::get_extra_user_data(
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $a_users[0] = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                if ($sort_by_first_name) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $a_users[0] = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        foreach ($extra_fields as $key => $extra_value) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $default_column
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$table->set_header($header_nr++, get_lang('Photo'), false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $indexList['firstname'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

function get_number_of_users()
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $number_of_items = (int) $number_of_items;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if (isset($course_info['activate_legal']) && 1 == $course_info['activate_legal']) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $a_users[] = $user_pdf;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $sql .= " AND user.id = au.user_id  AND access_url_id =  $current_access_url_id  ";
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        foreach ($extra_fields as $key => $extra_value) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    Export::export_table_pdf($a_users, $params);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $tbl_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$table->set_header($header_nr++, '', false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_header($header_nr++, get_lang('Last name'));
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $keyword_name = Security::remove_XSS($_GET['keyword']);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $select_email_condition = '';
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                if ($sort_by_first_name) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $a_users[0] = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $a_users[0][] = get_lang('Legal agreement accepted');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $a_users[0] = array_merge($a_users[0], $extra_fields);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $table_session_course_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $sql .= " AND user.id = au.user_id AND access_url_id =  $current_access_url_id  ";
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $user_info = api_get_user_info($user['user_id']);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $user_pdf = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                                $user_image,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        FROM $table_course_user as course_user, $table_users as user ";
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    if (!empty($extra_fields)) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            CourseManager::unsubscribe_user($user_id, $course_info['code']);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            CourseManager::unsubscribe_user($user_id, $course_info['code']);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$header_nr = 0;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $table->set_header($header_nr++, get_lang('Action'), false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $a_users = [];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $limit = 'LIMIT '.$from.','.$number_of_items;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $a_users[0] = array_merge($a_users[0], $extra_fields);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        FROM $table_session_course_user as session_course_user,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        $table_users as user ";
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    if (!empty($extra_fields)) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        foreach ($extra_fields as $key => $extra_value) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $table_course_user = Database::get_main_table(TABLE_MAIN_COURSE_USER);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $user_id = (int) $_GET['user_id'];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$table->set_header($header_nr++, get_lang('Login'));
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $table->set_header($header_nr++, $extraField['display_text'], false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    global $is_western_name_order;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $default_status = get_lang('Student');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $course_info = $_course = api_get_course_info();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $result .= '<a href="../my_space/myStudents.php?'.api_get_cidreq().'&student='.$user_id.'&details=true&course='.$courseId.'&origin=user_course&id_session='.api_get_session_id().'"
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $order_by = 'ORDER BY user.username '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    if ($is_allowed_to_track) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $default_status = get_lang('Tutor');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $a_users[$user_id] = $temp;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $groupsNameList = GroupManager::getAllGroupPerUserSubscription($user_id);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    'user.php?'.api_get_cidreq().'&action=set_tutor&is_tutor='.$isTutor.'&user_id='.$user_id.'&type='.$type,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $temp[] = $default_status;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

function modify_filter($user_id, $row, $data)
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $courseId = $_course['id'];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        if (1 == $course_info['unsubscribe']) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $a_users[0] = [
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            user.id as user_id, ".($is_western_name_order ? "user.firstname, user.lastname" : "user.lastname, user.firstname").",
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $extra_fields = UserManager::get_extra_user_data(
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                        if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

$indexList['username'] = $header_nr;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $table->set_header($header_nr++, get_lang('Action'), false);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

function get_user_data($from, $number_of_items, $column, $direction)
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $temp[] = $user_id;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    return $a_users;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

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

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

    $user_id = $data[0];
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if ($user_id == $current_user_id) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                href="'.api_get_self().'?'.api_get_cidreq().'&type='.$type.'&unregister=yes&user_id='.$user_id.'"
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if ($user_id != $current_user_id || api_is_platform_admin()) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $course_code,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $temp[] = $user_id;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $userInfo = api_get_user_info($user_id);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if ($user_id == $current_user_id) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        $order_by,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $user = api_get_user_entity($user_id);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $temp[] = $user_id;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                if ($is_western_name_order) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    $default_status = get_lang('CourseManager');
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                    api_get_path(WEB_CODE_PATH).'extra/userInfo.php?'.api_get_cidreq().'&editMainUserInfo='.$user_id.'"
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $course_info = $_course = api_get_course_info();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $current_user_id = api_get_user_id();
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                href="'.api_get_self().'?'.api_get_cidreq().'&type='.$type.'&unregister=yes&user_id='.$user_id.'"
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    foreach ($users as $user_id => $userData) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                if (1 == $course_info['unsubscribe']) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

function modify_filter($user_id, $row, $data)
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                            $user_id,
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            $a_users[$user_id] = $temp;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

                $order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

        href="'.api_get_path(WEB_CODE_PATH).'admin/user_list.php?action=login_as&user_id='.$user_id.'&sec_token='.Security::getTokenFromSession().'">'.
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

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

            if ($user_id != $current_user_id || api_is_platform_admin()) {
Severity: Minor
Found in public/main/user/user.php by phpcodesniffer

The variable $is_western_name_order is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_info is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_info is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_users is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 $current_user_id is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 $official_code is not named in camelCase.
Open

function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
{
    if (false !== api_strripos($firstname, $keyword) ||
        false !== api_strripos($lastname, $keyword) ||
        false !== api_strripos($username, $keyword) ||
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $current_user_id is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 $default_status is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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_allowed_to_track is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_info is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $order_by is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_info is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 $default_status is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $default_status is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_users is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_users is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $default_status is not named in camelCase.
Open

function get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 $current_user_id is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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 get_user_data($from, $number_of_items, $column, $direction)
{
    global $is_western_name_order;
    global $extraFields;
    $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
Severity: Minor
Found in public/main/user/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_allowed_to_track is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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 modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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_info is not named in camelCase.
Open

function modify_filter($user_id, $row, $data)
{
    $canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();

    $is_allowed_to_track = api_is_allowed_to_edit(true, true);
Severity: Minor
Found in public/main/user/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