Completed
Push — 1.11.x ( c5cfcc...1cf9be )
by José
46:45 queued 17:54
created
main/social/require_user_linking.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
main/work/work.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3308,7 +3308,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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/',
Please login to merge, or discard this patch.
main/tracking/course_log_resources.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
main/inc/lib/webservices/Rest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -483,7 +483,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
main/inc/lib/message.lib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,13 +173,13 @@
 block discarded – undo
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
                 '&nbsp;&nbsp;'.
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
                 '&nbsp;&nbsp;<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>';
Please login to merge, or discard this patch.
main/inc/lib/userportal.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2282,7 +2282,7 @@
 block discarded – undo
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
             ) {
Please login to merge, or discard this patch.
main/attendance/attendance_sheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
main/session/resume_session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.