Completed
Push — 1.11.x ( 7ffd51...902ebd )
by José
50:21 queued 21:28
created
main/inc/lib/api.lib.php 1 patch
Indentation   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -655,7 +655,6 @@  discard block
 block discarded – undo
655 655
  * Also, this function provides conversion between path types, in this case the input path points inside the Chamilo area too.
656 656
  *
657 657
  * See $_configuration['course_folder'] in the configuration.php to alter the WEB_COURSE_PATH and SYS_COURSE_PATH parameters.
658
-
659 658
  * @param string $path (optional)   A path which type is to be converted. Also, it may be a defined constant for a path.
660 659
  * This parameter has meaning when $type parameter has one of the following values: TO_WEB, TO_SYS, TO_REL. Otherwise it is ignored.
661 660
  * @return string                   The requested path or the converted path.
@@ -1838,7 +1837,6 @@  discard block
 block discarded – undo
1838 1837
 
1839 1838
 /**
1840 1839
  * Returns the current course info array.
1841
-
1842 1840
  * Now if the course_code is given, the returned array gives info about that
1843 1841
  * particular course, not specially the current one.
1844 1842
  * @param int $id Numeric ID of the course
@@ -4223,7 +4221,7 @@  discard block
 block discarded – undo
4223 4221
     $countryCode = languageToCountryIsoCode($currentLanguageInfo['isocode']);
4224 4222
     $url = api_get_self();
4225 4223
     if ($showAsButton) {
4226
-         $html = '<div class="btn-group">
4224
+            $html = '<div class="btn-group">
4227 4225
               <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
4228 4226
                 <span class="flag-icon flag-icon-'.$countryCode.'"></span>
4229 4227
                 '.$currentLanguageInfo['original_name'].'
@@ -6498,7 +6496,7 @@  discard block
 block discarded – undo
6498 6496
 function api_get_jquery_ui_js($include_jqgrid = false) {
6499 6497
     $libraries = array();
6500 6498
     if ($include_jqgrid) {
6501
-       $libraries[] = 'jqgrid';
6499
+        $libraries[] = 'jqgrid';
6502 6500
     }
6503 6501
     return api_get_jquery_libraries_js($libraries);
6504 6502
 }
Please login to merge, or discard this patch.
main/course_description/add.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 $i = 1;
21 21
 echo '<div class="actions" style="margin-bottom:30px">';
22 22
 echo '<a href="index.php?'.api_get_cidreq().'">'.
23
-	Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('ToolCourseDescription'), '', ICON_SIZE_MEDIUM).
24
-	'</a>';
23
+    Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('ToolCourseDescription'), '', ICON_SIZE_MEDIUM).
24
+    '</a>';
25 25
 ksort($categories);
26 26
 foreach ($categories as $id => $title) {
27 27
     if ($i == ADD_BLOCK) {
Please login to merge, or discard this patch.
main/inc/ajax/model.ajax.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1635,7 +1635,7 @@
 block discarded – undo
1635 1635
                     array(),
1636 1636
                     ICON_SIZE_SMALL
1637 1637
                 );
1638
-                 $item['has_certificates'] = '1';
1638
+                    $item['has_certificates'] = '1';
1639 1639
             } else {
1640 1640
                 $item['certificates'] = Display::return_icon(
1641 1641
                     'warning.png',
Please login to merge, or discard this patch.
main/admin/settings.lib.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -426,8 +426,8 @@
 block discarded – undo
426 426
                 if ($status) {
427 427
                     echo Display::return_message(get_lang('NewLogoUpdated'));
428 428
                     echo '<script>'
429
-                         . '$("#header-logo").attr("src","'.$url.$newLogoFileName.'");'
430
-                         . '</script>';
429
+                            . '$("#header-logo").attr("src","'.$url.$newLogoFileName.'");'
430
+                            . '</script>';
431 431
                 } else {
432 432
                     echo Display::return_message('Error - '.get_lang('UplNoFileUploaded'), 'error');
433 433
                 }
Please login to merge, or discard this patch.
main/admin/gradebook_dependency.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
                 } else {
136 136
                     if ($userResult[$userId]['result_not_mandatory_80'] < 80 && $result) {
137 137
                         $userResult[$userId]['result_not_mandatory_80'] += 10;
138
-                      //  var_dump($userResult[$userId]['result_80'] );
138
+                        //  var_dump($userResult[$userId]['result_80'] );
139 139
                     }
140 140
                 }
141 141
             }
Please login to merge, or discard this patch.
user_portal.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -302,7 +302,7 @@
 block discarded – undo
302 302
         }
303 303
     }
304 304
 
305
-     // @todo improve calls of course info
305
+        // @todo improve calls of course info
306 306
     $subscribedCourses = !empty($courseAndSessions['courses']) ? $courseAndSessions['courses'] : [];
307 307
     $mainCategoryList = [];
308 308
     foreach ($subscribedCourses as $courseInfo) {
Please login to merge, or discard this patch.
main/lp/lp_controller.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1201,7 +1201,7 @@  discard block
 block discarded – undo
1201 1201
         } elseif ($mode == 'embedded') {
1202 1202
             $_SESSION['oLP']->mode = 'embedded';
1203 1203
         } elseif ($mode == 'embedframe') {
1204
-        	$_SESSION['oLP']->mode = 'embedframe';
1204
+            $_SESSION['oLP']->mode = 'embedframe';
1205 1205
         } elseif ($mode == 'impress') {
1206 1206
             $_SESSION['oLP']->mode = 'impress';
1207 1207
         }
@@ -1241,10 +1241,10 @@  discard block
 block discarded – undo
1241 1241
 		require 'lp_list.php';
1242 1242
 		break;
1243 1243
      */
1244
-	case 'switch_attempt_mode':
1245
-		if (!$lp_found) { error_log('New LP - No learnpath given for switch', 0); require 'lp_list.php'; }
1244
+    case 'switch_attempt_mode':
1245
+        if (!$lp_found) { error_log('New LP - No learnpath given for switch', 0); require 'lp_list.php'; }
1246 1246
         Session::write('refresh', 1);
1247
-		$_SESSION['oLP']->switch_attempt_mode();
1247
+        $_SESSION['oLP']->switch_attempt_mode();
1248 1248
         require 'lp_list.php';
1249 1249
         break;
1250 1250
     case 'switch_scorm_debug':
Please login to merge, or discard this patch.
main/inc/lib/AnnouncementManager.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -569,8 +569,8 @@  discard block
 block discarded – undo
569 569
                         );
570 570
 
571 571
                         if (($counter % $batchSize) === 0) {
572
-                             $em->flush();
573
-                             $em->clear();
572
+                                $em->flush();
573
+                                $em->clear();
574 574
                         }
575 575
                         $counter++;
576 576
                     }
@@ -591,8 +591,8 @@  discard block
 block discarded – undo
591 591
                         );
592 592
 
593 593
                         if (($counter % $batchSize) === 0) {
594
-                             $em->flush();
595
-                             $em->clear();
594
+                                $em->flush();
595
+                                $em->clear();
596 596
                         }
597 597
                         $counter++;
598 598
                     }
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/Resources/Thematic.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
     public $thematic_plan_list = array();
16 16
 
17 17
     /**
18
-    * Create a new Thematic
19
-    *
20
-    * @param array $params
21
-    */
18
+     * Create a new Thematic
19
+     *
20
+     * @param array $params
21
+     */
22 22
     public function __construct($params)
23 23
     {
24 24
         parent::__construct($params['id'], RESOURCE_THEMATIC);
Please login to merge, or discard this patch.