@@ -38,8 +38,8 @@ |
||
38 | 38 | $courseSelect = Display::select('course_id', $arrCourseList, 0, array(), false); |
39 | 39 | $courseControl = Display::div($courseSelect, array('class' => 'controls')); |
40 | 40 | |
41 | -$userDiv = Display::div($userLabel . " " . $userControl, array('class' => 'control-group')); |
|
42 | -$courseDiv = Display::div($courseLabel . " " . $courseControl, array('class' => 'control-group')); |
|
41 | +$userDiv = Display::div($userLabel." ".$userControl, array('class' => 'control-group')); |
|
42 | +$courseDiv = Display::div($courseLabel." ".$courseControl, array('class' => 'control-group')); |
|
43 | 43 | echo $userDiv; |
44 | 44 | echo $courseDiv; |
45 | 45 |
@@ -163,7 +163,7 @@ |
||
163 | 163 | );*/ |
164 | 164 | |
165 | 165 | AnnotationRegistry::registerLoader( |
166 | - function ($class) use ($sysPath) { |
|
166 | + function($class) use ($sysPath) { |
|
167 | 167 | $file = str_replace("\\", DIRECTORY_SEPARATOR, $class).".php"; |
168 | 168 | $file = str_replace('Symfony/Component/Validator', '', $file); |
169 | 169 | $file = str_replace('Symfony\Component\Validator', '', $file); |
@@ -246,7 +246,7 @@ |
||
246 | 246 | $addional_param = ''; |
247 | 247 | if (isset($_GET['additional_profile_field'])) { |
248 | 248 | foreach ($_GET['additional_profile_field'] as $fieldId) { |
249 | - $addional_param .= '&additional_profile_field[]='. (int) $fieldId; |
|
249 | + $addional_param .= '&additional_profile_field[]='.(int) $fieldId; |
|
250 | 250 | } |
251 | 251 | } |
252 | 252 |
@@ -1944,7 +1944,7 @@ |
||
1944 | 1944 | foreach ($user_list as $enreg_user) { |
1945 | 1945 | $isUserSubscribed = self::isUserSubscribedAsStudent($id_session, $enreg_user); |
1946 | 1946 | if ($isUserSubscribed === false) { |
1947 | - $enreg_user = (int)$enreg_user; |
|
1947 | + $enreg_user = (int) $enreg_user; |
|
1948 | 1948 | $nbr_users++; |
1949 | 1949 | $sql = "INSERT IGNORE INTO $tbl_session_rel_user (relation_type, session_id, user_id, registered_at) |
1950 | 1950 | VALUES (0, $id_session, $enreg_user, '".api_get_utc_datetime()."')"; |
@@ -2267,7 +2267,7 @@ |
||
2267 | 2267 | |
2268 | 2268 | foreach ($data as $row) { |
2269 | 2269 | foreach ($row as $key => $value) { |
2270 | - $key = (string)trim($key); |
|
2270 | + $key = (string) trim($key); |
|
2271 | 2271 | // Remove utf8 bom |
2272 | 2272 | $key = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $key); |
2273 | 2273 | $row[$key] = $value; |
@@ -3114,7 +3114,7 @@ |
||
3114 | 3114 | */ |
3115 | 3115 | public function two_digits($number) |
3116 | 3116 | { |
3117 | - $number = (int)$number; |
|
3117 | + $number = (int) $number; |
|
3118 | 3118 | |
3119 | 3119 | return ($number < 10) ? '0'.$number : $number; |
3120 | 3120 | } |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $pos = strpos($explode[0], 'G'); |
348 | 348 | if (is_numeric($pos)) { |
349 | 349 | // group_123 id |
350 | - $groupValueId = (int)str_replace( |
|
350 | + $groupValueId = (int) str_replace( |
|
351 | 351 | 'G', |
352 | 352 | '', |
353 | 353 | $explode[0] |
@@ -362,14 +362,14 @@ discard block |
||
362 | 362 | } |
363 | 363 | } else { |
364 | 364 | // subgroup__123 id |
365 | - $firstConnection = 'subgroup_'.(int)str_replace('SG', '', $explode[0]); |
|
365 | + $firstConnection = 'subgroup_'.(int) str_replace('SG', '', $explode[0]); |
|
366 | 366 | } |
367 | 367 | |
368 | 368 | $pos = strpos($explode[1], 'SG'); |
369 | 369 | if ($pos === false) { |
370 | 370 | $pos = strpos($explode[1], 'G'); |
371 | 371 | if (is_numeric($pos)) { |
372 | - $groupValueId = (int)str_replace( |
|
372 | + $groupValueId = (int) str_replace( |
|
373 | 373 | 'G', |
374 | 374 | '', |
375 | 375 | $explode[1] |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | } |
384 | 384 | } |
385 | 385 | } else { |
386 | - $secondConnection = 'subgroup_'.(int)str_replace('SG', '', $explode[1]); |
|
386 | + $secondConnection = 'subgroup_'.(int) str_replace('SG', '', $explode[1]); |
|
387 | 387 | } |
388 | 388 | |
389 | 389 | if (!empty($firstConnection) && !empty($firstConnection)) { |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | if ($subGroup == '' || empty($subGroup)) { |
488 | 488 | $defaultSubGroup = 0; |
489 | 489 | } else { |
490 | - $defaultSubGroup = (int)$subGroup; |
|
490 | + $defaultSubGroup = (int) $subGroup; |
|
491 | 491 | } |
492 | 492 | } |
493 | 493 | $newRowList[$i + 1][$defaultSubGroup][] = $vertex; |
@@ -1085,7 +1085,7 @@ |
||
1085 | 1085 | $res = Database::query($sql); |
1086 | 1086 | $obj = Database::fetch_object($res); |
1087 | 1087 | |
1088 | - return (int)$obj->total; |
|
1088 | + return (int) $obj->total; |
|
1089 | 1089 | } |
1090 | 1090 | |
1091 | 1091 | /** |
@@ -2351,7 +2351,7 @@ discard block |
||
2351 | 2351 | if (!empty($model)) { |
2352 | 2352 | $scoreWithGrade = []; |
2353 | 2353 | foreach ($model['score_list'] as $item) { |
2354 | - if ($percentage >= $item['min'] && $percentage <= $item['max']) { |
|
2354 | + if ($percentage >= $item['min'] && $percentage <= $item['max']) { |
|
2355 | 2355 | $scoreWithGrade = $item; |
2356 | 2356 | break; |
2357 | 2357 | } |
@@ -3943,7 +3943,7 @@ discard block |
||
3943 | 3943 | $exe_id, |
3944 | 3944 | $questionId, |
3945 | 3945 | api_get_user_id() |
3946 | - );; |
|
3946 | + ); ; |
|
3947 | 3947 | |
3948 | 3948 | if (!empty($comnt) || $teacherAudio) { |
3949 | 3949 | echo '<b>'.get_lang('Feedback').'</b>'; |