The function get_number_of_users() has an NPath complexity of 216. The configured NPath complexity threshold is 200. Open
function get_number_of_users()
{
$counter = 0;
$sessionId = api_get_session_id();
$courseCode = api_get_course_id();
- 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 modify_filter() has an NPath complexity of 4208. The configured NPath complexity threshold is 200. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 get_user_data() has an NPath complexity of 132192. The configured NPath complexity threshold is 200. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 '924', column '40'). Open
$extraFieldValue = new ExtraFieldValue('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
Missing class import via use statement (line '923', column '41'). Open
$extraFieldOption = new ExtraFieldOption('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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$status = 0;
}
- 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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if (COURSEMANAGER == $type) {
$status = 2;
} else {
$status = 0;
- 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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$users = CourseManager::get_user_list_from_course_code(
$courseCode,
0,
null,
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$active = false;
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$status = 0;
if (COURSEMANAGER == $type) {
$status = 2;
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$temp[] = $userData['lastname'];
$temp[] = $userData['firstname'];
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$temp[] = $userData['lastname'];
$temp[] = $userData['firstname'];
}
- 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 {
// Show buttons for unsubscribe
if (1 == $course_info['unsubscribe']) {
if ($user_id == $current_user_id) {
$result .= '<a
- 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 get_number_of_users uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$active = false;
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$temp[] = '';
}
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$temp[] = '';
$temp[] = $photo;
$temp[] = $userData['official_code'];
- 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 get_user_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$temp[] = Security::remove_XSS($data['value']);
}
- 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 {
$disabled = '';
}
- 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 '$row'. Open
function modify_filter($user_id, $row, $data)
- 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 '$urlParams'. Open
function active_filter($active, $urlParams, $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
The parameter $official_code is not named in camelCase. Open
function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
{
if (false !== api_strripos($firstname, $keyword) ||
false !== api_strripos($lastname, $keyword) ||
false !== api_strripos($username, $keyword) ||
- 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($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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
Variable "user_id" is not in valid camel caps format Open
$user_id = api_get_user_id();
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
$is_western_name_order = api_is_western_name_order();
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$disableUsers = 3 === (int) $course_info['visibility'] &&
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_ids = array_diff($_POST['user'], [$user_id]);
- Exclude checks
Variable "user_ids" is not in valid camel caps format Open
CourseManager::unsubscribe_user($user_ids, $courseCode);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$courseCode = $course_info['code'];
- Exclude checks
Variable "user_ids" is not in valid camel caps format Open
$user_ids = array_diff($_POST['user'], [$user_id]);
- Exclude checks
Variable "_user" is not in valid camel caps format Open
$_user = api_get_user_info();
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_info['unsubscribe'] = 0;
- Exclude checks
Variable "user_ids" is not in valid camel caps format Open
if (count($user_ids) > 0) {
- Exclude checks
Variable "sort_by_first_name" is not in valid camel caps format Open
$sort_by_first_name = api_sort_by_first_name();
- Exclude checks
Variable "use_anonymous" is not in valid camel caps format Open
$use_anonymous = true;
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
$current_course_tool = TOOL_USER;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_info = api_get_course_info();
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$courseId = $course_info['real_id'];
- Exclude checks
Variable "sort_by_first_name" is not in valid camel caps format Open
$sql .= $sort_by_first_name ? ' ORDER BY user.firstname, user.lastname' : ' ORDER BY user.lastname, user.firstname';
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[] = $user;
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
$extra_fields = UserManager::get_extra_user_data(
- Exclude checks
Variable "user_image_pdf_size" is not in valid camel caps format Open
$user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[] = $user;
- Exclude checks
Variable "tbl_user" is not in valid camel caps format Open
FROM $tbl_user user
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
if (1 == $course_info['unsubscribe']) {
- Exclude checks
Variable "default_column" is not in valid camel caps format Open
$default_column = 3;
- Exclude checks
Expected 2 spaces after parameter type; 1 found Open
* @param string $username
- Exclude checks
Variable "official_code" is not in valid camel caps format Open
function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
$number_of_items = (int) $number_of_items;
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = [
- Exclude checks
Variable "extra_value" is not in valid camel caps format Open
$user[$key] = $extra_value;
- Exclude checks
Variable "user_image" is not in valid camel caps format Open
$user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[] = $user_pdf;
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('First name'));
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
if (1 == $course_info['unsubscribe']) {
- Exclude checks
Variable "keyword_name" is not in valid camel caps format Open
echo '<br/>'.get_lang('Search resultsFor').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
- Exclude checks
Expected 2 spaces after parameter type; 1 found Open
* @param string $firstname
- Exclude checks
Variable "user_image_pdf_size" is not in valid camel caps format Open
$user_image_pdf_size = 80;
- Exclude checks
Variable "select_email_condition" is not in valid camel caps format Open
$select_email_condition = ' user.email, ';
- Exclude checks
Variable "extra_value" is not in valid camel caps format Open
foreach ($extra_fields as $key => $extra_value) {
- Exclude checks
Variable "user_image" is not in valid camel caps format Open
$user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = api_get_user_info($user['user_id']);
- Exclude checks
Variable "user_pdf" is not in valid camel caps format Open
$user_pdf = [
- Exclude checks
Variable "user_pdf" is not in valid camel caps format Open
$a_users[] = $user_pdf;
- Exclude checks
Variable "header_attributes" is not in valid camel caps format Open
'header_attributes' => $header_attributes,
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
function get_user_data($from, $number_of_items, $column, $direction)
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
$is_western_name_order = api_is_western_name_order();
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
$extra_fields = array_keys($extra_fields);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
if (isset($course_info['activate_legal']) && 1 == $course_info['activate_legal']) {
- Exclude checks
Variable "user_image" is not in valid camel caps format Open
$user_image,
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
user.id as user_id, ".($is_western_name_order ? "user.firstname, user.lastname" : "user.lastname, user.firstname").",
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
- Exclude checks
Variable "user_image" is not in valid camel caps format Open
$user_image,
- Exclude checks
Variable "_user" is not in valid camel caps format Open
($_GET['user_id'] != $_user['user_id'] || api_is_platform_admin())
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Status'), false);
- Exclude checks
Variable "table_users" is not in valid camel caps format Open
FROM $table_course_user as course_user, $table_users as user ";
- Exclude checks
Variable "sort_by_first_name" is not in valid camel caps format Open
$sql .= ($sort_by_first_name ? " ORDER BY user.firstname, user.lastname" : " ORDER BY user.lastname, user.firstname");
- Exclude checks
Variable "extra_value" is not in valid camel caps format Open
$user[$key] = $extra_value;
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
Export::arrayToXls($a_users, $fileName);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['lastname'] = $header_nr;
- Exclude checks
Variable "header_attributes" is not in valid camel caps format Open
$header_attributes = [
- Exclude checks
Variable "tbl_session_rel_user" is not in valid camel caps format Open
INNER JOIN $tbl_session_rel_user reluser
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
CourseManager::unsubscribe_user($user_id, $courseCode);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['official_code'] = $header_nr;
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['groups'] = $header_nr;
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tool_name = get_lang('Search results');
- Exclude checks
Expected 2 spaces after parameter type; 1 found Open
* @param string $official_code
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$course_code = $course_info['code'];
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_code = $course_info['code'];
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
Export::arrayToCsv($a_users, $fileName);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (($row && $row['user_id'] == $user_id) || empty($row)) {
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['firstname'] = $header_nr;
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users = [];
- Exclude checks
Variable "select_email_condition" is not in valid camel caps format Open
$select_email_condition
- Exclude checks
Variable "select_email_condition" is not in valid camel caps format Open
$select_email_condition
- Exclude checks
Variable "user_pdf" is not in valid camel caps format Open
$user_pdf = [
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = api_get_user_id();
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['photo'] = $header_nr;
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('active'), false);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_column_filter($header_nr - 1, 'modify_filter');
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Display::display_header($tool_name, 'User');
- Exclude checks
Consider putting global function "searchUserKeyword" in a static class Open
function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
- Exclude checks
Variable "official_code" is not in valid camel caps format Open
false !== api_strripos($official_code, $keyword)
- Exclude checks
Variable "table_users" is not in valid camel caps format Open
$table_users = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Variable "select_email_condition" is not in valid camel caps format Open
$select_email_condition = ' user.email, ';
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = array_merge($a_users[0], $extra_fields);
- Exclude checks
Variable "user_image" is not in valid camel caps format Open
$user_image,
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
INNER JOIN $tbl_session_rel_course rel_course
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
user.id = $user_id AND
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Code'));
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Group'), false);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_column_filter($header_nr - 1, 'modify_filter');
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_info = api_get_course_info();
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.official_code '.$direction;
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = [
- Exclude checks
Variable "user_pdf" is not in valid camel caps format Open
$user_pdf = [
- Exclude checks
Variable "user_pdf" is not in valid camel caps format Open
$a_users[] = $user_pdf;
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['lastname'] = $header_nr;
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Last name'));
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('First name'));
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tool_name = get_lang('Users');
- Exclude checks
Missing parameter name Open
* @param $keyword
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "current_access_url_id" is not in valid camel caps format Open
$current_access_url_id = api_get_current_access_url_id();
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
$extra_fields = array_keys($extra_fields);
- Exclude checks
Expected 2 spaces after parameter type; 1 found Open
* @param string $lastname
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
$extra_fields = UserManager::get_extra_user_data(
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = [
- Exclude checks
Variable "sort_by_first_name" is not in valid camel caps format Open
if ($sort_by_first_name) {
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = [
- Exclude checks
Variable "user_image_pdf_size" is not in valid camel caps format Open
$user_image = '<img src="'.$user_info['avatar'].'" width ="'.$user_image_pdf_size.'px" />';
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
foreach ($extra_fields as $key => $extra_value) {
- Exclude checks
Variable "default_column" is not in valid camel caps format Open
$default_column
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Photo'), false);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['firstname'] = $header_nr;
- Exclude checks
Consider putting global function "get_number_of_users" in a static class Open
function get_number_of_users()
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
$number_of_items = (int) $number_of_items;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
if (isset($course_info['activate_legal']) && 1 == $course_info['activate_legal']) {
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[] = $user_pdf;
- Exclude checks
Variable "current_access_url_id" is not in valid camel caps format Open
$sql .= " AND user.id = au.user_id AND access_url_id = $current_access_url_id ";
- Exclude checks
Variable "extra_value" is not in valid camel caps format Open
foreach ($extra_fields as $key => $extra_value) {
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
Export::export_table_pdf($a_users, $params);
- Exclude checks
Variable "tbl_user" is not in valid camel caps format Open
$tbl_user = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Variable "tbl_session_rel_user" is not in valid camel caps format Open
$tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, '', false);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Last name'));
- Exclude checks
Variable "keyword_name" is not in valid camel caps format Open
$keyword_name = Security::remove_XSS($_GET['keyword']);
- Exclude checks
Variable "select_email_condition" is not in valid camel caps format Open
$select_email_condition = '';
- Exclude checks
Variable "sort_by_first_name" is not in valid camel caps format Open
if ($sort_by_first_name) {
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = [
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0][] = get_lang('Legal agreement accepted');
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
$a_users[0] = array_merge($a_users[0], $extra_fields);
- Exclude checks
Variable "table_session_course_user" is not in valid camel caps format Open
$table_session_course_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
- Exclude checks
Variable "current_access_url_id" is not in valid camel caps format Open
$sql .= " AND user.id = au.user_id AND access_url_id = $current_access_url_id ";
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = api_get_user_info($user['user_id']);
- Exclude checks
Variable "user_pdf" is not in valid camel caps format Open
$user_pdf = [
- Exclude checks
Variable "user_image" is not in valid camel caps format Open
$user_image,
- Exclude checks
Variable "table_course_user" is not in valid camel caps format Open
FROM $table_course_user as course_user, $table_users as user ";
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
if (!empty($extra_fields)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
CourseManager::unsubscribe_user($user_id, $course_info['code']);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
CourseManager::unsubscribe_user($user_id, $course_info['code']);
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$header_nr = 0;
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Action'), false);
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users = [];
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
$limit = 'LIMIT '.$from.','.$number_of_items;
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = array_merge($a_users[0], $extra_fields);
- Exclude checks
Variable "table_session_course_user" is not in valid camel caps format Open
FROM $table_session_course_user as session_course_user,
- Exclude checks
Variable "table_users" is not in valid camel caps format Open
$table_users as user ";
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
if (!empty($extra_fields)) {
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
foreach ($extra_fields as $key => $extra_value) {
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "table_course_user" is not in valid camel caps format Open
$table_course_user = Database::get_main_table(TABLE_MAIN_COURSE_USER);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $_GET['user_id'];
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Login'));
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, $extraField['display_text'], false);
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
global $is_western_name_order;
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
- Exclude checks
Variable "default_status" is not in valid camel caps format Open
$default_status = get_lang('Student');
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$course_info = $_course = api_get_course_info();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$result .= '<a href="../my_space/myStudents.php?'.api_get_cidreq().'&student='.$user_id.'&details=true&course='.$courseId.'&origin=user_course&id_session='.api_get_session_id().'"
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.username '.$direction;
- Exclude checks
Variable "is_allowed_to_track" is not in valid camel caps format Open
if ($is_allowed_to_track) {
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "default_status" is not in valid camel caps format Open
$default_status = get_lang('Tutor');
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$a_users[$user_id] = $temp;
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$groupsNameList = GroupManager::getAllGroupPerUserSubscription($user_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
'user.php?'.api_get_cidreq().'&action=set_tutor&is_tutor='.$isTutor.'&user_id='.$user_id.'&type='.$type,
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "default_status" is not in valid camel caps format Open
$temp[] = $default_status;
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Consider putting global function "modify_filter" in a static class Open
function modify_filter($user_id, $row, $data)
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$courseId = $_course['id'];
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
if (1 == $course_info['unsubscribe']) {
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[0] = [
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
user.id as user_id, ".($is_western_name_order ? "user.firstname, user.lastname" : "user.lastname, user.firstname").",
- Exclude checks
Variable "extra_fields" is not in valid camel caps format Open
$extra_fields = UserManager::get_extra_user_data(
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$indexList['username'] = $header_nr;
- Exclude checks
Variable "header_nr" is not in valid camel caps format Open
$table->set_header($header_nr++, get_lang('Action'), false);
- Exclude checks
Consider putting global function "get_user_data" in a static class Open
function get_user_data($from, $number_of_items, $column, $direction)
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$temp[] = $user_id;
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
return $a_users;
- Exclude checks
Consider putting global function "active_filter" in a static class Open
function active_filter($active, $urlParams, $row)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = $data[0];
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
if ($user_id == $current_user_id) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
href="'.api_get_self().'?'.api_get_cidreq().'&type='.$type.'&unregister=yes&user_id='.$user_id.'"
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
if ($user_id != $current_user_id || api_is_platform_admin()) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$course_code,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$temp[] = $user_id;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$userInfo = api_get_user_info($user_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id == $current_user_id) {
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user = api_get_user_entity($user_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$temp[] = $user_id;
- Exclude checks
Variable "is_western_name_order" is not in valid camel caps format Open
if ($is_western_name_order) {
- Exclude checks
Variable "default_status" is not in valid camel caps format Open
$default_status = get_lang('CourseManager');
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_get_path(WEB_CODE_PATH).'extra/userInfo.php?'.api_get_cidreq().'&editMainUserInfo='.$user_id.'"
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$course_info = $_course = api_get_course_info();
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
$current_user_id = api_get_user_id();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
href="'.api_get_self().'?'.api_get_cidreq().'&type='.$type.'&unregister=yes&user_id='.$user_id.'"
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
foreach ($users as $user_id => $userData) {
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
if (1 == $course_info['unsubscribe']) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
function modify_filter($user_id, $row, $data)
- Exclude checks
Variable "is_allowed_to_track" is not in valid camel caps format Open
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "a_users" is not in valid camel caps format Open
$a_users[$user_id] = $temp;
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.lastname '.$direction.', user.firstname '.$direction;
- Exclude checks
Variable "order_by" is not in valid camel caps format Open
$order_by = 'ORDER BY user.firstname '.$direction.', user.lastname '.$direction;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
href="'.api_get_path(WEB_CODE_PATH).'admin/user_list.php?action=login_as&user_id='.$user_id.'&sec_token='.Security::getTokenFromSession().'">'.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($user_id != $current_user_id || api_is_platform_admin()) {
- Exclude checks
The variable $is_western_name_order is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_western_name_order is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $course_code is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $course_info is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $course_info is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $course_code is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_western_name_order is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_western_name_order is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $a_users is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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_id is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 $official_code is not named in camelCase. Open
function searchUserKeyword($firstname, $lastname, $username, $official_code, $keyword)
{
if (false !== api_strripos($firstname, $keyword) ||
false !== api_strripos($lastname, $keyword) ||
false !== api_strripos($username, $keyword) ||
- 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($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_western_name_order is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_id is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $_course is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 $default_status is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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_allowed_to_track is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 $_course is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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_western_name_order is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $course_info is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $order_by is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $course_info is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 $default_status is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $default_status is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $a_users is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $a_users is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 $default_status is not named in camelCase. Open
function get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_id is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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 get_user_data($from, $number_of_items, $column, $direction)
{
global $is_western_name_order;
global $extraFields;
$type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : STUDENT;
- 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_allowed_to_track is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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 $course_info is not named in camelCase. Open
function modify_filter($user_id, $row, $data)
{
$canEditUsers = 'true' == api_get_setting('allow_user_course_subscription_by_course_admin') || api_is_platform_admin();
$is_allowed_to_track = api_is_allowed_to_edit(true, true);
- 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();
}
}