Completed
Pull Request — 1.11.x (#1628)
by José
97:30 queued 69:06
created
main/ticket/tickets.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
         echo '<div class="actions" >';
290 290
         echo '<a href="' . api_get_path(WEB_CODE_PATH) . 'ticket/new_ticket.php?project_id='.$projectId.'">' .
291 291
                 Display::return_icon('add.png', get_lang('Add'), '', '32') .
292
-             '</a>';
292
+                '</a>';
293 293
         echo '</div>';
294 294
     }
295 295
 }
Please login to merge, or discard this patch.
main/messages/new_message.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -77,20 +77,20 @@  discard block
 block discarded – undo
77 77
 
78 78
 function show_compose_reply_to_message($message_id, $receiver_id)
79 79
 {
80
-	$table_message = Database::get_main_table(TABLE_MESSAGE);
81
-	$query = "SELECT user_sender_id
80
+    $table_message = Database::get_main_table(TABLE_MESSAGE);
81
+    $query = "SELECT user_sender_id
82 82
               FROM $table_message
83 83
 			  WHERE user_receiver_id = ".intval($receiver_id)." AND id='".intval($message_id)."';";
84
-	$result = Database::query($query);
85
-	$row = Database::fetch_array($result,'ASSOC');
86
-	if (!isset($row['user_sender_id'])) {
87
-		$html = get_lang('InvalidMessageId');
84
+    $result = Database::query($query);
85
+    $row = Database::fetch_array($result,'ASSOC');
86
+    if (!isset($row['user_sender_id'])) {
87
+        $html = get_lang('InvalidMessageId');
88 88
 
89
-		return $html;
90
-	}
91
-	$userInfo = api_get_user_info($row['user_sender_id']);
92
-	$default['users'] = array($row['user_sender_id']);
93
-	$html = manage_form($default, null, $userInfo['complete_name']);
89
+        return $html;
90
+    }
91
+    $userInfo = api_get_user_info($row['user_sender_id']);
92
+    $default['users'] = array($row['user_sender_id']);
93
+    $html = manage_form($default, null, $userInfo['complete_name']);
94 94
 
95 95
     return $html;
96 96
 }
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
 function show_compose_to_user ($receiver_id)
99 99
 {
100 100
     $userInfo = api_get_user_info($receiver_id);
101
-	$html = get_lang('To').':&nbsp;<strong>'.$userInfo['complete_name'].'</strong>';
102
-	$default['title'] = api_xml_http_response_encode(get_lang('EnterTitle'));
103
-	$default['users'] = array($receiver_id);
104
-	$html .= manage_form($default);
101
+    $html = get_lang('To').':&nbsp;<strong>'.$userInfo['complete_name'].'</strong>';
102
+    $default['title'] = api_xml_http_response_encode(get_lang('EnterTitle'));
103
+    $default['users'] = array($receiver_id);
104
+    $html .= manage_form($default);
105 105
 
106 106
     return $html;
107 107
 }
@@ -273,13 +273,13 @@  discard block
 block discarded – undo
273 273
 
274 274
 /* MAIN SECTION */
275 275
 if ($socialToolIsActive) {
276
-	$this_section = SECTION_SOCIAL;
276
+    $this_section = SECTION_SOCIAL;
277 277
     $interbreadcrumb[] = array(
278 278
         'url' => api_get_path(WEB_PATH).'main/social/home.php',
279 279
         'name' => get_lang('SocialNetwork')
280 280
     );
281 281
 } else {
282
-	$this_section = SECTION_MYPROFILE;
282
+    $this_section = SECTION_MYPROFILE;
283 283
     $interbreadcrumb[] = array(
284 284
         'url' => api_get_path(WEB_PATH).'main/auth/profile.php',
285 285
         'name' => get_lang('Profile')
@@ -289,30 +289,30 @@  discard block
 block discarded – undo
289 289
 $group_id = isset($_REQUEST['group_id']) ? intval($_REQUEST['group_id']) : null;
290 290
 $social_right_content = null;
291 291
 if ($group_id != 0) {
292
-	$social_right_content .= '<div class=actions>';
293
-	$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/social/group_view.php?id='.$group_id.'">'.
294
-		Display::return_icon('back.png',api_xml_http_response_encode(get_lang('ComposeMessage'))).'</a>';
295
-	$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php?group_id='.$group_id.'">'.
296
-		Display::return_icon('message_new.png',api_xml_http_response_encode(get_lang('ComposeMessage'))).'</a>';
297
-	$social_right_content .= '</div>';
292
+    $social_right_content .= '<div class=actions>';
293
+    $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/social/group_view.php?id='.$group_id.'">'.
294
+        Display::return_icon('back.png',api_xml_http_response_encode(get_lang('ComposeMessage'))).'</a>';
295
+    $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php?group_id='.$group_id.'">'.
296
+        Display::return_icon('message_new.png',api_xml_http_response_encode(get_lang('ComposeMessage'))).'</a>';
297
+    $social_right_content .= '</div>';
298 298
 } else {
299
-	if ($socialToolIsActive) {
300
-	} else {
301
-		$social_right_content .= '<div class=actions>';
302
-		if (api_get_setting('allow_social_tool') === 'true' && api_get_setting('allow_message_tool') === 'true') {
303
-			$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.
299
+    if ($socialToolIsActive) {
300
+    } else {
301
+        $social_right_content .= '<div class=actions>';
302
+        if (api_get_setting('allow_social_tool') === 'true' && api_get_setting('allow_message_tool') === 'true') {
303
+            $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.
304 304
                 Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>';
305
-		}
306
-		if (api_get_setting('allow_message_tool') === 'true') {
307
-			$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.
305
+        }
306
+        if (api_get_setting('allow_message_tool') === 'true') {
307
+            $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.
308 308
                 Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>';
309
-			$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.
309
+            $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.
310 310
                 Display::return_icon('inbox.png',get_lang('Inbox')).'</a>';
311 311
             $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.
312 312
                 Display::return_icon('outbox.png',get_lang('Outbox')).'</a>';
313
-		}
314
-		$social_right_content .= '</div>';
315
-	}
313
+        }
314
+        $social_right_content .= '</div>';
315
+    }
316 316
 }
317 317
 
318 318
 // LEFT COLUMN
Please login to merge, or discard this patch.
main/mySpace/user_import.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 $interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('MySpace'));
19 19
 $id_session = '';
20 20
 if (isset($_GET['id_session']) && $_GET['id_session'] != '') {
21
- 	$id_session = intval($_GET['id_session']);
22
-	$interbreadcrumb[] = array ('url' => 'session.php', 'name' => get_lang('Sessions'));
23
-	$interbreadcrumb[] = array ('url' => 'course.php?id_session='.$id_session.'', 'name' => get_lang('Course'));
21
+        $id_session = intval($_GET['id_session']);
22
+    $interbreadcrumb[] = array ('url' => 'session.php', 'name' => get_lang('Sessions'));
23
+    $interbreadcrumb[] = array ('url' => 'course.php?id_session='.$id_session.'', 'name' => get_lang('Course'));
24 24
 }
25 25
 
26 26
 // Set this option to true to enforce strict purification for usenames.
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 Display :: display_header($tool_name);
90 90
 
91 91
 if ($_FILES['import_file']['size'] == 0 && $_POST) {
92
-	Display::display_error_message(get_lang('ThisFieldIsRequired'));
92
+    Display::display_error_message(get_lang('ThisFieldIsRequired'));
93 93
 }
94 94
 
95 95
 if (count($errors) != 0) {
Please login to merge, or discard this patch.
main/lp/lp_view_item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 // Theme calls
98 98
 $show_learn_path = true;
99 99
 if (isset($_SESSION['oLP']) && is_object($_SESSION['oLP'])) {
100
-	$lp_theme_css = $_SESSION['oLP']->get_theme();
100
+    $lp_theme_css = $_SESSION['oLP']->get_theme();
101 101
 }
102 102
 
103 103
 if ($mode == 'fullpage') {
Please login to merge, or discard this patch.
main/admin/dashboard_add_courses_to_user.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -36,20 +36,20 @@  discard block
 block discarded – undo
36 36
 
37 37
 // setting the name of the tool
38 38
 if (UserManager::is_admin($user_id)) {
39
-	$tool_name= get_lang('AssignCoursesToPlatformAdministrator');
39
+    $tool_name= get_lang('AssignCoursesToPlatformAdministrator');
40 40
 } else if ($user_info['status'] == SESSIONADMIN) {
41
-	$tool_name= get_lang('AssignCoursesToSessionsAdministrator');
41
+    $tool_name= get_lang('AssignCoursesToSessionsAdministrator');
42 42
 } else {
43
-	$tool_name= get_lang('AssignCoursesToHumanResourcesManager');
43
+    $tool_name= get_lang('AssignCoursesToHumanResourcesManager');
44 44
 }
45 45
 
46 46
 $add_type = 'multiple';
47 47
 if(isset($_GET['add_type']) && $_GET['add_type']!='') {
48
-	$add_type = Security::remove_XSS($_REQUEST['add_type']);
48
+    $add_type = Security::remove_XSS($_REQUEST['add_type']);
49 49
 }
50 50
 
51 51
 if (!api_is_platform_admin()) {
52
-	api_not_allowed(true);
52
+    api_not_allowed(true);
53 53
 }
54 54
 
55 55
 function search_courses($needle, $type)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     $return = '';
61 61
     if (!empty($needle) && !empty($type)) {
62 62
         // xajax send utf8 datas... datas in db can be non-utf8 datas
63
-		$needle = Database::escape_string($needle);
63
+        $needle = Database::escape_string($needle);
64 64
 
65 65
         $assigned_courses_to_hrm = CourseManager::get_courses_followed_by_drh($user_id);
66 66
         $assigned_courses_code = array_keys($assigned_courses_to_hrm);
@@ -88,16 +88,16 @@  discard block
 block discarded – undo
88 88
                 		$without_assigned_courses ";
89 89
         }
90 90
 
91
-		$rs	= Database::query($sql);
91
+        $rs	= Database::query($sql);
92 92
 
93
-		$return .= '<select id="origin" name="NoAssignedCoursesList[]" multiple="multiple" size="20" >';
94
-		while ($course = Database :: fetch_array($rs)) {
95
-			$return .= '<option value="'.$course['code'].'" title="'.htmlspecialchars($course['title'],ENT_QUOTES).'">'.$course['title'].' ('.$course['code'].')</option>';
96
-		}
97
-		$return .= '</select>';
98
-		$xajax_response -> addAssign('ajax_list_courses_multiple','innerHTML',api_utf8_encode($return));
99
-	}
100
-	return $xajax_response;
93
+        $return .= '<select id="origin" name="NoAssignedCoursesList[]" multiple="multiple" size="20" >';
94
+        while ($course = Database :: fetch_array($rs)) {
95
+            $return .= '<option value="'.$course['code'].'" title="'.htmlspecialchars($course['title'],ENT_QUOTES).'">'.$course['title'].' ('.$course['code'].')</option>';
96
+        }
97
+        $return .= '</select>';
98
+        $xajax_response -> addAssign('ajax_list_courses_multiple','innerHTML',api_utf8_encode($return));
99
+    }
100
+    return $xajax_response;
101 101
 }
102 102
 
103 103
 $xajax->processRequests();
@@ -187,23 +187,23 @@  discard block
 block discarded – undo
187 187
 $assigned_courses_to_hrm = CourseManager::get_courses_followed_by_drh($user_id);
188 188
 $assigned_courses_code = array_keys($assigned_courses_to_hrm);
189 189
 foreach ($assigned_courses_code as &$value) {
190
-	$value = "'".$value."'";
190
+    $value = "'".$value."'";
191 191
 }
192 192
 
193 193
 $without_assigned_courses = '';
194 194
 if (count($assigned_courses_code) > 0) {
195
-	$without_assigned_courses = " AND c.code NOT IN(".implode(',', $assigned_courses_code).")";
195
+    $without_assigned_courses = " AND c.code NOT IN(".implode(',', $assigned_courses_code).")";
196 196
 }
197 197
 
198 198
 $needle = '%';
199 199
 $firstLetter = null;
200 200
 if (isset($_POST['firstLetterCourse'])) {
201
-	$firstLetter = $_POST['firstLetterCourse'];
202
-	$needle = Database::escape_string($firstLetter.'%');
201
+    $firstLetter = $_POST['firstLetterCourse'];
202
+    $needle = Database::escape_string($firstLetter.'%');
203 203
 }
204 204
 
205 205
 if (api_is_multiple_url_enabled()) {
206
-	$sql = " SELECT c.code, c.title
206
+    $sql = " SELECT c.code, c.title
207 207
             FROM $tbl_course c
208 208
             LEFT JOIN $tbl_course_rel_access_url a
209 209
             ON (a.c_id = c.id)
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             ORDER BY c.title";
214 214
 
215 215
 } else {
216
-	$sql= " SELECT c.code, c.title
216
+    $sql= " SELECT c.code, c.title
217 217
 	        FROM $tbl_course c
218 218
             WHERE  c.code LIKE '$needle' $without_assigned_courses
219 219
             ORDER BY c.title";
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 <input type="hidden" name="formSent" value="1" />
228 228
 <?php
229 229
 if(!empty($msg)) {
230
-	Display::display_normal_message($msg); //main API
230
+    Display::display_normal_message($msg); //main API
231 231
 }
232 232
 ?>
233 233
 
@@ -272,13 +272,13 @@  discard block
 block discarded – undo
272 272
     </div>
273 273
     <div class="col-md-4">
274 274
         <h5><?php
275
-	  	if (UserManager::is_admin($user_id)) {
276
-			echo get_lang('AssignedCoursesListToPlatformAdministrator');
277
-		} else if ($user_info['status'] == SESSIONADMIN) {
278
-			echo get_lang('AssignedCoursesListToSessionsAdministrator');
279
-		} else {
280
-			echo get_lang('AssignedCoursesListToHumanResourcesManager');
281
-		}
275
+            if (UserManager::is_admin($user_id)) {
276
+            echo get_lang('AssignedCoursesListToPlatformAdministrator');
277
+        } else if ($user_info['status'] == SESSIONADMIN) {
278
+            echo get_lang('AssignedCoursesListToSessionsAdministrator');
279
+        } else {
280
+            echo get_lang('AssignedCoursesListToHumanResourcesManager');
281
+        }
282 282
             ?>: </h5>
283 283
 
284 284
         <select id='destination' name="CoursesList[]" multiple="multiple" size="20" style="width:320px;">
Please login to merge, or discard this patch.
main/admin/skills_import.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             $oskill = new Skill();
71 71
             $skill_id = $oskill->add($skill);
72 72
             $parents[$saved_id] = $skill_id;
73
-		}
73
+        }
74 74
     }
75 75
 }
76 76
 
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
  */
82 82
 function parse_csv_data($file)
83 83
 {
84
-	$skills = Import :: csvToArray($file);
85
-	foreach ($skills as $index => $skill) {
86
-		$skills[$index] = $skill;
87
-	}
84
+    $skills = Import :: csvToArray($file);
85
+    foreach ($skills as $index => $skill) {
86
+        $skills[$index] = $skill;
87
+    }
88 88
 
89
-	return $skills;
89
+    return $skills;
90 90
 }
91 91
 
92 92
 /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  */
95 95
 function element_start($parser, $data)
96 96
 {
97
-	$data = api_utf8_decode($data);
97
+    $data = api_utf8_decode($data);
98 98
     global $skill;
99 99
     global $current_tag;
100 100
     switch ($data) {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
  */
112 112
 function element_end($parser, $data)
113 113
 {
114
-	$data = api_utf8_decode($data);
114
+    $data = api_utf8_decode($data);
115 115
     global $skill;
116 116
     global $skills;
117 117
     global $current_value;
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
  */
131 131
 function character_data($parser, $data)
132 132
 {
133
-	$data = trim(api_utf8_decode($data));
134
-	global $current_value;
135
-	$current_value = $data;
133
+    $data = trim(api_utf8_decode($data));
134
+    global $current_value;
135
+    $current_value = $data;
136 136
 }
137 137
 
138 138
 /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     xml_parse($parser, api_utf8_encode_xml(file_get_contents($file)));
155 155
     xml_parser_free($parser);
156 156
 
157
-	return $skills;
157
+    return $skills;
158 158
 }
159 159
 
160 160
 $this_section = SECTION_PLATFORM_ADMIN;
Please login to merge, or discard this patch.
main/admin/ldap_form_add_users_group.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -29,35 +29,35 @@
 block discarded – undo
29 29
 echo '<input type="hidden" name="confirmed" value="yes">';
30 30
 echo '<table border="0" cellspacing="0" width="100%">';
31 31
 echo '<tr align="center" id="header3">' .
32
-		'<td width="15%"><input type="button" value="'.get_lang('AllSlashNone').'" onClick="checkAll();"></td>' .
33
-		'<td width="40%"><b>'.get_lang('Email').'</b></td>' .
34
-		($is_western_name_order
35
-			? '<td width="15%"><b>'.get_lang('FirstName').'</b></td>' .
36
-			'<td width="15%"><b>'.get_lang('Name').'</b></td>'
37
-			: '<td width="15%"><b>'.get_lang('Name').'</b></td>' .
38
-			'<td width="15%"><b>'.get_lang('FirstName').'</b></td>') .
39
-		'<td width="15%"><b>'.get_lang('Login').'</b></td>' .
40
-	  '</tr>'."\n";
32
+        '<td width="15%"><input type="button" value="'.get_lang('AllSlashNone').'" onClick="checkAll();"></td>' .
33
+        '<td width="40%"><b>'.get_lang('Email').'</b></td>' .
34
+        ($is_western_name_order
35
+            ? '<td width="15%"><b>'.get_lang('FirstName').'</b></td>' .
36
+            '<td width="15%"><b>'.get_lang('Name').'</b></td>'
37
+            : '<td width="15%"><b>'.get_lang('Name').'</b></td>' .
38
+            '<td width="15%"><b>'.get_lang('FirstName').'</b></td>') .
39
+        '<td width="15%"><b>'.get_lang('Login').'</b></td>' .
40
+        '</tr>'."\n";
41 41
 while (list ($key, $val) = each($nom_form)) {
42
-	$nbre=$nbre+1;
43
-	if($nbre & 1) $ndiv=2; else $ndiv=3;
44
-	echo '<tr align="center" id="header'.$ndiv.'">';
45
-	echo '<td><input type="checkbox" name="checkboxes[]" value="'.$key.'" checked="checked"></td>';
46
-	echo '<td>'.$email_form[$key].'<input type="hidden" name="email_form['.$key.']" size="40" value="'.$email_form[$key].'"></td>';
47
-	if ($is_western_name_order)	{
48
-		echo '<td>'.$prenom_form[$key].'<input type="hidden" name="prenom_form['.$key.']" size="20" value="'.$prenom_form[$key].'"></td>';
49
-		echo '<td>'.$nom_form[$key].'<input type="hidden" name="nom_form['.$key.']" size="20" value="'.$nom_form[$key].'"></td>';
50
-	} else {
51
-		echo '<td>'.$nom_form[$key].'<input type="hidden" name="nom_form['.$key.']" size="20" value="'.$nom_form[$key].'"></td>';
52
-		echo '<td>'.$prenom_form[$key].'<input type="hidden" name="prenom_form['.$key.']" size="20" value="'.$prenom_form[$key].'"></td>';
53
-	}
54
-	echo '<td>'.$username_form[$key].'<input type="hidden" name="username_form['.$key.']" size="10" value="'.$username_form[$key].'">';
55
-	echo '<input type="hidden" name="tutor_form['.$key.']" value="0">';
56
-	echo '<input type="hidden" name="admin_form['.$key.']" value="1">';
57
-	echo '<input type="hidden" name="password_form['.$key.']"  value="'.$password_form[$key].'">';
58
-	echo '<input type="hidden" name="statut['.$key.']"  value="'.$statut.'">';
59
-	echo '</td>';
60
-	echo '</tr>';
42
+    $nbre=$nbre+1;
43
+    if($nbre & 1) $ndiv=2; else $ndiv=3;
44
+    echo '<tr align="center" id="header'.$ndiv.'">';
45
+    echo '<td><input type="checkbox" name="checkboxes[]" value="'.$key.'" checked="checked"></td>';
46
+    echo '<td>'.$email_form[$key].'<input type="hidden" name="email_form['.$key.']" size="40" value="'.$email_form[$key].'"></td>';
47
+    if ($is_western_name_order)	{
48
+        echo '<td>'.$prenom_form[$key].'<input type="hidden" name="prenom_form['.$key.']" size="20" value="'.$prenom_form[$key].'"></td>';
49
+        echo '<td>'.$nom_form[$key].'<input type="hidden" name="nom_form['.$key.']" size="20" value="'.$nom_form[$key].'"></td>';
50
+    } else {
51
+        echo '<td>'.$nom_form[$key].'<input type="hidden" name="nom_form['.$key.']" size="20" value="'.$nom_form[$key].'"></td>';
52
+        echo '<td>'.$prenom_form[$key].'<input type="hidden" name="prenom_form['.$key.']" size="20" value="'.$prenom_form[$key].'"></td>';
53
+    }
54
+    echo '<td>'.$username_form[$key].'<input type="hidden" name="username_form['.$key.']" size="10" value="'.$username_form[$key].'">';
55
+    echo '<input type="hidden" name="tutor_form['.$key.']" value="0">';
56
+    echo '<input type="hidden" name="admin_form['.$key.']" value="1">';
57
+    echo '<input type="hidden" name="password_form['.$key.']"  value="'.$password_form[$key].'">';
58
+    echo '<input type="hidden" name="statut['.$key.']"  value="'.$statut.'">';
59
+    echo '</td>';
60
+    echo '</tr>';
61 61
 }
62 62
 echo '</table>';
63 63
 echo '<br />';
Please login to merge, or discard this patch.
main/admin/filler.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
     $result .= '<table>';
54 54
     foreach ($output as $line) {
55 55
         $result .= '<tr>';
56
-	    $result .= '<td class="filler-report-data-init">'.$line['line-init'].' </td><td class="filler-report-data">'.$line['line-info'].'</td>';
57
-	    $result .= '</tr>';
56
+        $result .= '<td class="filler-report-data-init">'.$line['line-init'].' </td><td class="filler-report-data">'.$line['line-info'].'</td>';
57
+        $result .= '</tr>';
58 58
     }
59 59
     $result .= '</table>';
60 60
     $result .= '</div>';
Please login to merge, or discard this patch.
main/course_description/add.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 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) {
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
 
39 39
 // error messages
40 40
 if (isset($error) && intval($error) == 1) {
41
-	Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'), false);
41
+    Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'), false);
42 42
 }
43 43
 
44 44
 // default header title form
45 45
 $header = '';
46 46
 $description_type = intval($description_type);
47 47
 if ($description_type >= ADD_BLOCK) {
48
-	$header = $default_description_titles[ADD_BLOCK];
48
+    $header = $default_description_titles[ADD_BLOCK];
49 49
 }
50 50
 
51 51
 // display form
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
 // display default questions
75 75
 if (isset ($question[$description_type])) {
76
-	$message = '<strong>'.get_lang('QuestionPlan').'</strong><br />';
77
-	$message .= $question[$description_type];
78
-	Display::display_normal_message($message, false);
76
+    $message = '<strong>'.get_lang('QuestionPlan').'</strong><br />';
77
+    $message .= $question[$description_type];
78
+    Display::display_normal_message($message, false);
79 79
 }
80 80
 $form->display();
Please login to merge, or discard this patch.