chamilo/chamilo-lms

View on GitHub
public/main/my_space/myStudents.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$drh_can_access_all_courses = false;

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

$tbl_course_user = Database::get_main_table(TABLE_MAIN_COURSE_USER);

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

$tbl_stats_exercices = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);

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

        $lp_id = isset($_GET['lp_id']) ? (int) $_GET['lp_id'] : '';

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

                $lp_id,

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

                $session_coached_by_user['id']

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

    $from_myspace = true;

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

$courses_in_session = [];

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

$courses_in_session_by_coach = [];

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

    if (!empty($session_by_session_admin)) {

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

    $drh_can_access_all_courses = true;

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

$sessions_coached_by_user = Tracking::get_sessions_coached_by_user(api_get_user_id());

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

$csv_content = [];

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

    $this_section = SECTION_TRACKING;

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

        $this_section = SECTION_TRACKING;

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

        foreach ($session_by_session_admin as $session_coached_by_user) {

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

            $courses_in_session_by_coach[$session_coached_by_user['id']] = $courses_followed_by_coach;

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

$from_myspace = false;

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

            $courses_in_session_by_coach[$session_coached_by_user['id']] = $courses_followed_by_coach;

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

                        <td >'.$time_spent_on_course.'</td>

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

        if (!empty($lp_id) &&

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

            $courses_in_session_by_coach[$session_coached_by_user['id']] = $courses_followed_by_coach;

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

$this_section = SECTION_COURSES;

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

                    $time_spent_on_course = api_time_to_hms($timeInSeconds);

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

    $session_by_session_admin = SessionManager::get_sessions_followed_by_drh(api_get_user_id());

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

        foreach ($session_by_session_admin as $session_coached_by_user) {

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

            $courses_followed_by_coach = Tracking::get_courses_list_from_session(

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

    strip_tags($first_connection_date),

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

$userInfoExtra['last_connection'] = $last_connection_date;

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

    $csv_content[] = [];

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

        if ($session_info) {

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

            if (!empty($session_info['access_end_date'])) {

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

                    $scoretotal_display = '0/0 (0%)';

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

                        $time_spent_on_course,

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

                    <td >'.$time_spent_on_course.'</td>

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

    foreach ($sessions_coached_by_user as $session_coached_by_user) {

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

        $courses_in_session[0][] = $row['c_id'];

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

    if ($drh_can_access_all_courses) {

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

$time_spent_on_the_course = 0;

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

    $first_connection_date = get_lang('No connection');

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

$csv_content[] = [

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

            if (!empty($session_info['access_start_date'])) {

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

                .' '.$session_name.($date_session ? ' ('.$date_session.')' : '');

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

                    $attendances_faults_avg = '0/0 (0%)';

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

            $csv_content[] = $csvRow;

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

                $start_time = Tracking::get_last_connection_time_in_lp(

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

                $score_latest = Tracking::get_avg_student_score(

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

    $avg_student_score = Tracking::get_avg_student_score(

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

$avg_student_progress = round($avg_student_progress, 2);

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

    $time_spent_on_the_course = api_time_to_hms(

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

$coachs_name = '';

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

                $access_start_date = api_format_date($session_info['access_start_date'], DATE_FORMAT_SHORT);

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

    $chat_last_connection = Tracking::chat_last_connection($studentId, $course->getId(), $sessionId);

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

            if (!empty($access_start_date) && !empty($access_end_date)) {

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

        'tasks' => $nb_assignments,

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

                    $results_faults_avg = $attendance->get_faults_average_by_course(

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

        $session_name = '';

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

                $date_session = get_lang('From').' '.$access_start_date.' '.get_lang('Until').' '.$access_end_date;

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

                                .' ('.$results_faults_avg['percent'].'%)';

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

                    [$lp_id],

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

                    $total_time = Tracking::get_time_spent_in_lp(

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

            $courses_in_session[$row['session_id']][] = $row['c_id'];

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

if ('' == $last_connection_date) {

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

$csv_content[] = [

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

if (is_numeric($avg_student_score)) {

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

    $userInfoExtra['time_spent_course'] = $time_spent_on_the_course;

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

        $access_start_date = '';

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

                    if (!empty($results_faults_avg['total'])) {

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

                        $session_name,

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

                    $total_time = isset($lpTime[$lp_id]) ? (int) $lpTime[$lp_id] : 0;

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

                if (!empty($total_time)) {

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

if (!empty($sessions_coached_by_user)) {

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

            $courses_in_session[0][] = $row['c_id'];

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

            if (in_array($row['session_id'], $tmp_sessions)) {

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

$csv_content[] = [

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

$csv_content[] = [];

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

    $nb_assignments = Container::getStudentPublicationRepository()->countUserPublications(

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

    foreach ($courses_in_session as $sId => $courses) {

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

                $access_end_date = api_format_date($session_info['access_end_date'], DATE_FORMAT_SHORT);

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

            $flat_list = $list->get_flat_list();

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

                        [$lp_id],

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

                    $start_time = api_convert_and_format_date($start_time, DATE_TIME_FORMAT_LONG);

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

        $courses_followed_by_coach = Tracking::get_courses_followed_by_coach(api_get_user_id(), $sid);

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

        FROM $tbl_course_user

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

$avg_student_progress = $avg_student_score = 0;

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

if ('' == $first_connection_date) {

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

$use_users_timezone = api_get_setting('use_users_timezone', 'timezones');

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

    $score = $avg_student_score;

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

        'chat_connection' => $chat_last_connection,

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

                            $attendances_faults_avg = Display::url(

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

                                .' ('.$results_faults_avg['percent'].'%)',

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

                        $totalAttendance[1] += $results_faults_avg['total'];

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

                    <td >'.$attendances_faults_avg.'</td>

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

        $csv_content[] = [];

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

                    $css_class = 'row_even';

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

        $sid = (int) $session_coached_by_user['id'];

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

    $last_connection_date = get_lang('No connection');

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

$csv_content[] = [

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

    $avg_student_score,

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

    $timezone = $timezone_user;

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

    strip_tags($last_connection_date),

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

$userInfoExtra['first_connection'] = $first_connection_date;

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

    $time_spent_on_the_course,

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

                    $time_spent_on_course = api_time_to_hms($timeInSeconds);

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

        'upload_documents' => $uploaded_documents,

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

                                $results_faults_avg['faults'].'/'.$results_faults_avg['total']

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

                        $totalAttendance[0] += $results_faults_avg['faults'];

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

                $access_end_date = api_format_date($session_info['access_end_date'], DATE_FORMAT_SHORT);

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

        $csv_content[] = $columnHeadersToExport;

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

                    $any_result = true;

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

                if (!empty($start_time)) {

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

                        $attendances_faults_avg,

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

                    $any_result = true;

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

                        $scoretotal_display,

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

                    $start_time = api_convert_and_format_date($start_time, DATE_TIME_FORMAT_LONG);

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

    $tmp_sessions[] = $row['session_id'];

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

$last_connection_date = Tracking::get_last_connection_date(

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

$csv_content[] = [

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

    $avg_student_progress.'%',

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

    $score = $avg_student_score.'%';

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

$userInfoExtra['student_progress'] = $avg_student_progress;

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

                $access_start_date = api_format_date($session_info['access_start_date'], DATE_FORMAT_SHORT);

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

                .' '.$session_name.($date_session ? ' ('.$date_session.')' : '');

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

                    [$lp_id],

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

        if (in_array($row['session_id'], $tmp_sessions)) {

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

                $courses_in_session[$row['session_id']][] = $row['c_id'];

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

$avg_student_progress = round($avg_student_progress, 2);

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

$first_connection_date = Tracking::get_first_connection_date($studentId);

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

if (null != $timezone_user && 'true' === $use_users_timezone) {

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

        $access_end_date = '';

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

                            $attendances_faults_avg = $results_faults_avg['faults'].'/'

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

                        $scoretotal_display =

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

        $csv_content[] = [str_replace('&nbsp;', '', strip_tags($completeName))];

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

                if (!empty($total_time)) {

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

    $send_mail = '<a href="mailto:'.$email.'">'.

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

$avg_student_progress = $avg_student_score = 0;

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

        $date_session = '';

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

            $session_name = $session_info['name'];

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

                $date_session = get_lang('From').' '.$access_start_date.' '.get_lang('Until').' '.$access_end_date;

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

                .' '.$session_name.($date_session ? ' ('.$date_session.')' : '');

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

                $lp_name = $learnpath['lp_name'];

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

                    $css_class = 'row_odd';

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

    $send_mail = Display::getMdiIcon(ActionIcon::SEND_MESSAGE, 'ch-tool-icon-disabled', null, ICON_SIZE_MEDIUM, get_lang('Send message mail'));

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

$timezone_user = $user->getTimezone();

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

                                $results_faults_avg['faults'].'/'.$results_faults_avg['total']

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

                            $attendances_faults_avg = $results_faults_avg['faults'].'/'

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

                    $csv_content[] = $csvRow;

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

            foreach ($flat_list as $learnpath) {

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

                    [$lp_id],

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

        $courses_in_session_by_coach[$sid] = $courses_followed_by_coach;

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

                    $start_time = '-';

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

        if (isset($courses_in_session_by_coach[$row['session_id']])) {

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

    $uploaded_documents = Tracking::count_student_uploaded_documents($studentId, $course->getCode(), $sessionId);

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

            $session_name = $session_info['name'];

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

            if (!empty($access_start_date) && !empty($access_end_date)) {

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

                if (empty($session_info)) {

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

                    <td >'.$scoretotal_display.'</td>';

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

                $any_result = false;

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

                    $any_result = true;

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

                    $lp_id,

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

                    [$lp_id],

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

        $courses_in_session_by_coach[$sid] = $courses_followed_by_coach;

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

    if ($drh_can_access_all_courses) {

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

$tmp_sessions = [];

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

    $avg_student_progress = Tracking::get_avg_student_progress(

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

$session_name = '';

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

if (null != $timezone_user && 'true' === $use_users_timezone) {

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

    $csv_content[] = [

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

        $session_info = api_get_session_info($sId);

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

                $date_session = get_lang('From').' '.$access_start_date.' '.get_lang('Until').' '.$access_end_date;

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

                    $total_time = isset($lpTime[$lp_id]) ? (int) $lpTime[$lp_id] : 0;

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

                    $total_time = isset($lpTime[$lp_id]) ? (int) $lpTime[$lp_id] : 0;

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

    foreach ($sessions_coached_by_user as $session_coached_by_user) {

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

$actions .= $send_mail;

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

$csv_content[] = [

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

                                .$results_faults_avg['total']

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

                $lp_id = $learnpath['lp_old_id'];

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

                echo '<tr class="'.$css_class.'">';

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

                    $contentToExport[] = $start_time;

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

                            exe_exo_id = "'.$exercise_id.'" AND

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

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

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

                            '../exercise/exercise_show.php?id='.$id_last_attempt.'&cid='.$courseId

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

                    $all_attempt_url = "../exercise/exercise_report.php?id=$exercise_id&"

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

        if (!empty($survey_list)) {

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

                $header_names = [get_lang('Survey'), get_lang('Answered')];

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                $currentUrl.'&action=add_work_time&time='.$time.'&work_id='.$work->getIid()

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            );

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

                        $score_latest = $score_latest.'%';

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

                    echo Display::tag('td', stripslashes($lp_name));

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

                        .'&lp_id='.$lp_id.'&student_id='.$studentId.'&sid='.$sessionId

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

                    if (true === $any_result) {

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

                if (!isset($score_percentage) && $count_attempts > 0) {

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

                $sql = 'SELECT exe_id FROM '.$tbl_stats_exercices.'

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

                $survey_data[] = $data;

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

                $csv_content[] = $contentToExport;

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

                    $exercise_id,

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

                    $score_percentage = 0;

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

                if (Database::num_rows($result_last_attempt) > 0) {

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

                $data_exercices[$i][] = $exercise->getTitle();

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                get_lang('AddTime'),

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

    $csv_content[] = [

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

    $csv_content[] = [

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

            Export::arrayToCsv($csv_content, 'reporting_student');

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

                if (isset($score_latest) && !is_null($score_latest)) {

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

                    $contentToExport[] = $score_latest;

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

                    echo Display::tag('td', $score_latest);

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

                    if ($count_attempts > 0) {

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

                $data_exercices[$i][] = $count_attempts;

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

                    $lp_name,

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

                $user_list = SurveyManager::get_people_who_filled_survey(

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

    $csv_content[] = [];

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

    $csv_content[] = [

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

    $csv_content[] = [

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

                $css_class = 'row_even';

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

                if ($count_attempts > 0) {

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

                    $count_attempts,

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

                if (in_array($studentId, $user_list)) {

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                $currentUrl.'&action=remove_work_time&time='.$time.'&work_id='.$work->getIid()

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

                    $exercise_id,

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

                $lp_name = '-';

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

                    $score_percentage = $scores_lp[0];

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

                    $css_class = 'row_odd';

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

                foreach ($header_names as $item) {

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            );

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

                    echo Display::tag('td', $start_time);

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

                        $exercise_id,

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

            if (!empty($survey_data)) {

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

                        $score_latest = $score_latest.'%';

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

                    $contentToExport[] = api_time_to_hms($total_time);

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

                if (!isset($score_percentage) && $count_attempts > 0) {

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

                    echo $lp_name;

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

                $csv_content[] = [

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

                    $contentToExport[] = api_html_entity_decode(stripslashes($lp_name));

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

                $lp_name = !empty($lp_name) ? $lp_name : get_lang('No learning path');

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

                $lp_name = !empty($lp_name) ? $lp_name : get_lang('No learning path');

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

                $survey_done = Display::getMdiIcon(StateIcon::COMPLETE, 'ch-tool-icon-disabled', null, ICON_SIZE_SMALL, get_lang('There is no answer for the moment'));

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

                    $survey_done = Display::getMdiIcon(StateIcon::COMPLETE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Answered'));

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

                if (true === $any_result) {

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

                if ($count_attempts > 0) {

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

                $data_exercices[$i][] = $score_percentage.'%';

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

        $uploaded_documents,

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

                    if (is_numeric($score_latest)) {

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

                    if ($from_myspace) {

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

        $csv_content[] = [];

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

                $score_percentage = Tracking::get_avg_student_exercise_score(

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

                    $id_last_attempt = Database::result($result_last_attempt, 0, 0);

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

                    $scores_lp = Tracking::get_avg_student_exercise_score(

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

                    $score_percentage,

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

                    $lp_name = $scores_lp[1];

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

                $lp_name = !empty($lp_name) ? $lp_name : get_lang('No learning path');

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

                foreach ($survey_data as $data) {

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

                $data = ['title' => $survey['title'], 'done' => $survey_done];

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

        $nb_assignments,

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

            Export::arrayToXls($csv_content, 'reporting_student');

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

    $csv_content[] = [

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

        $csv_content[] = [

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

                        $all_attempt_url

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

    $csv_content[] = [

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

        $chat_last_connection,

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

                if (isset($score_latest) && !is_null($score_latest)) {

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

                    echo Display::tag('td', api_time_to_hms($total_time));

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

                $exercise_id = (int) $exercise->getIid();

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

                $count_attempts = Tracking::count_student_exercise_attempts(

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

                    $score_percentage = $scores_lp[0];

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

                    $all_attempt_url = "../exercise/exercise_report.php?id=$exercise_id&"

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

                $data_exercices[$i][] = $score_percentage.'%';

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

            $survey_data = [];

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                get_lang('RemoveTime'),

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

                    $lp_name = $scores_lp[1];

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

                    echo $score_percentage.'%';

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

                echo '<td>'.$count_attempts.'</td>';

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

                $data_exercices[$i][] = $count_attempts;

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

                            .$courseCode.'&details='.$details.'&origin='.$origin.'&lp_id='.$lp_id.'&student='

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

                echo '<tr class="'.$css_class.'"><td>'.$exerciseTitle.'</td>';

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

                if (!empty($lp_name)) {

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

                    $id_last_attempt = Database::result($result_last_attempt, 0, 0);

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

                    $csvContentIndex = count($csv_content) - 1;

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

            foreach ($survey_list as $survey) {

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

    $csv_content[] = [

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

    echo $plugin->getUserStatsPanel($studentId, $courses_in_session);

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                $currentUrl.'&action=remove_work_time&time='.$time.'&work_id='.$work->getIid()

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                get_lang('RemoveTime'),

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            );

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                get_lang('AddTime'),

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            );

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                $currentUrl.'&action=add_work_time&time='.$time.'&work_id='.$work->getIid()

There are no issues that match your filters.

Category
Status