@@ -478,19 +478,19 @@ discard block |
||
| 478 | 478 | <?php |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | - /** |
|
| 482 | - * Display the answers to a multiple choice question |
|
| 483 | - * |
|
| 484 | - * @param integer Answer type |
|
| 485 | - * @param integer Student choice |
|
| 486 | - * @param string Textual answer |
|
| 487 | - * @param string Comment on answer |
|
| 488 | - * @param string Correct answer comment |
|
| 489 | - * @param integer Exercise ID |
|
| 490 | - * @param integer Question ID |
|
| 491 | - * @param boolean Whether to show the answer comment or not |
|
| 492 | - * @return void |
|
| 493 | - */ |
|
| 481 | + /** |
|
| 482 | + * Display the answers to a multiple choice question |
|
| 483 | + * |
|
| 484 | + * @param integer Answer type |
|
| 485 | + * @param integer Student choice |
|
| 486 | + * @param string Textual answer |
|
| 487 | + * @param string Comment on answer |
|
| 488 | + * @param string Correct answer comment |
|
| 489 | + * @param integer Exercise ID |
|
| 490 | + * @param integer Question ID |
|
| 491 | + * @param boolean Whether to show the answer comment or not |
|
| 492 | + * @return void |
|
| 493 | + */ |
|
| 494 | 494 | public static function display_multiple_answer_combination_true_false( |
| 495 | 495 | $feedback_type, |
| 496 | 496 | $answerType, |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | <?php |
| 557 | 557 | //@todo replace this harcoded value |
| 558 | 558 | if ($studentChoice) { |
| 559 | - $color = "black"; |
|
| 559 | + $color = "black"; |
|
| 560 | 560 | if ($studentChoice == $answerCorrect) { |
| 561 | 561 | $color = "green"; |
| 562 | 562 | } |
@@ -578,12 +578,12 @@ discard block |
||
| 578 | 578 | } |
| 579 | 579 | |
| 580 | 580 | /** |
| 581 | - * @param $feedback_type |
|
| 582 | - * @param $exe_id |
|
| 583 | - * @param $questionId |
|
| 584 | - * @param null $questionScore |
|
| 585 | - * @param int $results_disabled |
|
| 586 | - */ |
|
| 581 | + * @param $feedback_type |
|
| 582 | + * @param $exe_id |
|
| 583 | + * @param $questionId |
|
| 584 | + * @param null $questionScore |
|
| 585 | + * @param int $results_disabled |
|
| 586 | + */ |
|
| 587 | 587 | public static function displayAnnotationAnswer( |
| 588 | 588 | $feedback_type, |
| 589 | 589 | $exe_id, |
@@ -550,7 +550,7 @@ |
||
| 550 | 550 | } |
| 551 | 551 | } |
| 552 | 552 | <?php |
| 553 | - //Displays js code to use a jqgrid |
|
| 553 | + //Displays js code to use a jqgrid |
|
| 554 | 554 | echo Display::grid_js( |
| 555 | 555 | 'courses', |
| 556 | 556 | '', |
@@ -226,8 +226,8 @@ |
||
| 226 | 226 | { |
| 227 | 227 | if (!empty($aboutUserInfo)) { |
| 228 | 228 | $criteria = [ |
| 229 | - 'userReceiverId' => $aboutUserInfo['id'], |
|
| 230 | - 'msgStatus' => MESSAGE_STATUS_CONVERSATION |
|
| 229 | + 'userReceiverId' => $aboutUserInfo['id'], |
|
| 230 | + 'msgStatus' => MESSAGE_STATUS_CONVERSATION |
|
| 231 | 231 | ]; |
| 232 | 232 | $repo = Database::getManager()->getRepository('ChamiloCoreBundle:Message'); |
| 233 | 233 | $messages = $repo->findBy($criteria, ['sendDate' => 'DESC']); |
@@ -3927,8 +3927,8 @@ discard block |
||
| 3927 | 3927 | |
| 3928 | 3928 | $condition_session = ''; |
| 3929 | 3929 | if (isset($session_id)) { |
| 3930 | - $session_id = intval($session_id); |
|
| 3931 | - $condition_session = ' AND f.session_id = '.$session_id; |
|
| 3930 | + $session_id = intval($session_id); |
|
| 3931 | + $condition_session = ' AND f.session_id = '.$session_id; |
|
| 3932 | 3932 | } |
| 3933 | 3933 | |
| 3934 | 3934 | $groupId = intval($groupId); |
@@ -5032,10 +5032,10 @@ discard block |
||
| 5032 | 5032 | ) { |
| 5033 | 5033 | $settings = isset($columnSetting[1]) ? $columnSetting[1] : []; |
| 5034 | 5034 | $html .= Display::tag( |
| 5035 | - 'th', |
|
| 5036 | - $columnSetting[0], |
|
| 5037 | - $settings |
|
| 5038 | - ); |
|
| 5035 | + 'th', |
|
| 5036 | + $columnSetting[0], |
|
| 5037 | + $settings |
|
| 5038 | + ); |
|
| 5039 | 5039 | } |
| 5040 | 5040 | } |
| 5041 | 5041 | |
@@ -6137,9 +6137,9 @@ discard block |
||
| 6137 | 6137 | } |
| 6138 | 6138 | |
| 6139 | 6139 | /** |
| 6140 | - * @param FormValidator $form |
|
| 6141 | - * @return mixed |
|
| 6142 | - */ |
|
| 6140 | + * @param FormValidator $form |
|
| 6141 | + * @return mixed |
|
| 6142 | + */ |
|
| 6143 | 6143 | public static function setUserSearchForm($form) |
| 6144 | 6144 | { |
| 6145 | 6145 | global $_configuration; |
@@ -346,7 +346,7 @@ |
||
| 346 | 346 | // new document created |
| 347 | 347 | |
| 348 | 348 | if (!$is_certificate_mode && |
| 349 | - !DocumentManager::is_my_shared_folder($userId, $dir, $current_session_id) |
|
| 349 | + !DocumentManager::is_my_shared_folder($userId, $dir, $current_session_id) |
|
| 350 | 350 | ) { |
| 351 | 351 | $folders = DocumentManager::get_all_document_folders( |
| 352 | 352 | $_course, |
@@ -216,7 +216,7 @@ |
||
| 216 | 216 | $javascript .= "'".$dropbox_person->sentWork[$i]->title."'"; |
| 217 | 217 | } |
| 218 | 218 | } |
| 219 | - $javascript .= "); |
|
| 219 | + $javascript .= "); |
|
| 220 | 220 | |
| 221 | 221 | function checkfile(str) |
| 222 | 222 | { |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | $is_allowedToEdit = api_is_allowed_to_edit(null, true) || $groupRights || |
| 120 | - DocumentManager::is_my_shared_folder(api_get_user_id(), $dir, $current_session_id); |
|
| 120 | + DocumentManager::is_my_shared_folder(api_get_user_id(), $dir, $current_session_id); |
|
| 121 | 121 | |
| 122 | 122 | if (!$is_allowedToEdit) { |
| 123 | 123 | api_not_allowed(true); |
@@ -356,7 +356,7 @@ |
||
| 356 | 356 | foreach ($teachers as $value) { |
| 357 | 357 | $name = $value['firstname'].' '.$value['lastname']; |
| 358 | 358 | if ($length > 2) { |
| 359 | - $html .= '<a href="'.$value['url'].'" class="ajax" data-title="'.$name.'" title="'.$name.'"> |
|
| 359 | + $html .= '<a href="'.$value['url'].'" class="ajax" data-title="'.$name.'" title="'.$name.'"> |
|
| 360 | 360 | <img src="'.$value['avatar'].'" alt="'.get_lang('UserPicture').'"/></a>'; |
| 361 | 361 | } else { |
| 362 | 362 | $html .= '<a href="'.$value['url'].'" class="ajax" data-title="'.$name.'" title="'.$name.'"> |
@@ -458,8 +458,8 @@ |
||
| 458 | 458 | } else if(param == 'cmi.core.student_name'){ |
| 459 | 459 | // ---- cmi.core.student_name |
| 460 | 460 | <?php |
| 461 | - $who = addslashes($user['lastname']).', '.addslashes($user['firstname']); |
|
| 462 | - echo "result='$who';"; |
|
| 461 | + $who = addslashes($user['lastname']).', '.addslashes($user['firstname']); |
|
| 462 | + echo "result='$who';"; |
|
| 463 | 463 | ?> |
| 464 | 464 | } else if(param == 'cmi.core.lesson_location'){ |
| 465 | 465 | // ---- cmi.core.lesson_location |