Minor - format code

pull/2901/head
Julio Montoya 7 years ago
parent 254fb73c1a
commit 8de618d77a
  1. 9
      main/exercise/exercise.class.php
  2. 12
      main/mySpace/myStudents.php

@ -5977,11 +5977,11 @@ class Exercise
$duration = isset($trackExerciseInfo['duration_formatted']) ? $trackExerciseInfo['duration_formatted'] : null;
$ip = isset($trackExerciseInfo['user_ip']) ? $trackExerciseInfo['user_ip'] : null;
$array = [];
if (!empty($user_data)) {
$userFullName = $user_data['complete_name'];
if (api_is_teacher() || api_is_platform_admin(true, true)) {
$userFullName = '<a href="'.$user_data['profile_url'].'" title="'.get_lang('GoToStudentDetails').'">'.$user_data['complete_name'].'</a>';
$userFullName = '<a href="'.$user_data['profile_url'].'" title="'.get_lang('GoToStudentDetails').'">'.
$user_data['complete_name'].'</a>';
}
$data = [
@ -6035,7 +6035,7 @@ class Exercise
*
* @param int attempt id
*
* @return float exercise result
* @return array
*/
public function get_exercise_result($exe_id)
{
@ -6305,6 +6305,9 @@ class Exercise
];
}
/**
* @return bool
*/
public function added_in_lp()
{
$TBL_LP_ITEM = Database::get_course_table(TABLE_LP_ITEM);

@ -1,7 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Entity\Message;
use Chamilo\CourseBundle\Entity\CLpCategory;
use ChamiloSession as Session;
@ -963,13 +962,15 @@ if (api_get_setting('allow_terms_conditions') === 'true') {
}
$details = true;
$tpl = new Template('',
$tpl = new Template(
'',
false,
false,
false,
false,
false,
false);
false
);
if (!empty($courseInfo)) {
$nb_assignments = Tracking::count_student_assignments($student_id, $course_code, $sessionId);
@ -1018,14 +1019,9 @@ if ($allowAll) {
);
}
echo '<br><br>';
?>
<div class="row">
<div class="col-sm-5">
<?php if (!empty($userGroups)) {
?>
<table class="table table-striped table-hover">

Loading…
Cancel
Save