Missing class import via use statement (line '159', column '27'). Open
$xajax_response = new xajaxResponse();
- 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
Remove error control operator '@' on line 221. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 172. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
The method make_select_session_list uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$output .= '<option value = "0">'.get_lang('Select a session').'</option>';
}
- 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 search_courses uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select_destination .= '<select name="sessions_list_destination" class="form-control" onchange = "javascript: xajax_search_courses(this.value,\'destination\');">';
$select_destination .= '<option value = "0">'.get_lang('There are no sessions available').'</option>';
$select_destination .= '</select>';
$xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));
- 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 search_courses uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Search courses by id_session where course codes is include en courses list destination
$sql = "SELECT c.code, c.visual_code, c.title, src.session_id
FROM $tbl_course c, $tbl_session_rel_course src
WHERE src.c_id = c.id
- 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 parameter $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 "with_base_content" is not in valid camel caps format Open
$with_base_content = true;
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$origin_session = $_POST['origin_session'];
- Exclude checks
Variable "destination_course" is not in valid camel caps format Open
$cr->restore($destination_course, $destination_session);
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$arr_course_origin = $_POST['SessionCoursesListOrigin'];
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$destination_session = $_POST['sessions_list_destination'];
- Exclude checks
Variable "course_origin" is not in valid camel caps format Open
$cb = new CourseBuilder('', $course_origin);
- Exclude checks
Variable "arr_course_destination" is not in valid camel caps format Open
$arr_course_destination = $_POST['SessionCoursesListDestination'];
- Exclude checks
Variable "with_base_content" is not in valid camel caps format Open
$course = $cb->build($origin_session, $arr_course_origin[0], $with_base_content);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
if ($id_session == $session['id']) {
- Exclude checks
Variable "select_multiple_empty" is not in valid camel caps format Open
$select_multiple_empty = '<select id="destination" name="SessionCoursesListDestination[]" class="form-control"></select>';
- Exclude checks
Variable "origin_course" is not in valid camel caps format Open
if ($destination_course !== $origin_course) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
if ($course_code != $course_destinatination) {
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$destination_session = $_POST['sessions_list_destination'];
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$hiddenFields['origin_session'] = $origin_session;
- Exclude checks
Variable "tbl_course" is not in valid camel caps format Open
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
- Exclude checks
Variable "course_list_destination" is not in valid camel caps format Open
$course_list_destination = [];
- Exclude checks
Variable "xajax_response" is not in valid camel caps format Open
return $xajax_response;
- Exclude checks
Variable "origin_course" is not in valid camel caps format Open
$destination_course = $origin_course = $destination_session = $origin_session = '';
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$origin_session = '';
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$origin_session = '';
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$origin_session = $_POST['sessions_list_origin'];
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
$current_course_tool = TOOL_COURSE_MAINTENANCE;
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination .= '<option value="'.$session['id'].'">'.$session['title'].' '.$session['category_name'].'</option>';
- Exclude checks
Variable "tbl_course" is not in valid camel caps format Open
FROM $tbl_course c, $tbl_session_rel_course src
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
FROM $tbl_course c, $tbl_session_rel_course src
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_PLATFORM_ADMIN;
- Exclude checks
Variable "course_list_destination" is not in valid camel caps format Open
Session::write('course_list_destination', $course_list_destination);
- Exclude checks
Variable "tbl_session_rel_course_rel_user" is not in valid camel caps format Open
$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$course = $cb->build($origin_session, $arr_course_origin[0], $with_base_content);
- Exclude checks
Variable "tbl_course" is not in valid camel caps format Open
global $tbl_course, $tbl_session_rel_course;
- Exclude checks
Variable "temp_course_list" is not in valid camel caps format Open
$temp_course_list = [];
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$destination_course = $origin_course = $destination_session = $origin_session = '';
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
- Exclude checks
Variable "tbl_session_rel_course" is not in valid camel caps format Open
global $tbl_course, $tbl_session_rel_course;
- Exclude checks
Variable "xajax_response" is not in valid camel caps format Open
$xajax_response->addAssign(
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {
- Exclude checks
Variable "course_destinatination" is not in valid camel caps format Open
$cr->restore($course_destinatination, $destination_session);
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$destination_session = '';
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$course_origin = api_get_course_info($arr_course_origin[0]);
- Exclude checks
Variable "with_base_content" is not in valid camel caps format Open
$with_base_content = false;
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$origin_session = $_POST['sessions_list_origin'];
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$course = $cb->build($origin_session, $arr_course_origin[0], $with_base_content);
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination = '';
- Exclude checks
Variable "temp_course_list" is not in valid camel caps format Open
$temp_course_list[] = "'{$course['code']}'";
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
if (!empty($id_session)) {
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination .= '</select>';
- Exclude checks
Variable "xajax_response" is not in valid camel caps format Open
$xajax_response->addAssign('ajax_list_courses_origin', 'innerHTML', api_utf8_encode($return));
- Exclude checks
Variable "course_list_destination" is not in valid camel caps format Open
$course_list_destination[] = $course['code'];
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {
- Exclude checks
Variable "course_destinatination" is not in valid camel caps format Open
if ($course_code != $course_destinatination) {
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$arr_course_origin = $_POST['SessionCoursesListOrigin'];
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination .= '<option value = "0">'.get_lang('There are no sessions available').'</option>';
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
AND src.session_id = '".intval($id_session)."'";
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$destination_course = $origin_course = $destination_session = $origin_session = '';
- 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 "destination_course" is not in valid camel caps format Open
$destination_course = $_POST['destination_course'];
- Exclude checks
Variable "xajax_response" is not in valid camel caps format Open
$xajax_response = new xajaxResponse();
- Exclude checks
Variable "origin_course" is not in valid camel caps format Open
$origin_course = $_POST['origin_course'];
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination .= '<option value = "0">-- '.get_lang('Select a session').' --</option>';
- Exclude checks
Variable "destination_course" is not in valid camel caps format Open
if ($destination_course !== $origin_course) {
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$destination_session = $_POST['destination_session'];
- Exclude checks
Variable "with_base_content" is not in valid camel caps format Open
$course = $cb->build($origin_session, $course_code, $with_base_content);
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$cr->restore($course_destinatination, $destination_session);
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$cr->restore($destination_course, $destination_session);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$course_code = $arr_course_origin[0];
- Exclude checks
Variable "course_origin" is not in valid camel caps format Open
$course_origin = api_get_course_info($arr_course_origin[0]);
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$arr_course_origin = [];
- Exclude checks
Variable "course_origin" is not in valid camel caps format Open
$cb = new CourseBuilder('', $course_origin);
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$hiddenFields['origin_course'] = $arr_course_origin[0];
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$hiddenFields['destination_session'] = $destination_session;
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
$course_list = SessionManager::get_course_list_by_session_id($id_session);
- Exclude checks
Variable "xajax_response" is not in valid camel caps format Open
$xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));
- Exclude checks
Variable "arr_course_destination" is not in valid camel caps format Open
$course_destinatination = $arr_course_destination[0];
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$course = $cb->build($origin_session, $course_code, $with_base_content);
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
Session::write('session_origin', $id_session);
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination .= '<select name="sessions_list_destination" class="form-control" onchange = "javascript: xajax_search_courses(this.value,\'destination\');">';
- Exclude checks
Variable "xajax_response" is not in valid camel caps format Open
$xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));
- Exclude checks
Variable "destination_course" is not in valid camel caps format Open
$destination_course = $origin_course = $destination_session = $origin_session = '';
- Exclude checks
Variable "origin_course" is not in valid camel caps format Open
$origin_course
- Exclude checks
Variable "destination_session" is not in valid camel caps format Open
$destination_session = '';
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
if (count($arr_course_origin) > 1 || count($arr_course_destination) > 1) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$course_origin = api_get_course_info($course_code);
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$course = $cb->build($origin_session, $course_code, $with_base_content);
- Exclude checks
Consider putting global function "display_form" in a static class Open
function display_form()
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
function search_courses($id_session, $type)
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
foreach ($course_list as $course) {
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$course_code = $arr_course_origin[0];
- Exclude checks
Variable "course_destinatination" is not in valid camel caps format Open
$course_destinatination = $arr_course_destination[0];
- Exclude checks
Variable "arr_course_destination" is not in valid camel caps format Open
$arr_course_destination = [];
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
$id_session = (int) $id_session;
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
$course_list = SessionManager::get_course_list_by_session_id($id_session);
- Exclude checks
Variable "temp_course_list" is not in valid camel caps format Open
Session::write('course_list', $temp_course_list);
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination .= '</select>';
- Exclude checks
Variable "xajax_response" is not in valid camel caps format Open
$xajax_response->addAssign('ajax_list_courses_destination', 'innerHTML', api_utf8_encode($select_multiple_empty));
- Exclude checks
Consider putting global function "make_select_session_list" in a static class Open
function make_select_session_list($name, $sessions, $attr = [])
- Exclude checks
Variable "select_multiple_empty" is not in valid camel caps format Open
$xajax_response->addAssign('ajax_list_courses_destination', 'innerHTML', api_utf8_encode($select_multiple_empty));
- Exclude checks
Variable "origin_session" is not in valid camel caps format Open
$origin_session,
- Exclude checks
Variable "arr_course_destination" is not in valid camel caps format Open
$arr_course_destination = [];
- Exclude checks
Variable "arr_course_destination" is not in valid camel caps format Open
if (count($arr_course_origin) > 1 || count($arr_course_destination) > 1) {
- Exclude checks
Variable "arr_course_destination" is not in valid camel caps format Open
$hiddenFields['destination_course'] = $arr_course_destination[0];
- Exclude checks
Consider putting global function "search_courses" in a static class Open
function search_courses($id_session, $type)
- Exclude checks
Variable "id_session" is not in valid camel caps format Open
$id_session = (int) $id_session;
- Exclude checks
Variable "select_destination" is not in valid camel caps format Open
$select_destination .= '<select name="sessions_list_destination" class="form-control" onchange = "javascript: xajax_search_courses(this.value,\'destination\');">';
- Exclude checks
Variable "arr_course_origin" is not in valid camel caps format Open
$arr_course_origin = [];
- Exclude checks
Variable "arr_course_destination" is not in valid camel caps format Open
$arr_course_destination = $_POST['SessionCoursesListDestination'];
- Exclude checks
Variable "course_origin" is not in valid camel caps format Open
$course_origin = api_get_course_info($course_code);
- Exclude checks
The variable $xajax_response is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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_list_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_multiple_empty is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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_list_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $xajax_response is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $xajax_response is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $tbl_session_rel_course is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $temp_course_list is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $xajax_response is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $temp_course_list is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_multiple_empty is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $tbl_session_rel_course is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $temp_course_list is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $xajax_response is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $tbl_course is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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_list is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $xajax_response is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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_list is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $xajax_response is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $select_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $id_session is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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_list_destination is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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 $tbl_course is not named in camelCase. Open
function search_courses($id_session, $type)
{
global $tbl_course, $tbl_session_rel_course;
$xajax_response = new xajaxResponse();
$select_destination = '';
- 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();
}
}