chamilo/chamilo-lms

View on GitHub
public/main/session/session_import.php

Summary

Maintainability
A
0 mins
Test Coverage

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

                                api_utf8_decode($nodeUser->Phone),

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

                                $courseId = $course_info['real_id'];

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

                                    $sql_course = "INSERT INTO $tblSessionCourse SET

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

                                    $coachId = UserManager::get_user_id_from_username($course_coach);

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

                    foreach ($root->Courses->Course as $courseNode) {

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

                        if (empty($courseNode->CourseTitle)) {

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

                            if (CourseManager::course_exists($course_code)) {

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

                if (empty($root->Users->User) && empty($root->Courses->Course) && empty($root->Session)) {

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

                            switch ($nodeUser->Status) {

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

                            $params['title'] = api_utf8_decode($courseNode->CourseCode);

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

                if (count($root->Session) > 0) {

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

                            $course_code = Database::escape_string(trim(api_utf8_decode($nodeCourse->CourseCode)));

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

                                foreach ($courseCoaches as $course_coach) {

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

                            $lastname = trim(api_utf8_decode($nodeUser->Lastname));

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

                            $email = trim(api_utf8_decode($nodeUser->Email));

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

                            $phone = trim(api_utf8_decode($nodeUser->Phone));

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

                        $params['wanted_code'] = api_utf8_decode($courseNode->CourseCode);

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

                        $sessionCategoryId = trim(api_utf8_decode($nodeSession->SessionCategory));

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

                                    $rs_course = Database::query($sql_course);

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

                            $officialCode = trim(api_utf8_decode($nodeUser->OfficialCode));

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

                            $params['title'] = api_utf8_decode($courseNode->CourseTitle);

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

                            $visibility = trim(api_utf8_decode($nodeSession->VisibilityAfterExpiration));

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

                        foreach ($nodeSession->User as $nodeUser) {

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

                if (count($root->Users->User) > 0) {

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

                        $params['course_language'] = api_utf8_decode($courseNode->CourseLanguage);

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

                                foreach ($nodeCourse->User as $nodeUser) {

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

                                api_utf8_decode($nodeUser->Email),

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

                    foreach ($root->Session as $nodeSession) {

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

                    foreach ($root->Users->User as $nodeUser) {

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

                            $status = trim(api_utf8_decode($nodeUser->Status));

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

                            $course_code = Database::escape_string(trim(api_utf8_decode($nodeCourse->CourseCode)));

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

                            $firstname = trim(api_utf8_decode($nodeUser->Firstname));

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

                        $username = trim(api_utf8_decode($courseNode->CourseTeacher));

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

                            $dateEnd = trim(api_utf8_decode($nodeSession->DateEnd));

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

                                $course_info = api_get_course_info($course_code);

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

                                $insertedInCourse[$course_code] = $course_info['title'];

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

                            api_utf8_decode($nodeSession->Coach),

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

                                $insertedInCourse[$course_code] = $course_info['title'];

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

                if (empty($root->Users->User) && empty($root->Courses->Course) && empty($root->Session)) {

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

                                api_utf8_decode($nodeUser->Lastname),

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

                if (empty($root->Users->User) && empty($root->Courses->Course) && empty($root->Session)) {

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

                                api_utf8_decode($nodeUser->Firstname),

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

                                api_utf8_decode($nodeUser->OfficialCode),

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

                        $sessionName = trim(api_utf8_decode($nodeSession->SessionName));

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

                        $dStart = trim(api_utf8_decode($nodeSession->DateStart));

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

$this_section = SECTION_PLATFORM_ADMIN;

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

                        $username = $usernameOld = trim(api_utf8_decode($nodeUser->Username));

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

                                $course_info = api_get_course_info($course_code);

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

                                    $rs_course = Database::query($sql_course);

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

                if (count($root->Courses->Course) > 0) {

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

                        if (isset($nodeSession->VisibilityAfterExpiration)) {

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

                        foreach ($nodeSession->Course as $nodeCourse) {

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

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

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

                            $password = api_utf8_decode($nodeUser->Password);

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

                            $password = api_utf8_decode($nodeUser->Password);

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

                                $courseCoaches = explode(',', $nodeCourse->Coach);

There are no issues that match your filters.

Category
Status