@@ -57,7 +57,7 @@ |
||
57 | 57 | if ($form->validate()) { |
58 | 58 | $values = $form->exportValues(); |
59 | 59 | //Avoid self-subscribe as request |
60 | - $usersId = array_filter($values['users'], function ($userId) use ($hrm) { |
|
60 | + $usersId = array_filter($values['users'], function($userId) use ($hrm) { |
|
61 | 61 | return (int) $userId != $hrm->getId(); |
62 | 62 | }); |
63 | 63 |
@@ -3308,7 +3308,7 @@ |
||
3308 | 3308 | $label = 'warning'; |
3309 | 3309 | } |
3310 | 3310 | |
3311 | - $scoreBasedInModel = ExerciseLib::convertScoreToModel($relativeScore*100); |
|
3311 | + $scoreBasedInModel = ExerciseLib::convertScoreToModel($relativeScore * 100); |
|
3312 | 3312 | if (empty($scoreBasedInModel)) { |
3313 | 3313 | $finalScore = api_number_format($score, 1).' / '.$weight; |
3314 | 3314 |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | /** @var \Chamilo\CoreBundle\Entity\SystemTemplate $template */ |
110 | 110 | $templateList = array(); |
111 | 111 | $cssTheme = api_get_path(WEB_CSS_PATH).'themes/'.api_get_visual_theme().'/'; |
112 | - $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}','{CSS}'); |
|
112 | + $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}', '{CSS}'); |
|
113 | 113 | $replace = array( |
114 | 114 | $cssTheme, |
115 | 115 | api_get_path(REL_CODE_PATH).'img/', |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $entityManager = \Database::getManager(); |
178 | 178 | $systemTemplates = $entityManager->getRepository('ChamiloCoreBundle:SystemTemplate')->findAll(); |
179 | 179 | $cssTheme = api_get_path(WEB_CSS_PATH).'themes/'.api_get_visual_theme().'/'; |
180 | - $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}','{CSS}'); |
|
180 | + $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}', '{CSS}'); |
|
181 | 181 | $replace = array( |
182 | 182 | $cssTheme, |
183 | 183 | api_get_path(REL_CODE_PATH).'img/', |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $csvData = TrackingCourseLog::get_item_resources_data(0, 0, '', ''); |
38 | 38 | array_walk( |
39 | 39 | $csvData, |
40 | - function (&$item) { |
|
40 | + function(&$item) { |
|
41 | 41 | $item[0] = strip_tags($item[0]); |
42 | 42 | $item[2] = strip_tags(preg_replace('/\<br(\s*)?\/?\>/i', PHP_EOL, $item[2])); |
43 | 43 | $item[3] = strip_tags($item[3]); |
@@ -483,7 +483,7 @@ |
||
483 | 483 | $notebooks = $notebooksRepo->findByUser($this->user, $this->course, $this->session); |
484 | 484 | |
485 | 485 | return array_map( |
486 | - function (CNotebook $notebook) { |
|
486 | + function(CNotebook $notebook) { |
|
487 | 487 | return [ |
488 | 488 | 'id' => $notebook->getIid(), |
489 | 489 | 'title' => $notebook->getTitle(), |
@@ -173,13 +173,13 @@ |
||
173 | 173 | Display::url( |
174 | 174 | Display::returnFontAwesomeIcon('reply', 2), |
175 | 175 | $newMessageLink.'?re_id='.$result[0].$link, |
176 | - ['title' => get_lang('ReplyToMessage') ] |
|
176 | + ['title' => get_lang('ReplyToMessage')] |
|
177 | 177 | ). |
178 | 178 | ' '. |
179 | 179 | Display::url( |
180 | 180 | Display::returnFontAwesomeIcon('share', 2), |
181 | 181 | $newMessageLink.'?forward_id='.$result[0].$link, |
182 | - ['title' => get_lang('ForwardMessage') ] |
|
182 | + ['title' => get_lang('ForwardMessage')] |
|
183 | 183 | ). |
184 | 184 | ' <a title="'.addslashes(get_lang('DeleteMessage')).'" onclick="javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('ConfirmDeleteMessage')))."'".')) return false;" href="inbox.php?action=deleteone&id='.$result[0].$link.'">'. |
185 | 185 | Display::returnFontAwesomeIcon('trash', 2).'</a>'; |
@@ -2282,7 +2282,7 @@ |
||
2282 | 2282 | */ |
2283 | 2283 | private static function filterByCategory($courseList, $categoryCode) |
2284 | 2284 | { |
2285 | - return array_filter($courseList, function ($courseInfo) use ($categoryCode) { |
|
2285 | + return array_filter($courseList, function($courseInfo) use ($categoryCode) { |
|
2286 | 2286 | if (isset($courseInfo['category_code']) && |
2287 | 2287 | $courseInfo['category_code'] === $categoryCode |
2288 | 2288 | ) { |
@@ -358,7 +358,7 @@ |
||
358 | 358 | echo '<input type="checkbox" name="check_presence['.$calendar['id'].'][]" value="'.$user['user_id'].'" '.$disabled.' '.$checked.' />'; |
359 | 359 | echo '<span class="anchor_'.$calendar['id'].'"></span>'; |
360 | 360 | } else { |
361 | - echo $presence ? Display::return_icon('checkbox_on.png', get_lang('Presence'), null , ICON_SIZE_TINY) : Display::return_icon('checkbox_off.png', get_lang('Presence'), null, ICON_SIZE_TINY); |
|
361 | + echo $presence ? Display::return_icon('checkbox_on.png', get_lang('Presence'), null, ICON_SIZE_TINY) : Display::return_icon('checkbox_off.png', get_lang('Presence'), null, ICON_SIZE_TINY); |
|
362 | 362 | } |
363 | 363 | } else { |
364 | 364 | switch ($presence) { |
@@ -171,7 +171,7 @@ |
||
171 | 171 | $namesOfCoaches = []; |
172 | 172 | $coachSubscriptions = $session |
173 | 173 | ->getUserCourseSubscriptionsByStatus($course, Session::COACH) |
174 | - ->forAll(function ($index, SessionRelCourseRelUser $subscription) use (&$namesOfCoaches) { |
|
174 | + ->forAll(function($index, SessionRelCourseRelUser $subscription) use (&$namesOfCoaches) { |
|
175 | 175 | $namesOfCoaches[] = $subscription->getUser()->getCompleteNameWithUserName(); |
176 | 176 | |
177 | 177 | return true; |