chamilo/chamilo-lms

View on GitHub
public/main/admin/dashboard_add_users_to_user.php

Summary

Maintainability
A
0 mins
Test Coverage

The function search_users() has an NPath complexity of 386. The configured NPath complexity threshold is 200.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

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 '71', column '27').
Open

    $xajax_response = new xajaxResponse();

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

        } else {
            $order_clause = ' ORDER BY lastname, firstname';
        }

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

        } else {
            $return .= '<select id="origin" class="form-control" name="NoAssignedUsersList[]" multiple="multiple" size="15" ">';
            while ($user = Database :: fetch_array($rs)) {
                $person_name = api_get_person_name($user['firstname'], $user['lastname']);
                $return .= '<option value="'.$user['user_id'].'" title="'.htmlspecialchars($person_name, ENT_QUOTES).'">'.$person_name.' ('.$user['username'].')</option>';

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

        } else {
            $sql = "SELECT id as user_id, username, lastname, firstname
                    FROM $tbl_user user
                    WHERE user.active <> ".USER_SOFT_DELETED." AND
                        ".(api_sort_by_first_name() ? 'firstname' : 'lastname')." LIKE '$needle%' AND

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

                } else {
                    $return .= '...<br />';
                }

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

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

$user_id = isset($_GET['user']) ? (int) $_GET['user'] : 0;

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

$user_anonymous = api_get_anonymous_id();

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

    $tool_name = get_lang('Assign users to the platform administrator');

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

    $tool_name = get_lang('Assign users to Human Resources manager');

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

$userStatus = $user_info['status'];

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

    $tool_name = get_lang('Assign users to superior');

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

    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

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

    $tool_name = get_lang('Assign users to sessions administrator');

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

$user_info = api_get_user_info($user_id);

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

    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

Missing function doc comment
Open

function search_users($needle, $type = 'multiple')

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

$ajax_search = false;

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

    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

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

    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

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

$this_section = SECTION_PLATFORM_ADMIN;

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

$tbl_access_url_rel_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

    $add_type = Security::remove_XSS($_REQUEST['add_type']);

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

function search_users($needle, $type = 'multiple')

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

$tbl_user = Database::get_main_table(TABLE_MAIN_USER);

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

$isAdmin = UserManager::is_admin($user_id);

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

$current_user_id = api_get_user_id();

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

$add_type = 'multiple';

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

$user_info = api_get_user_info($user_id);

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

$user = api_get_user_entity($user_id);

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

            $without_assigned_users = ' AND user.id NOT IN('.implode(',', $assigned_users_id).')';

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

                        id NOT IN ($user_anonymous, $current_user_id, $user_id)

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

$searchForm->addElement('hidden', 'user', $user_id);

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

Display::display_header($tool_name);

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

$assigned_users_to_hrm = [];

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

                user.id NOT IN ($user_anonymous, $current_user_id, $user_id) AND

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

                            $person_name = api_get_person_name($enreg['firstname'], $enreg['lastname']); ?>

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

                status NOT IN(".DRH.', '.SESSIONADMIN.', '.ANONYMOUS.") $search_user AND

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

                            <?php echo $person_name.' ('.$enreg['username'].')'; ?>

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

            $order_clause = ' ORDER BY lastname, firstname';

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

                    FROM $tbl_user user

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

                        id NOT IN ($user_anonymous, $current_user_id, $user_id)

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

$assigned_users_id = array_keys($assigned_users_to_hrm);

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

    $temp_conditions = [];

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

    $without_assigned_users = ' user.id NOT IN('.implode(',', $assigned_users_id).') AND ';

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

        $temp_conditions[] = $field.' LIKE \'%'.$value.'%\'';

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

                id NOT IN ($user_anonymous, $current_user_id, $user_id) AND

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

                $assigned_users_to_hrm = UserManager::get_users_followed_by_drh($user_id);

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

            $without_assigned_users = ' AND user.id NOT IN('.implode(',', $assigned_users_id).')';

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

                        $without_assigned_users AND

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

            $tbl_user_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

                    $person_name = api_get_person_name($user['firstname'], $user['lastname']);

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

                $person_name = api_get_person_name($user['firstname'], $user['lastname']);

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

        "dashboard_add_sessions_to_user.php?user=$user_id"

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

                user.id NOT IN ($user_anonymous, $current_user_id, $user_id) AND

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

                $without_assigned_users

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

                $assigned_users_to_hrm = UserManager::getUsersFollowedByStudentBoss($user_id);

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

    return $xajax_response;

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

        $assigned_users_to_hrm = UserManager::get_users_followed_by_drh($user_id);

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

        $assigned_users_to_hrm = UserManager::getUsersFollowedByStudentBoss($user_id);

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

                $assigned_users_to_hrm = UserManager::get_users_followed_by_drh($user_id);

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

            $order_clause = ' ORDER BY firstname, lastname';

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

                        user.id NOT IN ($user_anonymous, $current_user_id, $user_id)

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

                    $order_clause

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

                    INNER JOIN '.$tbl_user_rel_access_url.' url_user ON (url_user.user_id=user.id)

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

                $without_assigned_users

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

            FROM $tbl_user user

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

                id NOT IN ($user_anonymous, $current_user_id, $user_id) AND

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

                id NOT IN ($user_anonymous, $current_user_id, $user_id) AND

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

        <?php if ($ajax_search) {

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

        echo '<button id="assign_user" class="btn btn--success" type="button" value="" onclick="valide()" >'.$tool_name.'</button>';

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

    if (UserManager::is_admin($user_id)) {

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

                $assigned_users_to_hrm = UserManager::getUsersFollowedByStudentBoss($user_id);

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

        $assigned_users_id = array_keys($assigned_users_to_hrm);

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

                    $order_clause

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

                $return .= '<option value="'.$user['user_id'].'" title="'.htmlspecialchars($person_name, ENT_QUOTES).'">'.$person_name.' ('.$user['username'].')</option>';

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

$search_user = '';

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

            LEFT JOIN $tbl_access_url_rel_user au

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

                        user.id NOT IN ($user_anonymous, $current_user_id, $user_id)

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

                    FROM '.$tbl_user.' user

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

            $sql .= " $order_clause LIMIT 11";

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

                    $return .= '<a href="javascript: void(0);" onclick="javascript: add_user_to_user(\''.$user['user_id'].'\',\''.$person_name.' ('.$user['username'].')'.'\')">'.$person_name.' ('.$user['username'].')</a><br />';

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

            UserManager::subscribeUsersToHRManager($user_id, $user_list);

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

        "dashboard_add_courses_to_user.php?user=$user_id"

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

<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?user=<?php echo $user_id; ?>" class="form-horizontal" <?php if ($ajax_search) {

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

        $assigned_users_to_hrm = [];

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

        $without_assigned_users = '';

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

                        access_url_id = '.$access_url_id.'  AND

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

$UserList = [];

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

            UserManager::subscribeUsersToHRManager($user_id, $user_list);

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

    $without_assigned_users = ' user.id NOT IN('.implode(',', $assigned_users_id).') AND ';

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

    if (!empty($temp_conditions)) {

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

            <?php if ('multiple' == $add_type) {

Closing brace indented incorrectly; expected 12 spaces, found 24
Open

                        } ?>

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

                            $person_name = api_get_person_name($enreg['firstname'], $enreg['lastname']); ?>

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

        $assigned_users_id = array_keys($assigned_users_to_hrm);

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

        $assigned_users_to_hrm = UserManager::get_users_followed_by_drh($user_id);

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

                $search_user

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

    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

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

        if (count($assigned_users_id) > 0) {

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

                        id NOT IN ($user_anonymous, $current_user_id, $user_id)

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

                    $return .= '<a href="javascript: void(0);" onclick="javascript: add_user_to_user(\''.$user['user_id'].'\',\''.$person_name.' ('.$user['username'].')'.'\')">'.$person_name.' ('.$user['username'].')</a><br />';

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

            $xajax_response->addAssign(

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

if (count($assigned_users_id) > 0) {

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

<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?user=<?php echo $user_id; ?>" class="form-horizontal" <?php if ($ajax_search) {

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

            UserManager::subscribeBossToUsers($user_id, $user_list);

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

            UserManager::subscribeBossToUsers($user_id, $user_list);

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

$assigned_users_id = array_keys($assigned_users_to_hrm);

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

$without_assigned_users = '';

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

                user.id NOT IN ($user_anonymous, $current_user_id, $user_id) AND

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

                            <option value="<?php echo $enreg['user_id']; ?>" <?php echo 'title="'.htmlspecialchars($person_name, ENT_QUOTES).'"'; ?>>

Closing brace indented incorrectly; expected 8 spaces, found 24
Open

                        } else {

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

    $xajax_response = new xajaxResponse();

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

                $return .= '<option value="'.$user['user_id'].'" title="'.htmlspecialchars($person_name, ENT_QUOTES).'">'.$person_name.' ('.$user['username'].')</option>';

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

        $sqlConditions .= implode(' AND ', $temp_conditions);

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

            FROM $tbl_user user

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

                        user.id NOT IN ($user_anonymous, $current_user_id, $user_id)

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

        $xajax_response->addAssign('ajax_list_users_multiple', 'innerHTML', api_utf8_encode($return));

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

            $xajax_response->addAssign('ajax_list_users_multiple', 'innerHTML', api_utf8_encode($return));

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

    $user_list = isset($_POST['UsersList']) ? $_POST['UsersList'] : null;

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

    $search_user = 'AND '.(api_sort_by_first_name() ? 'firstname' : 'lastname')." LIKE '$needle%'";

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

                    if (is_array($assigned_users_to_hrm)) {

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

                            <?php echo $person_name.' ('.$enreg['username'].')'; ?>

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

                    LEFT JOIN $tbl_access_url_rel_user au ON (au.user_id = user.id)

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

                    FROM $tbl_user user

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

                    $without_assigned_users

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

            $access_url_id = api_get_current_access_url_id();

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

$searchForm = new FormValidator('search', 'get', api_get_self().'?user='.$user_id);

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

        $assigned_users_to_hrm = UserManager::getUsersFollowedByStudentBoss($user_id);

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

                        foreach ($assigned_users_to_hrm as $enreg) {

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

                            <option value="<?php echo $enreg['user_id']; ?>" <?php echo 'title="'.htmlspecialchars($person_name, ENT_QUOTES).'"'; ?>>

Line indented incorrectly; expected 0 spaces, found 24
Open

                        } ?>

Line indented incorrectly; expected 0 spaces, found 24
Open

                        } ?>

Closing brace indented incorrectly; expected 8 spaces, found 24
Open

                        } else {

Closing brace indented incorrectly; expected 12 spaces, found 24
Open

                        } ?>

Line indented incorrectly; expected 0 spaces, found 24
Open

                        } else {

Closing brace indented incorrectly; expected 46 spaces, found 0
Open

}?>>

The variable $user_id is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $without_assigned_users is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $assigned_users_id is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

It is 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 search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $assigned_users_to_hrm is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $current_user_id is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

It is 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 search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $xajax_response is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $order_clause is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $xajax_response is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $current_user_id is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $without_assigned_users is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $person_name is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $assigned_users_to_hrm is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $order_clause is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $without_assigned_users is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $without_assigned_users is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $person_name is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $assigned_users_id is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $order_clause is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

It is 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 search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $person_name is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $xajax_response is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $current_user_id is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $xajax_response is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $assigned_users_to_hrm is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

It is 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 search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $order_clause is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

It is 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 search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $person_name is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $xajax_response is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $assigned_users_id is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $person_name is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $assigned_users_to_hrm is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $order_clause is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $person_name is not named in camelCase.
Open

function search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

It is 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 search_users($needle, $type = 'multiple')
{
    global $tbl_access_url_rel_user, $tbl_user, $user_anonymous, $current_user_id, $user_id, $userStatus;

    $xajax_response = new xajaxResponse();

CamelCaseVariableName

Since: 0.2

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