Completed
Pull Request — 1.11.x (#1700)
by José
28:48
created
main/ticket/tutor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         var url     = this.href;
18 18
         var dialog  = $("#dialog");
19 19
         if ($("#dialog").length == 0) {
20
-                dialog  = $("' . '<div id="dialog" style="display:hidden"></div>' . '").appendTo("body");
20
+                dialog  = $("' . '<div id="dialog" style="display:hidden"></div>'.'").appendTo("body");
21 21
         }
22 22
 
23 23
         // load remote content
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 $.ajax({
57 57
 		contentType: "application/x-www-form-urlencoded",
58 58
 		beforeSend: function(objeto) {
59
-		$("div#confirmation").html("<img src=\"' . api_get_path(WEB_LIBRARY_PATH) . 'javascript/indicator.gif\" />"); },
59
+		$("div#confirmation").html("<img src=\"' . api_get_path(WEB_LIBRARY_PATH).'javascript/indicator.gif\" />"); },
60 60
 		type: "POST",
61 61
 		url: "update_report.php",
62 62
 		data: "work_id="+work_id+"&forum_id="+forum_id+"&rs_id="+rs_id,
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 $course_code = api_get_course_id();
96 96
 $results = initializeReport($course_code);
97 97
 if (isset($_GET['action'])) {
98
-    Export::arrayToXls($results['export'], "COURSE_USER_REPORT" . $course_code);
98
+    Export::arrayToXls($results['export'], "COURSE_USER_REPORT".$course_code);
99 99
 } else {
100 100
     Display::display_header();
101 101
     api_protect_course_script();
Please login to merge, or discard this patch.
main/ticket/download.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 $file_url = Database::escape_string($file_url);
43 43
 $title = $_GET['title'];
44 44
 $path_attachment = api_get_path(SYS_ARCHIVE_PATH);
45
-$path_message_attach = $path_attachment . 'plugin_ticket_messageattch/';
46
-$full_file_name = $path_message_attach . $file_url;
45
+$path_message_attach = $path_attachment.'plugin_ticket_messageattch/';
46
+$full_file_name = $path_message_attach.$file_url;
47 47
 if (Security::check_abs_path($full_file_name, $path_message_attach)) {
48 48
     DocumentManager::file_send_for_download($full_file_name, true, $title);
49 49
 }
Please login to merge, or discard this patch.
main/ticket/report.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -289,8 +289,9 @@
 block discarded – undo
289 289
 
290 290
     if ($start_date != '' || $end_date != '') {
291 291
         $sql .= " HAVING ";
292
-        if ($start_date != '')
293
-            $sql .= "  access_date >= '$start_date'   ";
292
+        if ($start_date != '') {
293
+                    $sql .= "  access_date >= '$start_date'   ";
294
+        }
294 295
         if ($end_date != '') {
295 296
             $sql = ($start_date == '') ? $sql : ($sql . " AND ");
296 297
             $sql .= "  access_date <= '$end_date'   ";
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 
19 19
 $htmlHeadXtra[] = '<script>
20 20
 $(document).ready(function(){
21
-    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'yy-mm-dd'" . ' });
22
-    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'yy-mm-dd'" . ' });
21
+    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'yy-mm-dd'".' });
22
+    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'yy-mm-dd'".' });
23 23
 });
24 24
 
25 25
 function validate() {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
  */
91 91
 function js_str($s)
92 92
 {
93
-    return '"' . addcslashes($s, "\0..\37\"\\") . '"';
93
+    return '"'.addcslashes($s, "\0..\37\"\\").'"';
94 94
 }
95 95
 /**
96 96
  * This function is to show the ticket form
@@ -100,29 +100,29 @@  discard block
 block discarded – undo
100 100
 {
101 101
     global $tools;
102 102
     echo '<div class="ticket-form">';
103
-    echo '<form enctype="multipart/form-data" action="' . api_get_self() . '" method="post" name="send_ticket" id="send_ticket"
103
+    echo '<form enctype="multipart/form-data" action="'.api_get_self().'" method="post" name="send_ticket" id="send_ticket"
104 104
  	onsubmit="return validate()" style="width:100%">';
105 105
     $select_course = '<div id="user_request" >
106 106
 	 </div>';
107 107
     echo $select_course;
108 108
     //select status
109 109
     $select_tool = '<div class="row"  >
110
-	<div class="label2"  >' . get_lang('Tool') .':</div>
110
+	<div class="label2"  >' . get_lang('Tool').':</div>
111 111
 	<div class="formw2">';
112 112
     $select_tool .= '<select style="width: 95%; " name = "tool" id="tool" >';
113 113
 
114 114
     foreach ($tools as $tool) {
115
-        $select_tool .= "<option value = '" . $tool['id'] . "' selected >" . $tool['name'] . "</option>";
115
+        $select_tool .= "<option value = '".$tool['id']."' selected >".$tool['name']."</option>";
116 116
     }
117 117
     $select_tool .= "</select>";
118 118
     $select_tool .= '</div></div>';
119 119
     echo $select_tool;
120 120
     echo '<div class="row">
121
-	      <div class="label2">' . get_lang('From') . ':</div>
121
+	      <div class="label2">' . get_lang('From').':</div>
122 122
               <div class="formw2"><input id="keyword_start_date_start" name="keyword_start_date_start" type="text"></div>
123 123
           </div>
124 124
 	  <div class="row">
125
-	      <div class="label2"> ' . get_lang('To') . '</div>
125
+	      <div class="label2"> ' . get_lang('To').'</div>
126 126
 	      <div class="formw2"><input id="keyword_start_date_end" name="keyword_start_date_end" type="text"></div>
127 127
 	  </div>';
128 128
     echo '</div>';
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 		<div class="label2">
131 131
 		</div>
132 132
 		<div class="formw2">
133
-			<button class="save" name="report" type="submit" id="btnsubmit" disabled="disabled">' . get_lang('CompleteReport') .'</button>
133
+			<button class="save" name="report" type="submit" id="btnsubmit" disabled="disabled">' . get_lang('CompleteReport').'</button>
134 134
 		</div>
135 135
 	</div>';
136 136
 }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     $sql = "SELECT COUNT(u.user_id) AS total_number_of_items FROM $user_table u";
146 146
     if ((api_is_platform_admin() || api_is_session_admin()) && api_get_multiple_access_url()) {
147 147
         $access_url_rel_user_table = Database :: get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);
148
-        $sql.= " INNER JOIN $access_url_rel_user_table url_rel_user ON (u.user_id=url_rel_user.user_id)";
148
+        $sql .= " INNER JOIN $access_url_rel_user_table url_rel_user ON (u.user_id=url_rel_user.user_id)";
149 149
     }
150 150
     if (isset($_GET['keyword'])) {
151 151
         $keyword = Database::escape_string(trim($_GET['keyword']));
@@ -220,10 +220,10 @@  discard block
 block discarded – undo
220 220
     $webPath = api_get_path(WEB_PATH);
221 221
     while ($user = Database::fetch_row($res)) {
222 222
         $userPicture = UserManager::getUserPicture($user[0]);
223
-        $photo = '<img src="' . $userPicture . '" alt="' . api_get_person_name($user[2], $user[3]) . '" title="' . api_get_person_name($user[2], $user[3]) . '" />';
223
+        $photo = '<img src="'.$userPicture.'" alt="'.api_get_person_name($user[2], $user[3]).'" title="'.api_get_person_name($user[2], $user[3]).'" />';
224 224
         $user_id = $user[0];
225
-        $button = '<a  href="javascript:void(0)" onclick="load_course_list(\'div_' . $user_id . '\',' . $user_id . ')">
226
-					<img onclick="load_course_list(\'div_' . $user_id . '\',' . $user_id . ')"  src="' . $webPath . 'img/view_more_stats.gif" title="' . get_lang('Courses') . '" alt="' . get_lang('Courses') . '"/>
225
+        $button = '<a  href="javascript:void(0)" onclick="load_course_list(\'div_'.$user_id.'\','.$user_id.')">
226
+					<img onclick="load_course_list(\'div_' . $user_id.'\','.$user_id.')"  src="'.$webPath.'img/view_more_stats.gif" title="'.get_lang('Courses').'" alt="'.get_lang('Courses').'"/>
227 227
 					</a>&nbsp;&nbsp;';
228 228
         $users[] = array(
229 229
             $photo,
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
 Display::display_header('Reports');
243 243
 echo '<div class="actions">
244
-    <form action="' . api_get_self() . '" method="get" name="search_simple" id="search_simple">
244
+    <form action="' . api_get_self().'" method="get" name="search_simple" id="search_simple">
245 245
         <input name="user_id_request" id="user_id_request" type="hidden" value="">
246 246
         <span><label for="keyword">B&uacute;squeda del usuario: </label><input size="25" name="keyword" type="text" id="keyword"></span>
247 247
         <span><button class="search" name="submit" type="submit">Buscar</button></span>
@@ -275,12 +275,12 @@  discard block
 block discarded – undo
275 275
                 u.username , CONCAT(u.lastname, ' ', u.firstname) AS fullname,
276 276
                 DATE_SUB(access.access_date,INTERVAL 5 HOUR) AS  access_date,
277 277
                 c.title AS course, access_tool AS tool
278
-            FROM  " . Database::get_main_table(TABLE_STATISTIC_TRACK_E_ACCESS) . " access
279
-            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_USER) . " u ON access.access_user_id = u.user_id
280
-            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_COURSE) . " c ON access.c_id = c.id
281
-            WHERE access.c_id = " . $course_info['real_id'] . " AND u.user_id = $user_id ";
278
+            FROM  " . Database::get_main_table(TABLE_STATISTIC_TRACK_E_ACCESS)." access
279
+            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_USER)." u ON access.access_user_id = u.user_id
280
+            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_COURSE)." c ON access.c_id = c.id
281
+            WHERE access.c_id = " . $course_info['real_id']." AND u.user_id = $user_id ";
282 282
     if ($tool != '') {
283
-        $sql.="AND access.access_tool = '$tool' ";
283
+        $sql .= "AND access.access_tool = '$tool' ";
284 284
     }
285 285
 
286 286
     $start_date = Database::escape_string($_POST['keyword_start_date_start']);
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         if ($start_date != '')
292 292
             $sql .= "  access_date >= '$start_date'   ";
293 293
         if ($end_date != '') {
294
-            $sql = ($start_date == '') ? $sql : ($sql . " AND ");
294
+            $sql = ($start_date == '') ? $sql : ($sql." AND ");
295 295
             $sql .= "  access_date <= '$end_date'   ";
296 296
         }
297 297
     }
Please login to merge, or discard this patch.
main/ticket/course_user_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
 $courseSelect = Display::select('course_id', $arrCourseList, 0, array(), false);
39 39
 $courseControl = Display::div($courseSelect, array('class' => 'controls'));
40 40
 
41
-$userDiv = Display::div($userLabel . " " . $userControl, array('class' => 'control-group'));
42
-$courseDiv = Display::div($courseLabel . " " . $courseControl, array('class' => 'control-group'));
41
+$userDiv = Display::div($userLabel." ".$userControl, array('class' => 'control-group'));
42
+$courseDiv = Display::div($courseLabel." ".$courseControl, array('class' => 'control-group'));
43 43
 echo $userDiv;
44 44
 echo $courseDiv;
45 45
 
Please login to merge, or discard this patch.
plugin/azure_active_directory/src/AzureActiveDirectory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * Instance the plugin
38 38
      * @staticvar null $result
39
-     * @return Tour
39
+     * @return AzureActiveDirectory
40 40
      */
41 41
     static function create()
42 42
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
         $settings = [];
64 64
 
65 65
         foreach ($settingsInfo as $settingInfo) {
66
-            $variable = str_replace($this->get_name() . '_', '', $settingInfo['variable']);
66
+            $variable = str_replace($this->get_name().'_', '', $settingInfo['variable']);
67 67
 
68 68
             $settings[$variable] = $settingInfo['selected_value'];
69 69
         }
70 70
 
71 71
         $url = "https://login.microsoftonline.com/{$settings[self::SETTING_TENANT]}/oauth2/v2.0/";
72
-        $callback = api_get_path(WEB_PLUGIN_PATH) . $this->get_name() . '/src/callback.php';
72
+        $callback = api_get_path(WEB_PLUGIN_PATH).$this->get_name().'/src/callback.php';
73 73
 
74 74
         if ($urlType === self::URL_TYPE_SIGNOUT) {
75 75
             $action = 'logout';
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
             ];
98 98
         }
99 99
 
100
-        return $url . $action . '?' . http_build_query($urlParams);
100
+        return $url.$action.'?'.http_build_query($urlParams);
101 101
     }
102 102
 }
103 103
\ No newline at end of file
Please login to merge, or discard this patch.
plugin/azure_active_directory/src/callback.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require dirname(__FILE__) . '/../../../main/inc/global.inc.php';
3
-require_once dirname(__FILE__) . '/../../../main/auth/external_login/functions.inc.php';
2
+require dirname(__FILE__).'/../../../main/inc/global.inc.php';
3
+require_once dirname(__FILE__).'/../../../main/auth/external_login/functions.inc.php';
4 4
 
5 5
 if (isset($_POST['error']) || empty($_REQUEST)) {
6
-    header('Location: ' . api_get_path(WEB_PATH) . 'index.php?logout=logout');
6
+    header('Location: '.api_get_path(WEB_PATH).'index.php?logout=logout');
7 7
     exit;
8 8
 }
9 9
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     'username' => $jwtPayload->emails[0],
26 26
     'language' => 'en',
27 27
     'password' => 'azure_active_directory',
28
-    'auth_source' => 'azure_active_directory ' . $jwtPayload->idp,
28
+    'auth_source' => 'azure_active_directory '.$jwtPayload->idp,
29 29
     'extra' => array()
30 30
 );
31 31
 
@@ -51,5 +51,5 @@  discard block
 block discarded – undo
51 51
     $_SESSION['_user'] = $_user;
52 52
 }
53 53
 
54
-header('Location: ' . api_get_path(WEB_PATH));
54
+header('Location: '.api_get_path(WEB_PATH));
55 55
 exit;
Please login to merge, or discard this patch.
main/ticket/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,5 +7,5 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 require_once __DIR__.'/../inc/global.inc.php';
10
-header('Location:' . api_get_path(WEB_CODE_PATH) . 'ticket/tickets.php');
10
+header('Location:'.api_get_path(WEB_CODE_PATH).'ticket/tickets.php');
11 11
 exit;
Please login to merge, or discard this patch.
main/admin/configure_inscription.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 $tool_name = get_lang('ConfigureInscription');
47 47
 if (!empty($action)) {
48 48
     $interbreadcrumb[] = array('url' => 'configure_inscription.php', 'name' => get_lang('ConfigureInscription'));
49
-    switch($action) {
49
+    switch ($action) {
50 50
         case 'edit_top':
51 51
             $tool_name = get_lang('EditTopRegister');
52 52
             break;
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
                 // This request is only the preparation for the update of the home_top
142 142
                 $home_top = '';
143 143
                 if (is_file($homep.$topf.'_'.$lang.$ext) && is_readable($homep.$topf.'_'.$lang.$ext)) {
144
-                    $home_top = @(string)file_get_contents($homep.$topf.'_'.$lang.$ext);
144
+                    $home_top = @(string) file_get_contents($homep.$topf.'_'.$lang.$ext);
145 145
                 } elseif (is_file($homep.$topf.$lang.$ext) && is_readable($homep.$topf.$lang.$ext)) {
146
-                    $home_top = @(string)file_get_contents($homep.$topf.$lang.$ext);
146
+                    $home_top = @(string) file_get_contents($homep.$topf.$lang.$ext);
147 147
                 } else {
148 148
                     $errorMsg = get_lang('HomePageFilesNotReadable');
149 149
                 }
@@ -184,15 +184,15 @@  discard block
 block discarded – undo
184 184
     if (api_is_western_name_order()) {
185 185
         //	FIRST NAME and LAST NAME
186 186
         $form->addElement('text', 'firstname', get_lang('FirstName'), array('size' => 40, 'disabled' => 'disabled'));
187
-        $form->addElement('text', 'lastname',  get_lang('LastName'),  array('size' => 40, 'disabled' => 'disabled'));
187
+        $form->addElement('text', 'lastname', get_lang('LastName'), array('size' => 40, 'disabled' => 'disabled'));
188 188
     } else {
189 189
         //	LAST NAME and FIRST NAME
190
-        $form->addElement('text', 'lastname',  get_lang('LastName'),  array('size' => 40, 'disabled' => 'disabled'));
190
+        $form->addElement('text', 'lastname', get_lang('LastName'), array('size' => 40, 'disabled' => 'disabled'));
191 191
         $form->addElement('text', 'firstname', get_lang('FirstName'), array('size' => 40, 'disabled' => 'disabled'));
192 192
     }
193 193
     $form->applyFilter('firstname', 'trim');
194 194
     $form->applyFilter('lastname', 'trim');
195
-    $form->addRule('lastname',  get_lang('ThisFieldIsRequired'), 'required');
195
+    $form->addRule('lastname', get_lang('ThisFieldIsRequired'), 'required');
196 196
     $form->addRule('firstname', get_lang('ThisFieldIsRequired'), 'required');
197 197
 
198 198
     //	EMAIL
@@ -210,10 +210,10 @@  discard block
 block discarded – undo
210 210
     $form->addRule('username', get_lang('ThisFieldIsRequired'), 'required');
211 211
     $form->addRule('username', get_lang('UsernameWrong'), 'username');
212 212
     $form->addRule('username', get_lang('UserTaken'), 'username_available');
213
-    $form->addRule('username', sprintf(get_lang('UsernameMaxXCharacters'), (string)USERNAME_MAX_LENGTH), 'maxlength', USERNAME_MAX_LENGTH);
213
+    $form->addRule('username', sprintf(get_lang('UsernameMaxXCharacters'), (string) USERNAME_MAX_LENGTH), 'maxlength', USERNAME_MAX_LENGTH);
214 214
 
215 215
     //	PASSWORD
216
-    $form->addElement('password', 'pass1', get_lang('Pass'),         array('size' => 40, 'disabled' => 'disabled'));
216
+    $form->addElement('password', 'pass1', get_lang('Pass'), array('size' => 40, 'disabled' => 'disabled'));
217 217
     $form->addElement('password', 'pass2', get_lang('Confirmation'), array('size' => 40, 'disabled' => 'disabled'));
218 218
     $form->addRule('pass1', get_lang('ThisFieldIsRequired'), 'required');
219 219
     $form->addRule('pass2', get_lang('ThisFieldIsRequired'), 'required');
@@ -241,25 +241,25 @@  discard block
 block discarded – undo
241 241
 
242 242
     //	EXTENDED FIELDS
243 243
     if (api_get_setting('extended_profile') == 'true' &&
244
-        api_get_setting('extendedprofile_registration','mycomptetences') == 'true'
244
+        api_get_setting('extendedprofile_registration', 'mycomptetences') == 'true'
245 245
     ) {
246 246
         $form->addHtmlEditor('competences', get_lang('MyCompetences'), false, false, array('ToolbarSet' => 'Profile', 'Width' => '100%', 'Height' => '130'));
247 247
     }
248 248
 
249 249
     if (api_get_setting('extended_profile') == 'true' &&
250
-        api_get_setting('extendedprofile_registration','mydiplomas') == 'true'
250
+        api_get_setting('extendedprofile_registration', 'mydiplomas') == 'true'
251 251
     ) {
252 252
         $form->addHtmlEditor('diplomas', get_lang('MyDiplomas'), false, false, array('ToolbarSet' => 'Profile', 'Width' => '100%', 'Height' => '130'));
253 253
     }
254 254
 
255 255
     if (api_get_setting('extended_profile') == 'true' &&
256
-        api_get_setting('extendedprofile_registration','myteach') == 'true'
256
+        api_get_setting('extendedprofile_registration', 'myteach') == 'true'
257 257
     ) {
258 258
         $form->addHtmlEditor('teach', get_lang('MyTeach'), false, false, array('ToolbarSet' => 'Profile', 'Width' => '100%', 'Height' => '130'));
259 259
     }
260 260
 
261 261
     if (api_get_setting('extended_profile') == 'true' &&
262
-        api_get_setting('extendedprofile_registration','mypersonalopenarea') == 'true'
262
+        api_get_setting('extendedprofile_registration', 'mypersonalopenarea') == 'true'
263 263
     ) {
264 264
         $form->addHtmlEditor('openarea', get_lang('MyPersonalOpenArea'), false, false, array('ToolbarSet' => 'Profile', 'Width' => '100%', 'Height' => '130'));
265 265
     }
@@ -349,14 +349,14 @@  discard block
 block discarded – undo
349 349
 
350 350
 $form->setDefaults($defaults);
351 351
 
352
-switch ($action){
352
+switch ($action) {
353 353
     case 'edit_top':
354 354
         if ($action == 'edit_top') {
355 355
             $name = $topf;
356 356
             $open = $home_top;
357 357
         } else {
358 358
             $name = $newsf;
359
-            $open = @(string)file_get_contents($homep.$newsf.'_'.$lang.$ext);
359
+            $open = @(string) file_get_contents($homep.$newsf.'_'.$lang.$ext);
360 360
             $open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
361 361
         }
362 362
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 
367 367
         $default = array();
368 368
         $form = new FormValidator('configure_inscription_'.$action, 'post', api_get_self().'?action='.$action, '', array('style' => 'margin: 0px;'));
369
-        $renderer =& $form->defaultRenderer();
369
+        $renderer = & $form->defaultRenderer();
370 370
         $renderer->setHeaderTemplate('');
371 371
         $renderer->setFormTemplate('<form{attributes}><table border="0" cellpadding="5" cellspacing="0" width="100%">{content}</table></form>');
372 372
         $renderer->setCustomElementTemplate('<tr><td>{element}</td></tr>');
@@ -385,9 +385,9 @@  discard block
 block discarded – undo
385 385
 
386 386
         $open = '';
387 387
         if (file_exists($homep.$topf.'_'.$lang.$ext)) {
388
-            $open = @(string)file_get_contents($homep.$topf.'_'.$lang.$ext);
388
+            $open = @(string) file_get_contents($homep.$topf.'_'.$lang.$ext);
389 389
         } else {
390
-            $open = @(string)file_get_contents($homep.$topf.$ext);
390
+            $open = @(string) file_get_contents($homep.$topf.$ext);
391 391
         }
392 392
         $open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
393 393
         if (!empty($open)) {
Please login to merge, or discard this patch.
main/admin/legal_list.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 require_once __DIR__.'/../inc/global.inc.php';
11 11
 $this_section = SECTION_PLATFORM_ADMIN;
12 12
 api_protect_admin_script();
13
-$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
13
+$interbreadcrumb[] = array("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
14 14
 $tool_name = get_lang('TermsAndConditions');
15 15
 Display :: display_header($tool_name);
16 16
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 // action menu
20 20
 echo '<div class="actions">';
21 21
 echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/legal_add.php">'.
22
-    Display::return_icon('edit.gif',get_lang('EditTermsAndConditions'), '').get_lang('EditTermsAndConditions').'</a>&nbsp;&nbsp;';
22
+    Display::return_icon('edit.gif', get_lang('EditTermsAndConditions'), '').get_lang('EditTermsAndConditions').'</a>&nbsp;&nbsp;';
23 23
 echo '</div>';
24 24
 
25 25
 $legal_count = LegalManager::count();
Please login to merge, or discard this patch.