Test Setup Failed
Pull Request — 1.11.x (#1541)
by José
33:51 queued 05:26
created
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.
Chamilo/CourseBundle/Component/CourseCopy/Resources/DummyCourseCreator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -291,16 +291,16 @@
 block discarded – undo
291 291
         Duis bibendum elementum justo. Duis posuere. Fusce nulla odio, posuere eget, condimentum nec, venenatis eu, elit. In hac habitasse platea dictumst. Aenean ac sem in enim imperdiet feugiat. Integer tincidunt lectus at elit. Integer magna lacus, vehicula quis, eleifend eget, suscipit vitae, leo. Nunc porta augue nec enim. Curabitur vehicula volutpat enim. Aliquam consequat. Vestibulum rhoncus tellus vitae erat. Integer est. Quisque fermentum leo nec odio. Suspendisse lobortis sollicitudin augue. Nullam urna mi, suscipit eu, sagittis laoreet, ultrices ac, sem. Aliquam enim tortor, hendrerit non, cursus a, tristique sit amet, sapien. Suspendisse potenti. Aenean semper placerat neque.';
292 292
         switch($type)
293 293
         {
294
-         case 'description':
294
+            case 'description':
295 295
             $descriptions = explode(".",$dummy_text);
296 296
             return $descriptions[rand(0,count($descriptions)-1)];
297 297
             break;
298
-         case 'title':
298
+            case 'title':
299 299
             $dummy_text = str_replace(array("\n",'.',',',"\t"),array(' ','','',' '),$dummy_text);
300 300
             $titles = explode(" ",$dummy_text);
301 301
             return trim($titles[rand(0,count($titles)-1)]);
302 302
             break;
303
-         case 'text':
303
+            case 'text':
304 304
             $texts = explode("\n",$dummy_text);
305 305
             return $texts[rand(0,count($texts)-1)];
306 306
             break;
Please login to merge, or discard this patch.
custompages/language.inc.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
     krsort($langs, SORT_NUMERIC);
30 30
     // Choosing the best match
31 31
     foreach($langs as $weight => $codes) {
32
-		foreach ($codes as $code) {
33
-        	if (in_array($code, $available_langs)) {
34
-            	return $code;
35
-        	}
36
-		}
32
+        foreach ($codes as $code) {
33
+            if (in_array($code, $available_langs)) {
34
+                return $code;
35
+            }
36
+        }
37 37
     }
38 38
     // No match
39 39
     return null;
Please login to merge, or discard this patch.
custompages/language.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@
 block discarded – undo
24 24
 $lang_match = $chamilo_langs[get_preferred_language($available_langs)];
25 25
 // recover previous value ...
26 26
 if (isset($_SESSION['user_language_choice']))
27
-	$lang_match = $_SESSION['user_language_choice'];
27
+    $lang_match = $_SESSION['user_language_choice'];
28 28
 
29 29
 // Chamilo parameter, on logout
30 30
 if (isset($_REQUEST['language']) && !empty($_REQUEST['language']) && in_array($_REQUEST['language'], $chamilo_langs)) {
31
-	$lang_match = $_REQUEST['language'];
31
+    $lang_match = $_REQUEST['language'];
32 32
 }
33 33
 // Incoming link parameter
34 34
 if (isset($_REQUEST['lang']) && !empty($_REQUEST['lang']) && in_array($_REQUEST['lang'], $available_langs)) {
35
-	$lang_match = $chamilo_langs[$_REQUEST['lang']];
35
+    $lang_match = $chamilo_langs[$_REQUEST['lang']];
36 36
 }
37 37
 
38 38
 $detect = api_get_setting('auto_detect_language_custom_pages');
Please login to merge, or discard this patch.
main/admin/add_sessions_to_usergroup.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
       <option value = "%">--</option>
198 198
       <?php
199 199
         echo Display :: get_alphabet_options();
200
-      ?>
200
+        ?>
201 201
      </select>
202 202
 </td>
203 203
 <td align="center">&nbsp;</td>
@@ -207,31 +207,31 @@  discard block
 block discarded – undo
207 207
   <td align="center">
208 208
   <div id="content_source">
209 209
       <?php
210
-      if (!($add_type=='multiple')) {
210
+        if (!($add_type=='multiple')) {
211 211
         ?>
212 212
         <input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,'single')" />
213 213
         <div id="ajax_list_users_single"></div>
214 214
         <?php
215
-      } else {
216
-      ?>
215
+        } else {
216
+        ?>
217 217
       <div id="ajax_list_multiple">
218 218
         <?php echo Display::select('session_not_in_promotion_name',$session_not_in_promotion, '',array('style'=>'width:360px', 'multiple'=>'multiple','id'=>'session_not_in_promotion','size'=>'15px'),false); ?>
219 219
       </div>
220 220
     <?php
221
-      }
222
-     ?>
221
+        }
222
+        ?>
223 223
   </div>
224 224
   </td>
225 225
   <td width="10%" valign="middle" align="center">
226 226
   <?php
227
-  if ($ajax_search) {
228
-  ?>
227
+    if ($ajax_search) {
228
+    ?>
229 229
     <button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('session_in_promotion'))" >
230 230
         <em class="fa fa-arrow-left"></em>
231 231
     </button>
232 232
   <?php
233
-  } else {
234
-  ?>
233
+    } else {
234
+    ?>
235 235
     <button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))">
236 236
         <em class="fa fa-arrow-right"></em>
237 237
     </button>
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
         <em class="fa fa-arrow-left"></em>
241 241
     </button>
242 242
     <?php
243
-  }
244
-  ?>
243
+    }
244
+    ?>
245 245
     <br /><br /><br /><br /><br /><br />
246 246
   </td>
247 247
   <td align="center">
Please login to merge, or discard this patch.
main/exercise/live_stats.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 $result = $objExercise->read($exercise_id);
18 18
 
19 19
 if (!$result) {
20
-	api_not_allowed(true);
20
+    api_not_allowed(true);
21 21
 }
22 22
 
23 23
 $interbreadcrumb[] = array(
Please login to merge, or discard this patch.