The function modify_filter() has an NPath complexity of 3386880. The configured NPath complexity threshold is 200. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
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 prepare_user_sql_query() has an NPath complexity of 101601976320. The configured NPath complexity threshold is 200. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
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 '336', column '27'). Open
$extraField = new ExtraField('user');
- Read upRead up
- Exclude checks
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 prepare_user_sql_query uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result = UserManager::get_extra_user_data_by_value($variable, $value, true);
}
- Read upRead up
- Exclude checks
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 prepare_user_sql_query uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= !str_contains($sql, 'WHERE') ? ' WHERE u.active <> '.USER_SOFT_DELETED : ' AND u.active <> '.USER_SOFT_DELETED;
}
- Read upRead up
- Exclude checks
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 prepare_user_sql_query uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= 'u.lastname AS col3, u.firstname AS col4, ';
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= Display::getMdiIcon(
'pencil',
'ch-tool-icon-disabled',
null,
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= Display::getMdiIcon(
'star',
'ch-tool-icon-disabled',
null,
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= Display::getMdiIcon('account-key', 'ch-tool-icon-disabled', null, 22, get_lang('Login as'));
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= Display::getMdiIcon('account-key', 'ch-tool-icon-disabled', null, 22, get_lang('Login as'));
}
- Read upRead up
- Exclude checks
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 prepare_user_sql_query uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= 'SELECT u.id AS col0, u.official_code AS col2, ';
if (api_is_western_name_order()) {
$sql .= 'u.firstname AS col3, u.lastname AS col4, ';
- Read upRead up
- Exclude checks
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 prepare_user_sql_query uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$values = [$_GET['extra_'.$variable]];
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= Display::getMdiIcon('account-key', 'ch-tool-icon-disabled', null, 22, get_lang('Login as'));
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if ($current_user_status_label == $statusname[DRH] ||
UserManager::is_admin($user_id) ||
$current_user_status_label == $statusname[STUDENT_BOSS]
) {
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= Display::getMdiIcon(
'delete',
'ch-tool-icon-disabled',
null,
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= Display::getMdiIcon('information', 'ch-tool-icon-disabled', null, 22, get_lang('Information'));
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method modify_filter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result .= '<a href="../my_space/myStudents.php?student='.$user_id.'">'.
Display::getMdiIcon(
'chart-box',
'ch-tool-icon',
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid unused parameters such as '$params'. Open
function user_filter($name, $params, $row)
- Read upRead up
- Exclude checks
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 '$row'. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
- Read upRead up
- Exclude checks
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 '$params'. Open
function active_filter(int $active, string $params, array $row): string
- Read upRead up
- Exclude checks
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 modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $url_params is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $number_of_items is not named in camelCase. Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
{
$sql = prepare_user_sql_query(false, $showDeletedUsers);
if (!in_array($direction, ['ASC', 'DESC'])) {
$direction = 'ASC';
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $user_id is not named in camelCase. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
{
$result = '';
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $url_params is not named in camelCase. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
{
$result = '';
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Read upRead up
- Exclude checks
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
Consider putting global function "get_number_of_users" in a static class Open
function get_number_of_users(bool $showDeletedUsers = false): int
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
$number_of_items = (int) $number_of_items;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id != $currentUserId &&
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
!$user_is_anonymous &&
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
$deleteUrl = "user_list.php?$url_params&"
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
$current_user_status_label == $statusname[STUDENT_BOSS]
- Exclude checks
Consider putting global function "active_filter" in a static class Open
function active_filter(int $active, string $params, array $row): string
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options[SESSIONADMIN] = get_lang('Course sessionsAdmin');
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options
- Exclude checks
Variable "query_admin_table" is not in valid camel caps format Open
$query_admin_table = '';
- Exclude checks
Variable "keyword_extra_value" is not in valid camel caps format Open
$sql .= " $keyword_admin $keyword_extra_value ";
- Exclude checks
Expected 2 spaces after parameter type; 1 found Open
* @param array $row Row of elements to alter
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
'user_id' => $user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id != $currentUserId &&
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
!$user_is_anonymous &&
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
if ($current_user_status_label == $statusname[SESSIONADMIN]) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tool_name = get_lang('User list');
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (UserManager::disable($user_id)) {
- Exclude checks
Variable "_admins_list" is not in valid camel caps format Open
Session::write('admin_list', $_admins_list);
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options[DRH] = get_lang('Human Resources Manager');
- Exclude checks
Variable "active_group" is not in valid camel caps format Open
$active_group[] = $form->createElement('checkbox', 'keyword_inactive', '', get_lang('Inactive'));
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
$deleteUrl = "user_list.php?$url_params&".
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
!$user_is_anonymous &&
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_global_admin_can_edit_admin($user_id)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id != $currentUserId &&
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
UserManager::is_admin($user_id) ||
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
$number_of_affected_users++;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
foreach ($_POST['id'] as $index => $user_id) {
- Exclude checks
Variable "user_table" is not in valid camel caps format Open
$sql .= "SELECT COUNT(u.id) AS total_number_of_items FROM $user_table u";
- Exclude checks
Expected 8 spaces after parameter name; 1 found Open
* @param array $row Row of elements to alter
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_get_path(WEB_CODE_PATH).'skills/assign.php?'.http_build_query(['user' => $user_id])
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_global_admin_can_edit_admin($user_id, null, true)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
'user_id' => $user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($current_user_status_label == $statusname[DRH] || UserManager::is_admin($user_id)) {
- Exclude checks
Variable "number_of_selected_users" is not in valid camel caps format Open
if ($number_of_selected_users == $number_of_affected_users) {
- Exclude checks
Variable "expiration_time" is not in valid camel caps format Open
$expiration_time = api_strtotime($user['exp']);
- Exclude checks
Variable "_admins_list" is not in valid camel caps format Open
$_admins_list = Session::read('admin_list', []);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$result .= '<a href="../my_space/myStudents.php?student='.$user_id.'">'.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$result = UrlManager::add_user_to_url($user_id, $urlId);
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
if ($number_of_selected_users == $number_of_affected_users) {
- Exclude checks
Variable "number_of_selected_users" is not in valid camel caps format Open
if ($number_of_selected_users == $number_of_affected_users) {
- Exclude checks
Variable "_admins_list" is not in valid camel caps format Open
$_admins_list = array_keys(UserManager::get_all_administrators());
- Exclude checks
Variable "keyword_extra_value" is not in valid camel caps format Open
$keyword_extra_value = '';
- Exclude checks
Expected 4 spaces after parameter type; 1 found Open
* @param int $user_id The user id
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
$user_is_anonymous = false;
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
if (!$user_is_anonymous) {
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
if (!$user_is_anonymous &&
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
"dashboard_add_users_to_user.php?user={$user_id}",
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = $_REQUEST['user_id'];
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$message = get_lang('The user has been added').' '.$user_info['complete_name_with_username'];
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
function() use ($showDeletedUsers) { return get_number_of_users($showDeletedUsers); },
- Exclude checks
Variable "user_table" is not in valid camel caps format Open
FROM $user_table u";
- Exclude checks
Variable "admin_table" is not in valid camel caps format Open
$query_admin_table = " , $admin_table a ";
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
if ($current_user_status_label != $statusname[STUDENT]) {
- Exclude checks
Consider putting global function "status_filter" in a static class Open
function status_filter(int $status): string
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_info = api_get_user_info($user_id);
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
$number_of_affected_users = 0;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id != $currentUserId) {
- Exclude checks
Variable "number_of_selected_users" is not in valid camel caps format Open
if ($number_of_selected_users == $number_of_affected_users) {
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
$number_of_affected_users++;
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options[STUDENT_BOSS] = get_lang('RoleStudentBoss');
- Exclude checks
Variable "admin_table" is not in valid camel caps format Open
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Exclude checks
Variable "query_admin_table" is not in valid camel caps format Open
$sql .= " $query_admin_table
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
$sql .= " LIMIT $from, $number_of_items";
- Exclude checks
Consider putting global function "modify_filter" in a static class Open
function modify_filter($user_id, $url_params, $row): string
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
if ($current_user_status_label == $statusname[ANONYMOUS]) {
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
$deleteUrl = "user_list.php?$url_params&"
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (UserManager::delete_user($user_id)) {
- Exclude checks
Variable "active_group" is not in valid camel caps format Open
$active_group[] = $form->createElement('checkbox', 'keyword_active', '', get_lang('Active'));
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_PLATFORM_ADMIN;
- Exclude checks
Variable "keyword_admin" is not in valid camel caps format Open
$keyword_admin = ' AND a.user_id = u.id ';
- Exclude checks
Consider putting global function "email_filter" in a static class Open
function email_filter($email)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
"dashboard_add_courses_to_user.php?user={$user_id}",
- Exclude checks
Variable "number_of_selected_users" is not in valid camel caps format Open
$number_of_selected_users = count($_POST['id']);
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
$number_of_affected_users = 0;
- Exclude checks
Variable "active_group" is not in valid camel caps format Open
$active_group = [];
- Exclude checks
Consider putting global function "trimVariables" in a static class Open
function trimVariables()
- Exclude checks
Variable "query_admin_table" is not in valid camel caps format Open
$query_admin_table = " , $admin_table a ";
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
'user_id' => $user_id,
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
if (!$user_is_anonymous) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_global_admin_can_edit_admin($user_id)
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
if ($current_user_status_label == $statusname[DRH] ||
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = api_get_user_info($user_id);
- Exclude checks
Variable "number_of_selected_users" is not in valid camel caps format Open
$number_of_selected_users = count($_POST['id']);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id != $currentUserId) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (UserManager::enable($user_id)) {
- Exclude checks
Missing blank line before return statement Open
function() use ($showDeletedUsers) { return get_number_of_users($showDeletedUsers); },
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
- Exclude checks
Consider putting global function "user_filter" in a static class Open
function user_filter($name, $params, $row)
- Exclude checks
Variable "is_admin" is not in valid camel caps format Open
$is_admin = in_array($user_id, $_admins_list);
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
$current_user_status_label = $row['7'];
- Exclude checks
Variable "user_is_anonymous" is not in valid camel caps format Open
$user_is_anonymous = true;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$result .= '<a href="user_information.php?user_id='.$user_id.'">'.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_global_admin_can_edit_admin($user_id, null, true)
- Exclude checks
Variable "_user" is not in valid camel caps format Open
$_user = api_get_user_info();
- Exclude checks
Variable "_user" is not in valid camel caps format Open
} elseif ($row['0'] != $_user['user_id']) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
foreach ($_POST['id'] as $index => $user_id) {
- Exclude checks
Variable "access_url_rel_user_table" is not in valid camel caps format Open
$sql .= " INNER JOIN $access_url_rel_user_table url_rel_user
- Exclude checks
Variable "expiration_time" is not in valid camel caps format Open
if ($expiration_time < $t) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
function modify_filter($user_id, $url_params, $row): string
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
function modify_filter($user_id, $url_params, $row): string
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
'user_id' => $user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
"dashboard_add_sessions_to_user.php?user={$user_id}"
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
foreach ($_POST['id'] as $index => $user_id) {
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
$number_of_affected_users++;
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
$number_of_affected_users = 0;
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options[PLATFORM_ADMIN] = get_lang('Administrator');
- Exclude checks
Variable "active_group" is not in valid camel caps format Open
$form->addGroup($active_group, '', get_lang('activeAccount'), null, false);
- Exclude checks
Variable "keyword_admin" is not in valid camel caps format Open
$keyword_admin = '';
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
in_array($current_user_status_label, $loginAsStatusForSessionAdmins);
- Exclude checks
Variable "is_admin" is not in valid camel caps format Open
if ($is_admin) {
- Exclude checks
Variable "number_of_selected_users" is not in valid camel caps format Open
$number_of_selected_users = count($_POST['id']);
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
if ($number_of_selected_users == $number_of_affected_users) {
- Exclude checks
Consider putting global function "prepare_user_sql_query" in a static class Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
- Exclude checks
Variable "keyword_admin" is not in valid camel caps format Open
$sql .= " $keyword_admin $keyword_extra_value ";
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
'user_id' => $user_id,
- Exclude checks
Expected 4 spaces after parameter name; 1 found Open
* @param int $user_id The user id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$is_admin = in_array($user_id, $_admins_list);
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
$anonymizeUrl = "user_list.php?$url_params&"
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
"dashboard_add_sessions_to_user.php?user={$user_id}",
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options = [];
- Exclude checks
Variable "access_url_rel_user_table" is not in valid camel caps format Open
$access_url_rel_user_table = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);
- Exclude checks
Variable "total_number_of_items" is not in valid camel caps format Open
return $obj->total_number_of_items;
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
$restoreUrl = "user_list.php?$url_params&".
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (api_global_admin_can_edit_admin($user_id, null, $sessionAdminCanLoginAs)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$result .= '<a href="user_list.php?action=login_as&user_id='.$user_id.'&sec_token='.Security::getTokenFromSession().'">'.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id != $currentUserId) {
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options['%'] = get_lang('All');
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options[COURSEMANAGER] = get_lang('Trainer');
- Exclude checks
Variable "user_table" is not in valid camel caps format Open
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Consider putting global function "get_user_data" in a static class Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
$number_of_items = (int) $number_of_items;
- Exclude checks
Consider putting global function "modify_deleted_filter" in a static class Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
- Exclude checks
Variable "_admins_list" is not in valid camel caps format Open
$is_admin = in_array($user_id, $_admins_list);
- Exclude checks
Variable "current_user_status_label" is not in valid camel caps format Open
if ($current_user_status_label == $statusname[DRH] || UserManager::is_admin($user_id)) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tool_name = get_lang('Search users');
- Exclude checks
Variable "number_of_affected_users" is not in valid camel caps format Open
if ($number_of_selected_users == $number_of_affected_users) {
- Exclude checks
Variable "status_options" is not in valid camel caps format Open
$status_options[STUDENT] = get_lang('Learner');
- Exclude checks
Closing brace must be on a line by itself Open
function() use ($showDeletedUsers) { return get_number_of_users($showDeletedUsers); },
- Exclude checks
Closing brace must be on a line by itself Open
function($from, $number_of_items, $column, $direction) use ($showDeletedUsers) { return get_user_data($from, $number_of_items, $column, $direction, $showDeletedUsers); },
- Exclude checks
Variable "access_info" is not in valid camel caps format Open
foreach ($access_info as $url_info) {
- Exclude checks
Missing blank line before return statement Open
function($from, $number_of_items, $column, $direction) use ($showDeletedUsers) { return get_user_data($from, $number_of_items, $column, $direction, $showDeletedUsers); },
- Exclude checks
Variable "add_user" is not in valid camel caps format Open
if ($add_user) {
- Exclude checks
Variable "access_info" is not in valid camel caps format Open
if (!empty($access_info)) {
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
function($from, $number_of_items, $column, $direction) use ($showDeletedUsers) { return get_user_data($from, $number_of_items, $column, $direction, $showDeletedUsers); },
- Exclude checks
Variable "add_user" is not in valid camel caps format Open
$add_user = true;
- Exclude checks
Variable "table_result" is not in valid camel caps format Open
$table_result = $table->return_table();
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
foreach ($user_list as $user) {
- Exclude checks
Variable "extra_search_options" is not in valid camel caps format Open
$tpl->assign('content', $form.$table_result.$extra_search_options);
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
$user_list = UserManager::get_user_list(
- Exclude checks
Variable "access_info" is not in valid camel caps format Open
$access_info = UrlManager::get_access_url_from_user($user['id']);
- Exclude checks
Variable "access_info_to_string" is not in valid camel caps format Open
$access_info_to_string = '';
- Exclude checks
Variable "table_result" is not in valid camel caps format Open
$tpl->assign('content', $form.$table_result.$extra_search_options);
- Exclude checks
Variable "row_table" is not in valid camel caps format Open
$row_table = [];
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
function($from, $number_of_items, $column, $direction) use ($showDeletedUsers) { return get_user_data($from, $number_of_items, $column, $direction, $showDeletedUsers); },
- Exclude checks
Variable "extra_search_options" is not in valid camel caps format Open
$extra_search_options = Display::page_subheader(get_lang('Users found in other portals'));
- Exclude checks
Variable "row_table" is not in valid camel caps format Open
$row_table[] = Display::url(
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
function($from, $number_of_items, $column, $direction) use ($showDeletedUsers) { return get_user_data($from, $number_of_items, $column, $direction, $showDeletedUsers); },
- Exclude checks
Variable "url_info" is not in valid camel caps format Open
if ($urlId == $url_info['access_url_id']) {
- Exclude checks
Variable "row_table" is not in valid camel caps format Open
$row_table[] = api_get_person_name($user['firstname'], $user['lastname']).' ('.$user['username'].') ';
- Exclude checks
Variable "table_result" is not in valid camel caps format Open
$table_result = '';
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
if (!empty($user_list)) {
- Exclude checks
Variable "url_info" is not in valid camel caps format Open
$access_info_to_string .= $url_info['url'].'<br />';
- Exclude checks
Variable "access_info_to_string" is not in valid camel caps format Open
$row_table[] = $access_info_to_string;
- Exclude checks
Variable "access_info_to_string" is not in valid camel caps format Open
$access_info_to_string .= $url_info['url'].'<br />';
- Exclude checks
Variable "extra_search_options" is not in valid camel caps format Open
$extra_search_options .= $table->toHtml();
- Exclude checks
Variable "add_user" is not in valid camel caps format Open
$add_user = false;
- Exclude checks
Variable "row_table" is not in valid camel caps format Open
$row_table[] = $access_info_to_string;
- Exclude checks
Variable "row_table" is not in valid camel caps format Open
foreach ($row_table as $cell) {
- Exclude checks
Variable "extra_search_options" is not in valid camel caps format Open
$extra_search_options = '';
- Exclude checks
Variable "url_info" is not in valid camel caps format Open
foreach ($access_info as $url_info) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tpl = new Template($tool_name);
- Exclude checks
Opening brace must be the last content on the line Open
function() use ($showDeletedUsers) { return get_number_of_users($showDeletedUsers); },
- Exclude checks
Closing brace must be on a line by itself Open
function() use ($showDeletedUsers) { return get_number_of_users($showDeletedUsers); },
- Exclude checks
Opening brace must be the last content on the line Open
function($from, $number_of_items, $column, $direction) use ($showDeletedUsers) { return get_user_data($from, $number_of_items, $column, $direction, $showDeletedUsers); },
- Exclude checks
Closing brace must be on a line by itself Open
function($from, $number_of_items, $column, $direction) use ($showDeletedUsers) { return get_user_data($from, $number_of_items, $column, $direction, $showDeletedUsers); },
- Exclude checks
The variable $keyword_extra_value is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_admins_list is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_rel_user_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $is_admin is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_params is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $admin_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $keyword_admin is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_params is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $is_admin is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_params is not named in camelCase. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
{
$result = '';
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $query_admin_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $admin_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $keyword_admin is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $expiration_time is not named in camelCase. Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
{
$sql = prepare_user_sql_query(false, $showDeletedUsers);
if (!in_array($direction, ['ASC', 'DESC'])) {
$direction = 'ASC';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
{
$result = '';
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $number_of_items is not named in camelCase. Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
{
$sql = prepare_user_sql_query(false, $showDeletedUsers);
if (!in_array($direction, ['ASC', 'DESC'])) {
$direction = 'ASC';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_params is not named in camelCase. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
{
$result = '';
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $keyword_admin is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $number_of_items is not named in camelCase. Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
{
$sql = prepare_user_sql_query(false, $showDeletedUsers);
if (!in_array($direction, ['ASC', 'DESC'])) {
$direction = 'ASC';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
{
$result = '';
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $query_admin_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $keyword_extra_value is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $number_of_items is not named in camelCase. Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
{
$sql = prepare_user_sql_query(false, $showDeletedUsers);
if (!in_array($direction, ['ASC', 'DESC'])) {
$direction = 'ASC';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $expiration_time is not named in camelCase. Open
function get_user_data(int $from, int $number_of_items, int $column, string $direction, bool $showDeletedUsers = false): array
{
$sql = prepare_user_sql_query(false, $showDeletedUsers);
if (!in_array($direction, ['ASC', 'DESC'])) {
$direction = 'ASC';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_deleted_filter(int $user_id, string $url_params, array $row): string
{
$result = '';
$editProfileUrl = Display::getProfileEditionLink($user_id, true);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_admins_list is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $url_params is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_id is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $query_admin_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_user is not named in camelCase. Open
function active_filter(int $active, string $params, array $row): string
{
$_user = api_get_user_info();
$action = 'Unlock';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_rel_user_table is not named in camelCase. Open
function prepare_user_sql_query(bool $getCount, bool $showDeletedUsers = false): string
{
$sql = '';
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_is_anonymous is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_user is not named in camelCase. Open
function active_filter(int $active, string $params, array $row): string
{
$_user = api_get_user_info();
$action = 'Unlock';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_status_label is not named in camelCase. Open
function modify_filter($user_id, $url_params, $row): string
{
$_admins_list = Session::read('admin_list', []);
$is_admin = in_array($user_id, $_admins_list);
$statusname = api_get_status_langvars();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}