chamilo/chamilo-lms

View on GitHub
public/main/exercise/stats.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$question_list = $objExercise->getQuestionForTeacher(0, $totalQuestions); // get questions from 0 to total

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

if (!empty($question_list)) {

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

                            $question_id,

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

    foreach ($question_list as $question_id) {

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

            $question_id,

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

        $data[$question_id]['highest_score'] = round($exercise_stats['max'], 2);

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

    foreach ($question_list as $question_id) {

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

                    foreach ($answers as $answer_item) {

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

        $data[$question_id]['highest_score'] = round($exercise_stats['max'], 2);

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

                        $data[$id]['answer'] = $answer_item;

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

                        $answer_item = api_substr($answer_item, 1);

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

                        $answer_item = api_substr($answer_item, 0, api_strlen($answer_item) - 1);

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

    foreach ($question_list as $question_id) {

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

foreach ($data as $row_table) {

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

        $data[$question_id]['name'] = cut($questionObj->question, 100);

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

                        $answer_item = api_substr($answer_item, 0, api_strlen($answer_item) - 1);

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

                        $data[$id]['answer'] = $answer_item;

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

    foreach ($question_list as $question_id) {

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

        $data[$question_id]['type'] = $questionObj->getExplanation();

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

$this_section = SECTION_COURSES;

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

        $data[$question_id]['average_score'] = round($exercise_stats['average'], 2);

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

        $answer = new Answer($question_id);

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

                        $answer_item = api_substr($answer_item, 0, api_strlen($answer_item) - 1);

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

$count_students = count($students);

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

            $question_id,

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

                        $question_id,

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

            $question_id,

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

                        $count = ExerciseLib::getNumberStudentsFillBlanksAnswerCount($question_id, $exerciseId);

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

    foreach ($row_table as $cell) {

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

if (!empty($question_list)) {

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

        $exercise_stats = ExerciseLib::getStudentStatsByQuestion(

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

                        $answer_item = api_substr($answer_item, 1);

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

        $data[$question_id]['average_score'] = round($exercise_stats['average'], 2);

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

        $data[$question_id]['max_score'] = round($questionObj->weighting, 2);

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

foreach ($data as $row_table) {

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

        $data[$question_id]['students_who_try_exercise'] = $totalTimesQuestionAnswered;

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

        $data[$question_id]['lowest_score'] = round($exercise_stats['min'], 2);

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

                        $question_id,

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

        $questionObj = Question::read($question_id);

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

        $data[$question_id]['lowest_score'] = round($exercise_stats['min'], 2);

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

    foreach ($row_table as $cell) {

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

        $questionObj = Question::read($question_id);

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

        $exercise_stats = ExerciseLib::getStudentStatsByQuestion(

There are no issues that match your filters.

Category
Status