Completed
Pull Request — 1.11.x (#1688)
by José
28:44
created
main/inc/lib/fileDisplay.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@
 block discarded – undo
249 249
         'props.session_id'
250 250
     );
251 251
 
252
-    $visibility_rule = ' props.visibility ' . ($can_see_invisible ? '<> 2' : '= 1');
252
+    $visibility_rule = ' props.visibility '.($can_see_invisible ? '<> 2' : '= 1');
253 253
 
254 254
     $sql = "SELECT SUM(table1.size) FROM (
255 255
                 SELECT props.ref, size
Please login to merge, or discard this patch.
main/inc/lib/promotion.lib.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     case 'updated_at':
64 64
                         break;
65 65
                     case 'name':
66
-                        $val .= ' ' . get_lang('CopyLabelSuffix');
66
+                        $val .= ' '.get_lang('CopyLabelSuffix');
67 67
                         $new[$key] = $val;
68 68
                         break;
69 69
                     case 'created_at':
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                         break;
73 73
                     case 'career_id':
74 74
                         if (!empty($career_id)) {
75
-                            $val = (int)$career_id;
75
+                            $val = (int) $career_id;
76 76
                         }
77 77
                         $new[$key] = $val;
78 78
                         break;
@@ -160,22 +160,22 @@  discard block
 block discarded – undo
160 160
     {
161 161
         // Action links
162 162
         echo '<div class="actions" style="margin-bottom:20px">';
163
-        echo '<a href="career_dashboard.php">' . Display::return_icon('back.png',
164
-                get_lang('Back'), '', '32') . '</a>';
165
-        echo '<a href="' . api_get_self() . '?action=add">' .
163
+        echo '<a href="career_dashboard.php">'.Display::return_icon('back.png',
164
+                get_lang('Back'), '', '32').'</a>';
165
+        echo '<a href="'.api_get_self().'?action=add">'.
166 166
             Display::return_icon(
167 167
                 'new_promotion.png',
168 168
                 get_lang('Add'),
169 169
                 '',
170 170
                 '32'
171
-            ) . '</a>';
172
-        echo '<a href="' . api_get_path(WEB_CODE_PATH) . 'session/session_add.php">' .
171
+            ).'</a>';
172
+        echo '<a href="'.api_get_path(WEB_CODE_PATH).'session/session_add.php">'.
173 173
             Display::return_icon(
174 174
                 'new_session.png',
175 175
                 get_lang('AddSession'),
176 176
                 '',
177 177
                 '32'
178
-            ) . '</a>';
178
+            ).'</a>';
179 179
         echo '</div>';
180 180
         echo Display::grid_html('promotions');
181 181
     }
Please login to merge, or discard this patch.
main/admin/extra_field_workflow.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 api_protect_admin_script();
16 16
 
17 17
 // setting breadcrumbs
18
-$interbreadcrumb[] = array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
18
+$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
19 19
 
20 20
 $tool_name = null;
21 21
 
@@ -36,16 +36,16 @@  discard block
 block discarded – undo
36 36
 $token = Security::get_token();
37 37
 
38 38
 if ($action == 'add') {
39
-    $interbreadcrumb[]=array('url' => 'extra_fields.php?type='.$extraField->type,'name' => $extraField->pageName);
40
-    $interbreadcrumb[]=array(
39
+    $interbreadcrumb[] = array('url' => 'extra_fields.php?type='.$extraField->type, 'name' => $extraField->pageName);
40
+    $interbreadcrumb[] = array(
41 41
         'url' => 'extra_fields.php?type='.$extraField->type.'&action=edit&id='.$extraFieldInfo['id'],
42 42
         'name' => $extraFieldInfo['display_text']
43 43
     );
44
-    $interbreadcrumb[]=array(
44
+    $interbreadcrumb[] = array(
45 45
         'url' => 'extra_field_options.php?type='.$extraField->type.'&field_id='.$extraFieldInfo['id'],
46 46
         'name' => get_lang('EditExtraFieldOptions')
47 47
     );
48
-    $interbreadcrumb[]=array('url' => '#','name' => get_lang('Add'));
48
+    $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Add'));
49 49
 } elseif ($action == 'edit') {
50 50
     $interbreadcrumb[] = array(
51 51
         'url' => 'extra_fields.php?type='.$extraField->type,
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
 $paramsNoRole = 'field_id='.$field_id.'&type='.$extraField->type;
84 84
 
85 85
 //The order is important you need to check the the $column variable in the model.ajax.php file
86
-$columns = array(get_lang('Name'), get_lang('Value'),  get_lang('Order'), get_lang('Actions'));
86
+$columns = array(get_lang('Name'), get_lang('Value'), get_lang('Order'), get_lang('Actions'));
87 87
 
88
-$htmlHeadXtra[]='<script>
88
+$htmlHeadXtra[] = '<script>
89 89
 
90 90
     function setHidden(obj) {
91 91
         var name = $(obj).attr("name");
@@ -186,9 +186,9 @@  discard block
 block discarded – undo
186 186
 if (!empty($roleId)) {
187 187
     $form->addElement('html', $table->toHtml());
188 188
     $group = array();
189
-    $group[]= $form->createElement('button', 'submit', get_lang('Save'));
190
-    $group[]= $form->createElement('button', 'select_all', get_lang('SelectAll'), array('class' => 'btn select_all'));
191
-    $group[]= $form->createElement('button', 'unselect_all', get_lang('UnSelectAll'), array('class' => 'btn unselect_all'));
189
+    $group[] = $form->createElement('button', 'submit', get_lang('Save'));
190
+    $group[] = $form->createElement('button', 'select_all', get_lang('SelectAll'), array('class' => 'btn select_all'));
191
+    $group[] = $form->createElement('button', 'unselect_all', get_lang('UnSelectAll'), array('class' => 'btn unselect_all'));
192 192
     $form->addGroup($group, '', null, ' ');
193 193
 
194 194
     $form->setDefaults(array('status' => $roleId));
Please login to merge, or discard this patch.
main/admin/dashboard_add_courses_to_user.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 // setting breadcrumbs
23 23
 $interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
24
-$interbreadcrumb[] = array('url' => 'user_list.php','name' => get_lang('UserList'));
24
+$interbreadcrumb[] = array('url' => 'user_list.php', 'name' => get_lang('UserList'));
25 25
 
26 26
 // Database Table Definitions
27 27
 $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
@@ -36,15 +36,15 @@  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
-if(isset($_GET['add_type']) && $_GET['add_type']!='') {
47
+if (isset($_GET['add_type']) && $_GET['add_type'] != '') {
48 48
 	$add_type = Security::remove_XSS($_REQUEST['add_type']);
49 49
 }
50 50
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 function search_courses($needle, $type)
56 56
 {
57
-    global $tbl_course, $tbl_course_rel_access_url,$user_id;
57
+    global $tbl_course, $tbl_course_rel_access_url, $user_id;
58 58
 
59 59
     $xajax_response = new xajaxResponse();
60 60
     $return = '';
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         }
70 70
         $without_assigned_courses = '';
71 71
         if (count($assigned_courses_code) > 0) {
72
-            $without_assigned_courses = " AND c.code NOT IN(".implode(',',$assigned_courses_code).")";
72
+            $without_assigned_courses = " AND c.code NOT IN(".implode(',', $assigned_courses_code).")";
73 73
         }
74 74
 
75 75
         if (api_is_multiple_url_enabled()) {
@@ -88,14 +88,14 @@  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 93
 		$return .= '<select id="origin" name="NoAssignedCoursesList[]" multiple="multiple" size="20" >';
94 94
 		while ($course = Database :: fetch_array($rs)) {
95
-			$return .= '<option value="'.$course['code'].'" title="'.htmlspecialchars($course['title'],ENT_QUOTES).'">'.$course['title'].' ('.$course['code'].')</option>';
95
+			$return .= '<option value="'.$course['code'].'" title="'.htmlspecialchars($course['title'], ENT_QUOTES).'">'.$course['title'].' ('.$course['code'].')</option>';
96 96
 		}
97 97
 		$return .= '</select>';
98
-		$xajax_response -> addAssign('ajax_list_courses_multiple','innerHTML',api_utf8_encode($return));
98
+		$xajax_response -> addAssign('ajax_list_courses_multiple', 'innerHTML', api_utf8_encode($return));
99 99
 	}
100 100
 	return $xajax_response;
101 101
 }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 }
154 154
 </script>';
155 155
 
156
-$formSent=0;
156
+$formSent = 0;
157 157
 $errorMsg = $firstLetterCourse = '';
158 158
 $UserList = array();
159 159
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 if (isset($_POST['formSent']) && intval($_POST['formSent']) == 1) {
162 162
     $courses_list = isset($_POST['CoursesList']) ? $_POST['CoursesList'] : [];
163 163
     $affected_rows = CourseManager::subscribeCoursesToDrhManager($user_id, $courses_list);
164
-    if ($affected_rows)	{
164
+    if ($affected_rows) {
165 165
         $msg = get_lang('AssignedCoursesHaveBeenUpdatedSuccessfully');
166 166
     }
167 167
 }
@@ -213,20 +213,20 @@  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";
220 220
 }
221 221
 
222 222
 
223
-$result	= Database::query($sql);
223
+$result = Database::query($sql);
224 224
 
225 225
 ?>
226 226
 <form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?user=<?php echo $user_id ?>" style="margin:0px;">
227 227
 <input type="hidden" name="formSent" value="1" />
228 228
 <?php
229
-if(!empty($msg)) {
229
+if (!empty($msg)) {
230 230
 	Display::display_normal_message($msg); //main API
231 231
 }
232 232
 ?>
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         <div id="ajax_list_courses_multiple">
239 239
 	<select id="origin" name="NoAssignedCoursesList[]" multiple="multiple" size="20" style="width:340px;">
240 240
 	<?php while ($enreg = Database::fetch_array($result)) { ?>
241
-            <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'],ENT_QUOTES).'"';?>><?php echo $enreg['title'].' ('.$enreg['code'].')'; ?></option>
241
+            <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'], ENT_QUOTES).'"'; ?>><?php echo $enreg['title'].' ('.$enreg['code'].')'; ?></option>
242 242
 	<?php } ?>
243 243
 	</select>
244 244
         </div>
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
     </div>
247 247
     <div class="col-md-4">
248 248
         <div class="code-course">
249
-        <?php if($add_type == 'multiple') { ?>
250
-        <p><?php echo get_lang('FirstLetterCourse');?> :</p>
249
+        <?php if ($add_type == 'multiple') { ?>
250
+        <p><?php echo get_lang('FirstLetterCourse'); ?> :</p>
251 251
         <select name="firstLetterCourse" class="selectpicker form-control" onchange = "xajax_search_courses(this.value,'multiple')">
252 252
             <option value="%">--</option>
253 253
             <?php  echo Display :: get_alphabet_options($firstLetter); ?>
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             if (is_array($assigned_courses_to_hrm)) {
287 287
                 foreach ($assigned_courses_to_hrm as $enreg) {
288 288
             ?>
289
-                <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="' . htmlspecialchars($enreg['title'], ENT_QUOTES) . '"'; ?>><?php echo $enreg['title'] . ' (' . $enreg['code'] . ')'; ?></option>
289
+                <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'], ENT_QUOTES).'"'; ?>><?php echo $enreg['title'].' ('.$enreg['code'].')'; ?></option>
290 290
             <?php
291 291
                     }
292 292
                 }
Please login to merge, or discard this patch.
main/admin/usergroup_import.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
             // 2. Check whether class doesn't exist yet.
24 24
             if ($usergroup->usergroup_exists($class['name'])) {
25 25
                 $class['line'] = $index + 2;
26
-                $class['error'] = get_lang('ClassNameExists') .
27
-                    ': <strong>' .$class['name'] . '</strong>';
26
+                $class['error'] = get_lang('ClassNameExists').
27
+                    ': <strong>'.$class['name'].'</strong>';
28 28
                 $errors[] = $class;
29 29
             }
30 30
         }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     'radio',
103 103
     'file_type',
104 104
     '',
105
-    'CSV (<a href="example_class.csv" target="_blank">' . get_lang('ExampleCSVFile') . '</a>)',
105
+    'CSV (<a href="example_class.csv" target="_blank">'.get_lang('ExampleCSVFile').'</a>)',
106 106
     'csv'
107 107
 );
108 108
 $form->addGroup($group, '', get_lang('FileType'), null);
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
     $errors = validate_data($classes);
114 114
     if (count($errors) == 0) {
115 115
         $number_of_added_classes = save_data($classes);
116
-        Display::display_normal_message($number_of_added_classes . ' ' . get_lang('Added'));
116
+        Display::display_normal_message($number_of_added_classes.' '.get_lang('Added'));
117 117
     } else {
118 118
         $error_message = get_lang('ErrorsWhenImportingFile');
119 119
         $error_message .= '<ul>';
120 120
         foreach ($errors as $index => $error_class) {
121
-            $error_message .= '<li>' . $error_class['error'] . ' (' . get_lang('Line') . ' ' . $error_class['line'] . ')';
121
+            $error_message .= '<li>'.$error_class['error'].' ('.get_lang('Line').' '.$error_class['line'].')';
122 122
             $error_message .= '</li>';
123 123
         }
124 124
         $error_message .= '</ul>';
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
 $form->display();
131 131
 ?>
132
-<p><?php echo get_lang('CSVMustLookLike') . ' (' . get_lang('MandatoryFields') . ')'; ?> :</p>
132
+<p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>
133 133
 
134 134
 <pre>
135 135
 <b>name;description;</b>users
Please login to merge, or discard this patch.
main/admin/skills_gradebook.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 // setting breadcrumbs
26 26
 
27 27
 $tool_name = get_lang('SkillsAndGradebooks');
28
-$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
28
+$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
29 29
 if ($action == 'add_skill') {
30
-    $interbreadcrumb[]=array('url' => 'skills_gradebook.php','name' => get_lang('SkillsAndGradebooks'));
30
+    $interbreadcrumb[] = array('url' => 'skills_gradebook.php', 'name' => get_lang('SkillsAndGradebooks'));
31 31
     $tool_name = get_lang('Add');
32 32
 }
33 33
 
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
 $action_links = 'function action_formatter(cellvalue, options, rowObject) {
87 87
                         //certificates
88 88
                         if (rowObject[4] == 1) {
89
-                            return \'<a href="?action=add_skill&id=\'+options.rowId+\'">'.Display::return_icon('add.png', get_lang('AddSkill'),'',ICON_SIZE_SMALL).'</a>'.'\';
89
+                            return \'<a href="?action=add_skill&id=\'+options.rowId+\'">'.Display::return_icon('add.png', get_lang('AddSkill'), '', ICON_SIZE_SMALL).'</a>'.'\';
90 90
                         } else {
91
-                            return \''.Display::return_icon('add_na.png', get_lang('YourGradebookFirstNeedsACertificateInOrderToBeLinkedToASkill'),'',ICON_SIZE_SMALL).''.'\';
91
+                            return \''.Display::return_icon('add_na.png', get_lang('YourGradebookFirstNeedsACertificateInOrderToBeLinkedToASkill'), '', ICON_SIZE_SMALL).''.'\';
92 92
                         }
93 93
                  }';
94 94
 ?>
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 $(function() {
97 97
 <?php
98 98
     // grid definition see the $career->display() function
99
-    echo Display::grid_js('gradebooks', $url, $columns, $column_model, $extra_params, array(), $action_links,true);
99
+    echo Display::grid_js('gradebooks', $url, $columns, $column_model, $extra_params, array(), $action_links, true);
100 100
 ?>
101 101
 });
102 102
 </script>
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
112 112
         $gradebook_info = $gradebook->get($id);
113 113
         $url  = api_get_self().'?action='.$action.'&id='.$id;
114
-        $form =  $gradebook->show_skill_form($id, $url, $gradebook_info['name']);
114
+        $form = $gradebook->show_skill_form($id, $url, $gradebook_info['name']);
115 115
         if ($form->validate()) {
116 116
             $values = $form->exportValues();
117 117
             $res    = $gradebook->update_skills_to_gradebook($values['id'], $values['skill']);
Please login to merge, or discard this patch.
main/admin/inactive_user_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 Display :: display_header($tool_name);
24 24
 
25 25
 //On sélectionne les user élèves
26
-$sql = "SELECT user_id FROM ".$table_user." user WHERE user.status= '5' ORDER by lastname " ;
26
+$sql = "SELECT user_id FROM ".$table_user." user WHERE user.status= '5' ORDER by lastname ";
27 27
 $result = Database::query($sql);
28 28
 
29 29
 while ($row = Database::fetch_array($result)) {
Please login to merge, or discard this patch.
main/admin/skills_import.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 api_protect_admin_script(true);
162 162
 
163 163
 $tool_name = get_lang('ImportSkillsListCSV');
164
-$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
164
+$interbreadcrumb[] = array("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
165 165
 
166 166
 set_time_limit(0);
167 167
 $extra_fields = UserManager::get_extra_fields(0, 0, 5, 'ASC', true);
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
     $file_type = $_POST['file_type'];
173 173
     Security::clear_token();
174 174
     $tok = Security::get_token();
175
-    $allowed_file_mimetype = array('csv','xml');
175
+    $allowed_file_mimetype = array('csv', 'xml');
176 176
     $error_kind_file = false;
177 177
     $error_message = '';
178 178
 
179
-    $ext_import_file = substr($_FILES['import_file']['name'], (strrpos($_FILES['import_file']['name'],'.')+1));
179
+    $ext_import_file = substr($_FILES['import_file']['name'], (strrpos($_FILES['import_file']['name'], '.') + 1));
180 180
 
181
-    if (in_array($ext_import_file,$allowed_file_mimetype)) {
181
+    if (in_array($ext_import_file, $allowed_file_mimetype)) {
182 182
         if (strcmp($file_type, 'csv') === 0 && $ext_import_file == $allowed_file_mimetype[0]) {
183 183
             $skills	= parse_csv_data($_FILES['import_file']['tmp_name']);
184 184
             $errors = validate_data($skills);
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     }
239 239
 }
240 240
 
241
-$interbreadcrumb[] = array ("url" => 'skill_list.php', "name" => get_lang('ManageSkills'));
241
+$interbreadcrumb[] = array("url" => 'skill_list.php', "name" => get_lang('ManageSkills'));
242 242
 
243 243
 Display :: display_header($tool_name);
244 244
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 
252 252
 $toolbar = Display::toolbarButton(
253 253
     get_lang('ManageSkills'),
254
-    api_get_path(WEB_CODE_PATH) . 'admin/skill_list.php',
254
+    api_get_path(WEB_CODE_PATH).'admin/skill_list.php',
255 255
     'list',
256 256
     'success',
257 257
     ['title' => get_lang('CreateSkill')]
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 $toolbar .= '&nbsp;&nbsp;';
260 260
 $toolbar .= Display::toolbarButton(
261 261
     get_lang('SkillsWheel'),
262
-    api_get_path(WEB_CODE_PATH) . 'admin/skills_wheel.php',
262
+    api_get_path(WEB_CODE_PATH).'admin/skills_wheel.php',
263 263
     'bullseye',
264 264
     'primary',
265 265
     ['title' => get_lang('CreateSkill')]
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 $toolbar .= '&nbsp;&nbsp;';
268 268
 $toolbar .= Display::toolbarButton(
269 269
     get_lang('BadgesManagement'),
270
-    api_get_path(WEB_CODE_PATH) . 'admin/skill_badge_list.php',
270
+    api_get_path(WEB_CODE_PATH).'admin/skill_badge_list.php',
271 271
     'shield',
272 272
     'warning',
273 273
     ['title' => get_lang('BadgesManagement')]
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 
277 277
 echo $toolbar;
278 278
 
279
-$form = new FormValidator('user_import','post','skills_import.php');
279
+$form = new FormValidator('user_import', 'post', 'skills_import.php');
280 280
 $form->addElement('header', '', $tool_name);
281 281
 $form->addElement('hidden', 'formSent');
282 282
 $form->addElement('file', 'import_file', get_lang('ImportFileLocation'));
Please login to merge, or discard this patch.
main/admin/event_type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 $languages = api_get_languages();
54 54
 
55
-$ajaxPath = api_get_path(WEB_CODE_PATH) . 'inc/ajax/events.ajax.php';
55
+$ajaxPath = api_get_path(WEB_CODE_PATH).'inc/ajax/events.ajax.php';
56 56
 
57 57
 $action_array = array(
58 58
     array(
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
         <select class="col-md-6" multiple="1" id="eventList" onchange="confirmMessage(this.name); return false;" name="eventList">
329 329
         <?php
330 330
         foreach ($event_config as $key => $config) {
331
-            echo '<option value="' . $key . '">' . $config['name_lang_var'] . '</option>';
331
+            echo '<option value="'.$key.'">'.$config['name_lang_var'].'</option>';
332 332
         }
333 333
         ?>
334 334
         </select>
Please login to merge, or discard this patch.