Completed
Pull Request — 1.11.x (#1339)
by José
73:57 queued 34:43
created
main/inc/lib/TicketManager.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1480,7 +1480,7 @@  discard block
 block discarded – undo
1480 1480
         ];
1481 1481
         Database::update($table, $newParams, ['id = ? ' => $ticketId]);
1482 1482
 
1483
-         self::sendNotification(
1483
+            self::sendNotification(
1484 1484
             $ticketId,
1485 1485
             $userId,
1486 1486
             get_lang('TicketUpdated'),
@@ -1901,9 +1901,9 @@  discard block
 block discarded – undo
1901 1901
         return $list;
1902 1902
     }
1903 1903
 
1904
-     /**
1905
-     * @return array
1906
-     */
1904
+        /**
1905
+         * @return array
1906
+         */
1907 1907
     public static function getPriorityList()
1908 1908
     {
1909 1909
         $projects = Database::getManager()->getRepository('ChamiloTicketBundle:Priority')->findAll();
Please login to merge, or discard this patch.
main/inc/lib/display.lib.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
         );
50 50
     }
51 51
 
52
-     /**
53
-     * Displays the page header
54
-     * @param string The name of the page (will be showed in the page title)
55
-     * @param string Optional help file name
56
-     * @param string $page_header
57
-     */
52
+        /**
53
+         * Displays the page header
54
+         * @param string The name of the page (will be showed in the page title)
55
+         * @param string Optional help file name
56
+         * @param string $page_header
57
+         */
58 58
     public static function display_header($tool_name ='', $help = null, $page_header = null)
59 59
     {
60 60
         $origin = api_get_origin();
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
      */
449 449
     public static function display_normal_message($message, $filter = true, $returnValue = false)
450 450
     {
451
-    	$message = self::return_message($message, 'normal', $filter);
451
+        $message = self::return_message($message, 'normal', $filter);
452 452
         if ($returnValue) {
453 453
             return $message;
454 454
         } else {
@@ -528,22 +528,22 @@  discard block
 block discarded – undo
528 528
         }
529 529
 
530 530
         if ($filter) {
531
-        	$message = api_htmlentities($message, ENT_QUOTES, api_is_xml_http_request() ? 'UTF-8' : api_get_system_encoding());
531
+            $message = api_htmlentities($message, ENT_QUOTES, api_is_xml_http_request() ? 'UTF-8' : api_get_system_encoding());
532 532
         }
533 533
 
534 534
         $class = "";
535 535
         switch($type) {
536 536
             case 'warning':
537 537
                $class .= 'alert alert-warning';
538
-               break;
538
+                break;
539 539
             case 'error':
540 540
                $class .= 'alert alert-danger';
541
-               break;
541
+                break;
542 542
             case 'confirmation':
543 543
             case 'confirm':
544 544
             case 'success':
545 545
                 $class .= 'alert alert-success';
546
-               break;
546
+                break;
547 547
             case 'normal':
548 548
             default:
549 549
                 $class .= 'alert alert-info';
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
      * @param array    additional attributes (for instance height, width, onclick, ...)
687 687
      * @param integer  The wanted width of the icon (to be looked for in the corresponding img/icons/ folder)
688 688
      * @return void
689
-    */
689
+     */
690 690
     public static function display_icon(
691 691
         $image,
692 692
         $alt_text = '',
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
      * @author Julio Montoya 2010 Function improved, adding image constants
723 723
      * @author Yannick Warnier 2011 Added size handler
724 724
      * @version Feb 2011
725
-    */
725
+     */
726 726
     public static function return_icon(
727 727
         $image,
728 728
         $alt_text = '',
@@ -911,14 +911,14 @@  discard block
 block discarded – undo
911 911
      */
912 912
     public static function input($type, $name, $value, $attributes = array())
913 913
     {
914
-         if (isset($type)) {
915
-             $attributes['type']= $type;
916
-         }
917
-         if (isset($name)) {
918
-             $attributes['name']= $name;
919
-         }
920
-         if (isset($value)) {
921
-             $attributes['value']= $value;
914
+            if (isset($type)) {
915
+                $attributes['type']= $type;
916
+            }
917
+            if (isset($name)) {
918
+                $attributes['name']= $name;
919
+            }
920
+            if (isset($value)) {
921
+                $attributes['value']= $value;
922 922
         }
923 923
         return self::tag('input', '', $attributes);
924 924
     }
@@ -931,10 +931,10 @@  discard block
 block discarded – undo
931 931
      */
932 932
     public static function button($name, $value, $attributes = array())
933 933
     {
934
-    	if (!empty($name)) {
934
+        if (!empty($name)) {
935 935
             $attributes['name'] = $name;
936
-    	}
937
-    	return self::tag('button', $value, $attributes);
936
+        }
937
+        return self::tag('button', $value, $attributes);
938 938
     }
939 939
 
940 940
     /**
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
      * in the $htmlHeadXtra variable before the display_header
1002 1002
      * Add this script
1003 1003
      * @example
1004
-             * <script>
1004
+     * <script>
1005 1005
                     $(function() {
1006 1006
                         $( "#tabs" ).tabs();
1007 1007
                     });
@@ -1067,20 +1067,20 @@  discard block
 block discarded – undo
1067 1067
      */
1068 1068
     public static function tabsOnlyLink($headers, $selected = null)
1069 1069
     {
1070
-         $id = uniqid();
1071
-         $i = 1;
1072
-         $lis = null;
1073
-         foreach ($headers as $item) {
1070
+            $id = uniqid();
1071
+            $i = 1;
1072
+            $lis = null;
1073
+            foreach ($headers as $item) {
1074 1074
             $class = null;
1075 1075
             if ($i == $selected) {
1076 1076
                 $class = 'active';
1077 1077
             }
1078
-             $item = self::tag(
1079
-                 'a',
1080
-                 $item['content'],
1081
-                 array('id' => $id.'-'.$i, 'href' => $item['url'])
1082
-             );
1083
-             $lis .= self::tag('li', $item, array('class' => $class));
1078
+                $item = self::tag(
1079
+                    'a',
1080
+                    $item['content'],
1081
+                    array('id' => $id.'-'.$i, 'href' => $item['url'])
1082
+                );
1083
+                $lis .= self::tag('li', $item, array('class' => $class));
1084 1084
             $i++;
1085 1085
         }
1086 1086
         return self::tag('ul', $lis, array('class' => 'nav nav-tabs tabs-margin'));
@@ -1292,8 +1292,8 @@  discard block
 block discarded – undo
1292 1292
      */
1293 1293
     public static function table($headers, $rows, $attributes = array())
1294 1294
     {
1295
-    	if (empty($attributes)) {
1296
-    		$attributes['class'] = 'data_table';
1295
+        if (empty($attributes)) {
1296
+            $attributes['class'] = 'data_table';
1297 1297
         }
1298 1298
         $table = new HTML_Table($attributes);
1299 1299
         $row = 0;
@@ -1301,17 +1301,17 @@  discard block
 block discarded – undo
1301 1301
 
1302 1302
         // Course headers
1303 1303
         if (!empty($headers)) {
1304
-	        foreach ($headers as $item) {
1305
-	            $table->setHeaderContents($row, $column, $item);
1306
-	            $column++;
1307
-	        }
1308
-	        $row = 1;
1309
-	        $column = 0;
1304
+            foreach ($headers as $item) {
1305
+                $table->setHeaderContents($row, $column, $item);
1306
+                $column++;
1307
+            }
1308
+            $row = 1;
1309
+            $column = 0;
1310 1310
         }
1311 1311
 
1312 1312
         if (!empty($rows)) {
1313
-	        foreach($rows as $content) {
1314
-	            $table->setCellContents($row, $column, $content);
1313
+            foreach($rows as $content) {
1314
+                $table->setCellContents($row, $column, $content);
1315 1315
                 $row++;
1316 1316
             }
1317 1317
         }
@@ -1417,7 +1417,7 @@  discard block
 block discarded – undo
1417 1417
                         //$item_property['tool'] != TOOL_DROPBOX &&
1418 1418
                         $item_property['tool'] != TOOL_NOTEBOOK &&
1419 1419
                         $item_property['tool'] != TOOL_CHAT)
1420
-                   )
1420
+                    )
1421 1421
                 )
1422 1422
                 // Take only what's visible or "invisible but where the user is a teacher" or where the visibility is unset.
1423 1423
                 && ($item_property['visibility'] == '1'
@@ -1433,7 +1433,7 @@  discard block
 block discarded – undo
1433 1433
                         ($item_property['to_user_id'] != $user_id) &&
1434 1434
                         (!isset($item_property['to_group_id']) || !in_array($item_property['to_group_id'], $group_ids)))
1435 1435
                 ) {
1436
-                   continue;
1436
+                    continue;
1437 1437
                 }
1438 1438
 
1439 1439
                 // If it's a survey, make sure the user's invited. Otherwise drop it.
@@ -1651,21 +1651,21 @@  discard block
 block discarded – undo
1651 1651
      *
1652 1652
      * @param  string  id of the rating ul element
1653 1653
      * @param  string  url that will be added (for jquery see hot_courses.tpl)
1654
-	 * @param	string	point info array see function CourseManager::get_course_ranking()
1655
-	 * @param	bool	add a div wrapper
1656
-	 * @todo	use     templates
1654
+     * @param	string	point info array see function CourseManager::get_course_ranking()
1655
+     * @param	bool	add a div wrapper
1656
+     * @todo	use     templates
1657 1657
      **/
1658 1658
     public static function return_rating_system($id, $url, $point_info = array(), $add_div_wrapper = true)
1659 1659
     {
1660
-		$number_of_users_who_voted = isset($point_info['users_who_voted']) ? $point_info['users_who_voted'] : null;
1661
-		$percentage = isset($point_info['point_average']) ? $point_info['point_average'] : 0;
1660
+        $number_of_users_who_voted = isset($point_info['users_who_voted']) ? $point_info['users_who_voted'] : null;
1661
+        $percentage = isset($point_info['point_average']) ? $point_info['point_average'] : 0;
1662 1662
 
1663
-		if (!empty($percentage)) {
1663
+        if (!empty($percentage)) {
1664 1664
             $percentage = $percentage*125/100;
1665 1665
         }
1666
-		$accesses =  isset($point_info['accesses']) ? $point_info['accesses'] : 0;
1666
+        $accesses =  isset($point_info['accesses']) ? $point_info['accesses'] : 0;
1667 1667
 
1668
-		$star_label = sprintf(get_lang('XStarsOutOf5'), $point_info['point_average_star']);
1668
+        $star_label = sprintf(get_lang('XStarsOutOf5'), $point_info['point_average_star']);
1669 1669
 
1670 1670
         $html = '<ul id="'.$id.'" class="star-rating">
1671 1671
 					<li class="current-rating" style="width:'.$percentage.'px;"></li>
@@ -1676,26 +1676,26 @@  discard block
 block discarded – undo
1676 1676
 					<li><a href="javascript:void(0);" data-link="'.$url.'&amp;star=5" title="'.$star_label.'" class="five-stars">5</a></li>
1677 1677
 				</ul>';
1678 1678
 
1679
-		$labels = array();
1679
+        $labels = array();
1680 1680
 
1681
-		$labels[]= $number_of_users_who_voted == 1 ? $number_of_users_who_voted.' '.get_lang('Vote') : $number_of_users_who_voted.' '.get_lang('Votes');
1682
-		$labels[]= $accesses == 1 ? $accesses.' '.get_lang('Visit') : $accesses.' '.get_lang('Visits');
1683
-		/* if (!empty($number_of_users_who_voted)) {
1681
+        $labels[]= $number_of_users_who_voted == 1 ? $number_of_users_who_voted.' '.get_lang('Vote') : $number_of_users_who_voted.' '.get_lang('Votes');
1682
+        $labels[]= $accesses == 1 ? $accesses.' '.get_lang('Visit') : $accesses.' '.get_lang('Visits');
1683
+        /* if (!empty($number_of_users_who_voted)) {
1684 1684
 			$labels[]= get_lang('Average').' '.$point_info['point_average_star'].'/5';
1685 1685
 		} */
1686 1686
 
1687
-		$labels[]= $point_info['user_vote']  ? get_lang('YourVote').' ['.$point_info['user_vote'].']' : get_lang('YourVote'). ' [?] ';
1687
+        $labels[]= $point_info['user_vote']  ? get_lang('YourVote').' ['.$point_info['user_vote'].']' : get_lang('YourVote'). ' [?] ';
1688 1688
 
1689
-		if (!$add_div_wrapper && api_is_anonymous()) {
1690
-			$labels[]= Display::tag('span', get_lang('LoginToVote'), array('class' => 'error'));
1691
-		}
1689
+        if (!$add_div_wrapper && api_is_anonymous()) {
1690
+            $labels[]= Display::tag('span', get_lang('LoginToVote'), array('class' => 'error'));
1691
+        }
1692 1692
 
1693 1693
         $html .= Display::div(implode(' | ', $labels) , array('id' =>  'vote_label_'.$id, 'class' => 'vote_label_info'));
1694 1694
         $html .= ' '.Display::span(' ', array('id' =>  'vote_label2_'.$id));
1695 1695
 
1696 1696
         if ($add_div_wrapper) {
1697
-			$html = Display::div($html, array('id' => 'rating_wrapper_'.$id));
1698
-		}
1697
+            $html = Display::div($html, array('id' => 'rating_wrapper_'.$id));
1698
+        }
1699 1699
 
1700 1700
         return $html;
1701 1701
     }
@@ -1733,8 +1733,8 @@  discard block
 block discarded – undo
1733 1733
         return self::page_header($title, $second_title);
1734 1734
     }
1735 1735
 
1736
-     public static function page_subheader_and_translate($title, $second_title = null)
1737
-     {
1736
+        public static function page_subheader_and_translate($title, $second_title = null)
1737
+        {
1738 1738
         $title = get_lang($title);
1739 1739
         return self::page_subheader($title, $second_title);
1740 1740
     }
Please login to merge, or discard this patch.
main/admin/legal_add.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
 
106 106
 if (isset($_POST['language'])) {
107 107
 
108
-	$form->addElement('static', Security::remove_XSS($_POST['language']));
109
-	$form->addElement('hidden', 'language', Security::remove_XSS($_POST['language']));
108
+    $form->addElement('static', Security::remove_XSS($_POST['language']));
109
+    $form->addElement('hidden', 'language', Security::remove_XSS($_POST['language']));
110 110
     $form->addHtmlEditor(
111 111
         'content',
112 112
         get_lang('Content'),
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
     $form->addElement('html', $buttons);
137 137
 
138 138
 } else {
139
-	$form->addElement('select_language', 'language', get_lang('Language'),null,array());
140
-	$form->addButtonSearch(get_lang('Load'), 'send');
139
+    $form->addElement('select_language', 'language', get_lang('Language'),null,array());
140
+    $form->addButtonSearch(get_lang('Load'), 'send');
141 141
 
142 142
 }
143 143
 
Please login to merge, or discard this patch.
main/admin/legal_list.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
 // this 2 "mask" function are here just because the SortableTable
43 43
 function get_legal_data_mask($id, $params = null, $row = null)
44 44
 {
45
-	return LegalManager::get_legal_data($id, $params, $row);
45
+    return LegalManager::get_legal_data($id, $params, $row);
46 46
 }
47 47
 function count_mask()
48 48
 {
49
-	return LegalManager::count();
49
+    return LegalManager::count();
50 50
 }
51 51
 Display :: display_footer();
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -619,8 +619,8 @@  discard block
 block discarded – undo
619 619
     }
620 620
 
621 621
     /**
622
-    * Recycle Thematics
623
-    */
622
+     * Recycle Thematics
623
+     */
624 624
     public function recycle_thematic($session_id = 0)
625 625
     {
626 626
         if ($this->course->has_resources(RESOURCE_THEMATIC)) {
@@ -685,8 +685,8 @@  discard block
 block discarded – undo
685 685
     }
686 686
 
687 687
     /**
688
-    * Recycle Attendances
689
-    */
688
+     * Recycle Attendances
689
+     */
690 690
     public function recycle_attendance($session_id = 0)
691 691
     {
692 692
         if ($this->course->has_resources(RESOURCE_ATTENDANCE)) {
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/Course.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
     }
327 327
 
328 328
     /**
329
-    * Serialize the course with the best serializer available
330
-    * @return string
331
-    */
329
+     * Serialize the course with the best serializer available
330
+     * @return string
331
+     */
332 332
     public static function serialize($course)
333 333
     {
334 334
         if (extension_loaded('igbinary')) {
@@ -339,9 +339,9 @@  discard block
 block discarded – undo
339 339
     }
340 340
 
341 341
     /**
342
-    * Unserialize the course with the best serializer available
343
-    * @param string $course
344
-    */
342
+     * Unserialize the course with the best serializer available
343
+     * @param string $course
344
+     */
345 345
     public static function unserialize($course)
346 346
     {
347 347
         if (extension_loaded('igbinary')) {
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/Resources/CalendarEvent.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -66,19 +66,19 @@
 block discarded – undo
66 66
         $attachment_comment = null,
67 67
         $all_day = 0
68 68
     ) {
69
-		parent::__construct($id, RESOURCE_EVENT);
69
+        parent::__construct($id, RESOURCE_EVENT);
70 70
 
71
-		$this->title = $title;
72
-		$this->content = $content;
73
-		$this->start_date = $start_date;
74
-		$this->end_date = $end_date;
75
-		$this->all_day = $all_day;
71
+        $this->title = $title;
72
+        $this->content = $content;
73
+        $this->start_date = $start_date;
74
+        $this->end_date = $end_date;
75
+        $this->all_day = $all_day;
76 76
 
77
-		$this->attachment_path = $attachment_path;
78
-		$this->attachment_filename = $attachment_filename;
79
-		$this->attachment_size = $attachment_size;
80
-		$this->attachment_comment = $attachment_comment;
81
-	}
77
+        $this->attachment_path = $attachment_path;
78
+        $this->attachment_filename = $attachment_filename;
79
+        $this->attachment_size = $attachment_size;
80
+        $this->attachment_comment = $attachment_comment;
81
+    }
82 82
 
83 83
     /**
84 84
      * Show this Event
Please login to merge, or discard this patch.
Chamilo/CourseBundle/Component/CourseCopy/Resources/CourseCopyLearnpath.php 1 patch
Indentation   +110 added lines, -110 removed lines patch added patch discarded remove patch
@@ -84,120 +84,120 @@
 block discarded – undo
84 84
      */
85 85
     public $author;
86 86
 
87
-	/**
88
-	 * Author's image
89
-	 */
90
-	public $preview_image;
87
+    /**
88
+     * Author's image
89
+     */
90
+    public $preview_image;
91 91
 
92
-	/**
93
-	 * Create a new learnpath
94
-	 * @param integer ID
95
-	 * @param integer Type (1,2,3,...)
96
-	 * @param string $name
97
-	 * @param string $path
98
-	 * @param string $ref
99
-	 * @param string $description
100
-	 * @param string $content_local
101
-	 * @param string $default_encoding
102
-	 * @param string $default_view_mode
103
-	 * @param bool   $prevent_reinit
104
-	 * @param bool   $force_commit
105
-	 * @param string $content_maker
106
-	 * @param integer $display_order
107
-	 * @param string $js_lib
108
-	 * @param string $content_license
109
-	 * @param integer $debug
110
-	 * @param string $visibility
111
-	 * @param array  $items
112
-	 */
113
-	public function __construct(
114
-		$id,
115
-		$type,
116
-		$name,
117
-		$path,
118
-		$ref,
119
-		$description,
120
-		$content_local,
121
-		$default_encoding,
122
-		$default_view_mode,
123
-		$prevent_reinit,
124
-		$force_commit,
125
-		$content_maker,
126
-		$display_order,
127
-		$js_lib,
128
-		$content_license,
129
-		$debug,
130
-		$visibility,
131
-		$author,
132
-		$preview_image,
133
-		$use_max_score,
134
-		$autolaunch,
135
-		$created_on,
136
-		$modified_on,
137
-		$publicated_on,
138
-		$expired_on,
139
-		$session_id,
140
-		$items
141
-	) {
142
-		parent::__construct($id, RESOURCE_LEARNPATH);
143
-		$this->lp_type = $type;
144
-		$this->name = $name;
145
-		$this->path = $path;
146
-		$this->ref = $ref;
147
-		$this->description = $description;
148
-		$this->content_local = $content_local;
149
-		$this->default_encoding = $default_encoding;
150
-		$this->default_view_mod = $default_view_mode;
151
-		$this->prevent_reinit = $prevent_reinit;
152
-		$this->force_commit = $force_commit;
153
-		$this->content_maker = $content_maker;
154
-		$this->display_order = $display_order;
155
-		$this->js_lib = $js_lib;
156
-		$this->content_license = $content_license;
157
-		$this->debug = $debug;
158
-		$this->visibility=$visibility;
92
+    /**
93
+     * Create a new learnpath
94
+     * @param integer ID
95
+     * @param integer Type (1,2,3,...)
96
+     * @param string $name
97
+     * @param string $path
98
+     * @param string $ref
99
+     * @param string $description
100
+     * @param string $content_local
101
+     * @param string $default_encoding
102
+     * @param string $default_view_mode
103
+     * @param bool   $prevent_reinit
104
+     * @param bool   $force_commit
105
+     * @param string $content_maker
106
+     * @param integer $display_order
107
+     * @param string $js_lib
108
+     * @param string $content_license
109
+     * @param integer $debug
110
+     * @param string $visibility
111
+     * @param array  $items
112
+     */
113
+    public function __construct(
114
+        $id,
115
+        $type,
116
+        $name,
117
+        $path,
118
+        $ref,
119
+        $description,
120
+        $content_local,
121
+        $default_encoding,
122
+        $default_view_mode,
123
+        $prevent_reinit,
124
+        $force_commit,
125
+        $content_maker,
126
+        $display_order,
127
+        $js_lib,
128
+        $content_license,
129
+        $debug,
130
+        $visibility,
131
+        $author,
132
+        $preview_image,
133
+        $use_max_score,
134
+        $autolaunch,
135
+        $created_on,
136
+        $modified_on,
137
+        $publicated_on,
138
+        $expired_on,
139
+        $session_id,
140
+        $items
141
+    ) {
142
+        parent::__construct($id, RESOURCE_LEARNPATH);
143
+        $this->lp_type = $type;
144
+        $this->name = $name;
145
+        $this->path = $path;
146
+        $this->ref = $ref;
147
+        $this->description = $description;
148
+        $this->content_local = $content_local;
149
+        $this->default_encoding = $default_encoding;
150
+        $this->default_view_mod = $default_view_mode;
151
+        $this->prevent_reinit = $prevent_reinit;
152
+        $this->force_commit = $force_commit;
153
+        $this->content_maker = $content_maker;
154
+        $this->display_order = $display_order;
155
+        $this->js_lib = $js_lib;
156
+        $this->content_license = $content_license;
157
+        $this->debug = $debug;
158
+        $this->visibility=$visibility;
159 159
 
160
-		$this->use_max_score=$use_max_score;
161
-		$this->autolaunch=$autolaunch;
162
-		$this->created_on=$created_on;
163
-		$this->modified_on=$modified_on;
164
-		$this->publicated_on=$publicated_on;
165
-		$this->expired_on=$expired_on;
166
-		$this->session_id=$session_id;
160
+        $this->use_max_score=$use_max_score;
161
+        $this->autolaunch=$autolaunch;
162
+        $this->created_on=$created_on;
163
+        $this->modified_on=$modified_on;
164
+        $this->publicated_on=$publicated_on;
165
+        $this->expired_on=$expired_on;
166
+        $this->session_id=$session_id;
167 167
 
168
-		$this->author= $author;
169
-		$this->preview_image= $preview_image;
168
+        $this->author= $author;
169
+        $this->preview_image= $preview_image;
170 170
 
171
-		$this->items = $items;
172
-	}
173
-	/**
174
-	 * Get the items
175
-	 */
176
-	function get_items()
177
-	{
178
-		return $this->items;
179
-	}
171
+        $this->items = $items;
172
+    }
173
+    /**
174
+     * Get the items
175
+     */
176
+    function get_items()
177
+    {
178
+        return $this->items;
179
+    }
180 180
 
181
-	/**
182
-	 * Check if a given resource is used as an item in this chapter
183
-	 */
184
-	function has_item($resource)
185
-	{
186
-		foreach ($this->items as $item) {
187
-			if ($item['id'] == $resource->get_id() &&
188
-				isset($item['type']) && $item['type'] == $resource->get_type()
189
-			) {
190
-				return true;
191
-			}
192
-		}
193
-		return false;
194
-	}
181
+    /**
182
+     * Check if a given resource is used as an item in this chapter
183
+     */
184
+    function has_item($resource)
185
+    {
186
+        foreach ($this->items as $item) {
187
+            if ($item['id'] == $resource->get_id() &&
188
+                isset($item['type']) && $item['type'] == $resource->get_type()
189
+            ) {
190
+                return true;
191
+            }
192
+        }
193
+        return false;
194
+    }
195 195
 
196
-	/**
197
-	 * Show this learnpath
198
-	 */
199
-	function show() {
200
-		parent::show();
201
-		echo $this->name;
202
-	}
196
+    /**
197
+     * Show this learnpath
198
+     */
199
+    function show() {
200
+        parent::show();
201
+        echo $this->name;
202
+    }
203 203
 }
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/Resources/Thematic.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 {
12 12
     public $params = array();
13 13
     public $thematic_advance_list = array();
14
-	public $thematic_plan_list = array();
14
+    public $thematic_plan_list = array();
15 15
 
16 16
     /**
17
-    * Create a new Thematic
18
-    *
19
-    * @param array $params
20
-    */
17
+     * Create a new Thematic
18
+     *
19
+     * @param array $params
20
+     */
21 21
     public function __construct($params)
22 22
     {
23 23
         parent::__construct($params['id'], RESOURCE_THEMATIC);
Please login to merge, or discard this patch.