chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

The function who_is_online() has an NPath complexity of 432. The configured NPath complexity threshold is 200.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout() has an NPath complexity of 7560. The configured NPath complexity threshold is 200.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 '132', column '21').
Open

        $chat = new Chat();
Severity: Minor
Found in public/main/inc/lib/online.inc.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 '136', column '17').
Open

    $chat = new Chat();
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $query = "SELECT DISTINCT login_user_id, login_date
                    FROM ".$track_online_table." e
                    INNER JOIN ".$table_user." u ON (u.id = e.login_user_id)
                  WHERE u.active <> ".USER_SOFT_DELETED." AND u.status != ".ANONYMOUS." AND login_date >= '".$current_date."'
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                // all users online
                $query = "SELECT login_user_id, login_date
                          FROM ".$track_online_table." track
                          INNER JOIN ".$table_user." u
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $time_limit = intval($time_limit);
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 preventMultipleLogin uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    // First time
                    Session::write('first_user_login', 1);
                }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 LoginCheck uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $query = "INSERT $online_table (
                login_user_id,
                login_date,
                user_ip,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        if (!in_array($direction, ['asc', 'desc'])) {
            $direction = 'DESC';
        }
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_count uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        // All users online
        $query = "SELECT count(login_id) as count
                  FROM $track_online_table track INNER JOIN $table_user u
                  ON (u.id=track.login_user_id)
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_count uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_count uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                // all users online
                $query = "SELECT count(login_id) as count FROM $track_online_table  track
                          INNER JOIN $table_user u ON (u.id=track.login_user_id)
                          WHERE
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course_count uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_count uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $time_limit = intval($time_limit);
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

ElseExpression

Since: 1.4.0

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

Example

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

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

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

        while (list($login_user_id, $login_date) = Database::fetch_row($result)) {
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

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

        while (list($login_user_id, $login_date) = Database::fetch_row($result)) {
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

Avoid unused parameters such as '$uid'.
Open

    $uid,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 '$uid'.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $user_id is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $logout_redirect is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $course_code is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 "_course" is not in valid camel caps format
Open

        $_course = api_get_course_info();

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

        $session_id = api_get_session_id();

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

                WHERE login_id='$i_id_last_connection'";

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

    if ($logout_redirect) {

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

    $current_date = api_get_utc_datetime($online_time);

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

                  FROM $track_online_table INNER JOIN $friend_user_table

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

                    login_date >= '".$current_date."' AND

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

                  LIMIT $from, $number_of_items";

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

                            FROM $track_online_table track INNER JOIN $friend_user_table

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

                            FROM $track_online_table track INNER JOIN $friend_user_table

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

    if (empty($user_id)) {

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

            WHERE login_user_id = $user_id

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

        $i_id_last_connection = Database::result($q_last_connection, 0, "login_id");

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

    $access_url_id = api_get_current_access_url_id();

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

    $online_time = time() - $time_limit * 60;

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

    $limit_date = api_get_utc_datetime($online_time);

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

                    login_date >= '".$limit_date."'  AND

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

                                    login_date >= '".$current_date."' AND

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

                            LIMIT $from, $number_of_items";

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

function user_is_online($user_id)

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

    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);

Expected 12 spaces after parameter type; 1 found
Open

 * @param null $column

Expected 12 spaces after parameter type; 1 found
Open

 * @param null $time_limit

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

        $time_limit = intval($time_limit);

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

    $online_time = time() - $time_limit * 60;

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

                    FROM ".$track_online_table." e

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

                  LIMIT $from, $number_of_items";

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

function LoginCheck($uid)

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

                '$login_date',

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

    $i_id_last_connection = 0;

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

    if ($logout_redirect && 'true' == api_get_plugin_setting('azure_active_directory', 'enable')) {

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

                    track.access_url_id =  $access_url_id AND

Expected 12 spaces after parameter type; 1 found
Open

 * @param bool $friends

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

    $time_limit = null,

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

                  WHERE u.active <> ".USER_SOFT_DELETED." AND u.status != ".ANONYMOUS." AND login_date >= '$current_date'  ";

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

    $online_time = time() - $timeLimit * 60;

Missing parameter name
Open

 * @param int user id

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

        if (is_array($_course) && count($_course) > 0 && !empty($_course['real_id'])) {

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

            $cid = intval($_course['real_id']);

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

            $query = "INSERT $online_table (

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

                $access_url_id

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

function preventMultipleLogin($userId)

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

function online_logout($user_id = null, $logout_redirect = false)

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

    CourseChatUtils::exitChat($user_id);

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

    $online_time = time() - $time_limit * 60;

Missing parameter name
Open

 * @param $from

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

                          INNER JOIN ".$table_user." u

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

                          LIMIT $from, $number_of_items";

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

    $time_limit = (int) $time_limit;

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

    $online_time = time() - $time_limit * 60;

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

    $current_date = api_get_utc_datetime($online_time);

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

    $online_time = time() - $time_limit * 60;

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

        $login_date = api_get_utc_datetime();

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

                    $logout_function($uinfo);

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

    $number_of_items,

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

    $online_time = time() - $time_limit * 60;

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

                  WHERE u.active <> ".USER_SOFT_DELETED." AND u.status != ".ANONYMOUS." AND login_date >= '".$current_date."'

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

    $online_time = time() - $time_limit * 60;

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

                                track.access_url_id = $access_url_id AND

Missing parameter name
Open

 * @param    int Number of minutes

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

    $courseInfo = api_get_course_info($course_code);

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

              LIMIT $from, $number_of_items ";

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

                $session_id,

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

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

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

    if (Database::num_rows($q_last_connection) > 0) {

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

    if (!isset($_SESSION['login_as']) && !empty($i_id_last_connection)) {

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

        $current_date = api_get_utc_datetime();

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

    $user_id = (int) $user_id;

Missing parameter name
Open

 * @param $number_of_items

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

    $table_user = Database::get_main_table(TABLE_MAIN_USER);

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

        return $users_online;

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

        $time_limit = intval($time_limit);

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

                $query = "SELECT count(login_id) as count FROM $track_online_table  track

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

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)

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

    $course_code = Database::escape_string($course_code);

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

    $number_of_items = (int) $number_of_items;

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

        while (list($login_user_id, $login_date) = Database::fetch_row($result)) {

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

    $time_limit = Database::escape_string($time_limit);

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

            $access_url_id = api_get_current_access_url_id();

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

        if (is_array($_course) && count($_course) > 0 && !empty($_course['real_id'])) {

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

    UserManager::loginDelete($user_id);

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

    $table_user = Database::get_main_table(TABLE_MAIN_USER);

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

    $time_limit = api_get_setting('time_limit_whosonline');

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

               FROM $track_online_table track

Expected 12 spaces after parameter type; 1 found
Open

 * @param null $direction

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

        $time_limit = api_get_setting('time_limit_whosonline');

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

    $current_date = api_get_utc_datetime($online_time);

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

                  FROM $track_online_table INNER JOIN $friend_user_table

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

                    INNER JOIN ".$table_user." u ON (u.id = e.login_user_id)

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

                          WHERE u.active <> ".USER_SOFT_DELETED." AND u.status != ".ANONYMOUS." AND track.access_url_id =  $access_url_id AND

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

    $table_user = Database::get_main_table(TABLE_MAIN_USER);

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

    $online_time = time() - $time_limit * 60;

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

                            INNER JOIN $friend_user_table ON (friend_user_id = login_user_id)

Missing parameter name
Open

 * @param    int User ID

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

    $time_limit,

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

    $current_date = api_get_utc_datetime($online_time);

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

    $current_date = api_get_utc_datetime($online_time);

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

                    login_date >= '$current_date'

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

        $user_ip = '';

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

        $i_id_last_connection = Database::result($q_last_connection, 0, "login_id");

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

                $logout_function = $uinfo['auth_source'].'_logout';

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

    $user_id = (int) $user_id;

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

               INNER JOIN $table_user u

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

                    u.id =  $user_id

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

function who_is_online(

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

            $users_online[] = $login_user_id;

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

    $time_limit = (int) $time_limit;

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

        $users_online = [];

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

        while (list($login_user_id, $login_date) = Database::fetch_row($result)) {

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

    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);

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

function user_is_online($user_id)

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

    if (empty($time_limit)) {

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

function who_is_online_count($time_limit = null, $friends = false)

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

        $time_limit = api_get_setting('time_limit_whosonline');

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

                  FROM $track_online_table track INNER JOIN $table_user u

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

    if (empty($time_limit)) {

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

    $course_code = Database::escape_string($course_code);

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

            $users_online[] = $login_user_id;

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

        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);

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

            $user_ip = Database::escape_string(api_get_real_ip());

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

                      login_date = '$login_date',

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

                      user_ip = '$user_ip',

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

                      access_url_id = $access_url_id

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

            FROM $tbl_track_login

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

    $friend_user_table = Database::get_main_table(TABLE_MAIN_USER_REL_USER);

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

        if (-1 != $access_url_id) {

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

        if (-1 != $access_url_id) {

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

                            login_date >= '$current_date' ";

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

                login_date >= '$current_date'

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

    $current_date = api_get_utc_datetime($online_time);

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

        if (is_array($_course) && count($_course) > 0 && !empty($_course['real_id'])) {

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

                '$user_ip',

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

        $sql = "UPDATE $tbl_track_login SET logout_date='".$current_date."'

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

        $time_limit = intval($time_limit);

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

    $number_of_items = intval($number_of_items);

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

    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);

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

        $access_url_id = api_get_current_access_url_id();

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

        $users_online = [];

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

    if (empty($time_limit)) {

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

    $current_date = api_get_utc_datetime($online_time);

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

        $time_limit = api_get_setting('time_limit_whosonline');

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

              FROM $track_online_table o

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

        return $users_online;

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

              FROM $track_online_table o

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

            $query = "UPDATE $online_table SET

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

                      session_id = $session_id,

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

function online_logout($user_id = null, $logout_redirect = false)

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

    $uinfo = api_get_user_info($user_id);

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

        while (list($login_user_id, $login_date) = Database::fetch_row($result)) {

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

            $users_online[] = $login_user_id;

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

    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);

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

    $current_date = api_get_utc_datetime($online_time);

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

        $access_url_id = 1;

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

    $tbl_track_login = Database::get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN);

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

        $user_id = isset($_GET['uid']) ? intval($_GET['uid']) : 0;

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

                            track.access_url_id =  $access_url_id AND

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

    $number_of_items = intval($number_of_items);

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

function who_is_online_count($time_limit = null, $friends = false)

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

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)

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

    $online_time = time() - $time_limit * 60;

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

        $time_limit = intval($time_limit);

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

function who_is_online_in_this_course_count(

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

    $friend_user_table = Database::get_main_table(TABLE_MAIN_USER_REL_USER);

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

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)

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

    $online_time = time() - $time_limit * 60;

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

function whoIsOnlineInThisSessionCount($timeLimit, $sessionId)

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

        $sql = "UPDATE $tbl_track_login SET logout_date='".$current_date."'

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

        while (list($login_user_id, $login_date) = Database::fetch_row($result)) {

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

                        login_date >= '$current_date' AND

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

        $query = "SELECT login_id FROM $online_table WHERE login_user_id = $uid";

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

                  FROM $track_online_table track INNER JOIN $table_user u

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

function online_logout($user_id = null, $logout_redirect = false)

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

                if (function_exists($logout_function)) {

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

        $access_url_id = api_get_current_access_url_id();

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

    $current_date = api_get_utc_datetime($online_time);

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

    $limit_date = api_get_utc_datetime($online_time);

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

    $number_of_items = (int) $number_of_items;

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

                o.login_date >= '$current_date'

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

                            WHERE   track.access_url_id =  $access_url_id AND

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

    $current_date = api_get_utc_datetime($online_time);

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

                          FROM ".$track_online_table." track

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

                  FROM $track_online_table INNER JOIN $friend_user_table

Missing parameter name
Open

 * @param    string  Course code (could be empty, but then the function returns false)

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

    $time_limit = Database::escape_string($time_limit);

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

    if (empty($course_code)) {

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

            $users_online[] = $login_user_id;

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

                                login_date >= '".$current_date."'

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

                  FROM $track_online_table INNER JOIN $friend_user_table

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

                          INNER JOIN $table_user u ON (u.id=track.login_user_id)

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

    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);

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

                            FROM $track_online_table track

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

                                login_date >= '".$current_date."' AND

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

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)

The variable $login_date is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_track_login is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $limit_date is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $friend_user_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $q_last_connection is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $users_online is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_table is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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_ip is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_track_login is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $logout_redirect is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $session_id is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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_ip is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $q_last_connection is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_user_id is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $friend_user_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $i_id_last_connection is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_ip is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_ip is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_date is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $logout_function is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $limit_date is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $friend_user_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_table is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $i_id_last_connection is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $logout_function is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_table is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_date is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $logout_function is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_date is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $session_id is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function user_is_online($user_id)
{
    $track_online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
    $table_user = Database::get_main_table(TABLE_MAIN_USER);

Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $friend_user_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $users_online is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_table is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $logout_redirect is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $users_online is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $session_id is not named in camelCase.
Open

function LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $q_last_connection is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $i_id_last_connection is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $tbl_track_login is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $i_id_last_connection is not named in camelCase.
Open

function online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 LoginCheck($uid)
{
    $uid = (int) $uid;
    if (!empty($uid)) {
        $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
Severity: Minor
Found in public/main/inc/lib/online.inc.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 online_logout($user_id = null, $logout_redirect = false)
{
    global $extAuthSource;

    // Database table definition
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_user_id is not named in camelCase.
Open

function who_is_online(
    $from,
    $number_of_items,
    $column = null,
    $direction = null,
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $users_online is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function whoIsOnlineInThisSessionCount($timeLimit, $sessionId)
{
    if (!$sessionId) {
        return 0;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $users_online is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_date is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_user_id is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $friend_user_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function whoIsOnlineInThisSessionCount($timeLimit, $sessionId)
{
    if (!$sessionId) {
        return 0;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $login_user_id is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $friend_user_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_in_this_course_count(
    $uid,
    $time_limit,
    $coursecode = null
) {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function whoIsOnlineInThisSessionCount($timeLimit, $sessionId)
{
    if (!$sessionId) {
        return 0;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_user is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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_date is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $users_online is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $access_url_id is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_count($time_limit = null, $friends = false)
{
    if (empty($time_limit)) {
        $time_limit = api_get_setting('time_limit_whosonline');
    } else {
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $time_limit is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $track_online_table is not named in camelCase.
Open

function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit, $course_code)
{
    if (empty($course_code)) {
        return false;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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 $online_time is not named in camelCase.
Open

function whoIsOnlineInThisSessionCount($timeLimit, $sessionId)
{
    if (!$sessionId) {
        return 0;
    }
Severity: Minor
Found in public/main/inc/lib/online.inc.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