Completed
Push — 1.11.x ( a69e20...60645e )
by José
113:03 queued 73:51
created
main/ticket/report.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
 $htmlHeadXtra[] = '
22 22
 <script language="javascript">
23 23
 $(document).ready(function(){
24
-    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'yy-mm-dd'" . ' });
25
-    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'yy-mm-dd'" . ' });
24
+    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'yy-mm-dd'".' });
25
+    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'yy-mm-dd'".' });
26 26
 });
27 27
 function validate(){
28 28
     if( $("#keyword_start_date_start").val() != "" &&  $("#keyword_start_date_end").val() != ""){
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
  */
92 92
 function js_str($s)
93 93
 {
94
-    return '"' . addcslashes($s, "\0..\37\"\\") . '"';
94
+    return '"'.addcslashes($s, "\0..\37\"\\").'"';
95 95
 }
96 96
 /**
97 97
  * This function is to show the ticket form
@@ -101,29 +101,29 @@  discard block
 block discarded – undo
101 101
 {
102 102
     global $tools;
103 103
     echo '<div class="ticket-form">';
104
-    echo '<form enctype="multipart/form-data" action="' . api_get_self() . '" method="post" name="send_ticket" id="send_ticket"
104
+    echo '<form enctype="multipart/form-data" action="'.api_get_self().'" method="post" name="send_ticket" id="send_ticket"
105 105
  	onsubmit="return validate()" style="width:100%">';
106 106
     $select_course = '<div id="user_request" >
107 107
 	 </div>';
108 108
     echo $select_course;
109 109
     //select status
110 110
     $select_tool = '<div class="row"  >
111
-	<div class="label2"  >' . get_lang('Tool') .':</div>
111
+	<div class="label2"  >' . get_lang('Tool').':</div>
112 112
 	<div class="formw2">';
113 113
     $select_tool .= '<select style="width: 95%; " name = "tool" id="tool" >';
114 114
 
115 115
     foreach ($tools as $tool) {
116
-        $select_tool .= "<option value = '" . $tool['id'] . "' selected >" . $tool['name'] . "</option>";
116
+        $select_tool .= "<option value = '".$tool['id']."' selected >".$tool['name']."</option>";
117 117
     }
118 118
     $select_tool .= "</select>";
119 119
     $select_tool .= '</div></div>';
120 120
     echo $select_tool;
121 121
     echo '<div class="row">
122
-	      <div class="label2">' . get_lang('From') . ':</div>
122
+	      <div class="label2">' . get_lang('From').':</div>
123 123
               <div class="formw2"><input id="keyword_start_date_start" name="keyword_start_date_start" type="text"></div>
124 124
           </div>
125 125
 	  <div class="row">
126
-	      <div class="label2"> ' . get_lang('To') . '</div>
126
+	      <div class="label2"> ' . get_lang('To').'</div>
127 127
 	      <div class="formw2"><input id="keyword_start_date_end" name="keyword_start_date_end" type="text"></div>
128 128
 	  </div>';
129 129
     echo '</div>';
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 		<div class="label2">
132 132
 		</div>
133 133
 		<div class="formw2">
134
-			<button class="save" name="report" type="submit" id="btnsubmit" disabled="disabled">' . get_lang('CompleteReport') .'</button>
134
+			<button class="save" name="report" type="submit" id="btnsubmit" disabled="disabled">' . get_lang('CompleteReport').'</button>
135 135
 		</div>
136 136
 	</div>';
137 137
 }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     $sql = "SELECT COUNT(u.user_id) AS total_number_of_items FROM $user_table u";
147 147
     if ((api_is_platform_admin() || api_is_session_admin()) && api_get_multiple_access_url()) {
148 148
         $access_url_rel_user_table = Database :: get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);
149
-        $sql.= " INNER JOIN $access_url_rel_user_table url_rel_user ON (u.user_id=url_rel_user.user_id)";
149
+        $sql .= " INNER JOIN $access_url_rel_user_table url_rel_user ON (u.user_id=url_rel_user.user_id)";
150 150
     }
151 151
     if (isset($_GET['keyword'])) {
152 152
         $keyword = Database::escape_string(trim($_GET['keyword']));
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
     $webPath = api_get_path(WEB_PATH);
222 222
     while ($user = Database::fetch_row($res)) {
223 223
         $userPicture = UserManager::getUserPicture($user[0]);
224
-        $photo = '<img src="' . $userPicture . '" alt="' . api_get_person_name($user[2], $user[3]) . '" title="' . api_get_person_name($user[2], $user[3]) . '" />';
224
+        $photo = '<img src="'.$userPicture.'" alt="'.api_get_person_name($user[2], $user[3]).'" title="'.api_get_person_name($user[2], $user[3]).'" />';
225 225
         $user_id = $user[0];
226
-        $button = '<a  href="javascript:void(0)" onclick="load_course_list(\'div_' . $user_id . '\',' . $user_id . ')">
227
-					<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') . '"/>
226
+        $button = '<a  href="javascript:void(0)" onclick="load_course_list(\'div_'.$user_id.'\','.$user_id.')">
227
+					<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').'"/>
228 228
 					</a>&nbsp;&nbsp;';
229 229
         $users[] = array(
230 230
             $photo,
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
 Display::display_header('Reports');
244 244
 echo '<div class="actions">
245
-    <form action="' . api_get_self() . '" method="get" name="search_simple" id="search_simple">
245
+    <form action="' . api_get_self().'" method="get" name="search_simple" id="search_simple">
246 246
         <input name="user_id_request" id="user_id_request" type="hidden" value="">
247 247
         <span><label for="keyword">B&uacute;squeda del usuario: </label><input size="25" name="keyword" type="text" id="keyword"></span>
248 248
         <span><button class="search" name="submit" type="submit">Buscar</button></span>
@@ -276,12 +276,12 @@  discard block
 block discarded – undo
276 276
                 u.username , CONCAT(u.lastname, ' ', u.firstname) AS fullname,
277 277
                 DATE_SUB(access.access_date,INTERVAL 5 HOUR) AS  access_date,
278 278
                 c.title AS course, access_tool AS tool
279
-            FROM  " . Database::get_main_table(TABLE_STATISTIC_TRACK_E_ACCESS) . " access
280
-            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_USER) . " u ON access.access_user_id = u.user_id
281
-            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_COURSE) . " c ON access.c_id = c.id
282
-            WHERE access.c_id = " . $course_info['real_id'] . " AND u.user_id = $user_id ";
279
+            FROM  " . Database::get_main_table(TABLE_STATISTIC_TRACK_E_ACCESS)." access
280
+            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_USER)." u ON access.access_user_id = u.user_id
281
+            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_COURSE)." c ON access.c_id = c.id
282
+            WHERE access.c_id = " . $course_info['real_id']." AND u.user_id = $user_id ";
283 283
     if ($tool != '') {
284
-        $sql.="AND access.access_tool = '$tool' ";
284
+        $sql .= "AND access.access_tool = '$tool' ";
285 285
     }
286 286
 
287 287
     $start_date = Database::escape_string($_POST['keyword_start_date_start']);
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         if ($start_date != '')
293 293
             $sql .= "  access_date >= '$start_date'   ";
294 294
         if ($end_date != '') {
295
-            $sql = ($start_date == '') ? $sql : ($sql . " AND ");
295
+            $sql = ($start_date == '') ? $sql : ($sql." AND ");
296 296
             $sql .= "  access_date <= '$end_date'   ";
297 297
         }
298 298
     }
Please login to merge, or discard this patch.
main/ticket/update_report.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 if (!api_is_allowed_to_edit()) {
17 17
     Display::display_error_message($plugin->get_lang("DeniedAccess"));
18 18
 } else {
19
-    $sql = "UPDATE " . Database::get_main_table('rp_reporte_semanas') . "
19
+    $sql = "UPDATE ".Database::get_main_table('rp_reporte_semanas')."
20 20
         SET work_id = '$work_id', forum_id = '$forum_id'
21 21
         WHERE  id ='$rs_id'";
22 22
     Database::query($sql);
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.
main/forum/index.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
 if (!empty($gradebook) && $gradebook == 'view') {
66 66
     $interbreadcrumb[] = array(
67
-        'url' => '../gradebook/' . $_SESSION['gradebook_dest'],
67
+        'url' => '../gradebook/'.$_SESSION['gradebook_dest'],
68 68
         'name' => get_lang('ToolGradebook'),
69 69
     );
70 70
 }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     switch ($_GET['content']) {
80 80
         case 'forum':
81 81
             $interbreadcrumb[] = array(
82
-                'url' => 'index.php?search=' . $search_forum . '&' . api_get_cidreq(),
82
+                'url' => 'index.php?search='.$search_forum.'&'.api_get_cidreq(),
83 83
                 'name' => get_lang('Forum'),
84 84
             );
85 85
             $interbreadcrumb[] = array(
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             break;
90 90
         case 'forumcategory':
91 91
             $interbreadcrumb[] = array(
92
-                'url' => 'index.php?search=' . $search_forum . '&' . api_get_cidreq(),
92
+                'url' => 'index.php?search='.$search_forum.'&'.api_get_cidreq(),
93 93
                 'name' => get_lang('Forum'),
94 94
             );
95 95
             $interbreadcrumb[] = array(
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         . "&gradebook=&action=add_item&type=step&lp_id=$lp_id#resource_tab-5\">"
186 186
         . Display::return_icon(
187 187
             'back.png',
188
-            get_lang("BackTo") . ' ' . get_lang("LearningPaths"),
188
+            get_lang("BackTo").' '.get_lang("LearningPaths"),
189 189
             '',
190 190
             ICON_SIZE_MEDIUM
191 191
         )
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
 
198 198
 if (api_is_allowed_to_edit(false, true)) {
199 199
     echo '<a href="'
200
-        . api_get_self() . '?' . api_get_cidreq()
201
-        . '&action=add&content=forumcategory&lp_id=' . $lp_id . '"> ' .
200
+        . api_get_self().'?'.api_get_cidreq()
201
+        . '&action=add&content=forumcategory&lp_id='.$lp_id.'"> '.
202 202
         Display::return_icon(
203 203
             'new_folder.png', get_lang('AddForumCategory'), '', ICON_SIZE_MEDIUM
204 204
         )
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         );
249 249
 
250 250
         if (empty($sessionId) && !empty($forumCategory['session_name'])) {
251
-            $session_displayed = ' (' . Security::remove_XSS($forumCategory['session_name']) . ')';
251
+            $session_displayed = ' ('.Security::remove_XSS($forumCategory['session_name']).')';
252 252
         } else {
253 253
             $session_displayed = '';
254 254
         }
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         $html = '';
261 261
         $iconsEdit = '';
262 262
         $idCategory = $forumCategory['cat_id'];
263
-        $urlCategory = 'viewforumcategory.php?' . api_get_cidreq() . '&forumcategory=' . intval($idCategory);
263
+        $urlCategory = 'viewforumcategory.php?'.api_get_cidreq().'&forumcategory='.intval($idCategory);
264 264
         $titleCategory = Display::tag(
265 265
             'a',
266 266
             $forumCategory['cat_title'],
@@ -278,9 +278,9 @@  discard block
 block discarded – undo
278 278
                 !($forumCategory['session_id'] == 0 &&
279 279
                 intval($sessionId) != 0)
280 280
             ) {
281
-                $iconsEdit .= '<a href="' . api_get_self() . '?' . api_get_cidreq()
282
-                    . '&action=edit&content=forumcategory&id=' . intval($idCategory)
283
-                    . '">' . Display::return_icon(
281
+                $iconsEdit .= '<a href="'.api_get_self().'?'.api_get_cidreq()
282
+                    . '&action=edit&content=forumcategory&id='.intval($idCategory)
283
+                    . '">'.Display::return_icon(
284 284
                         'edit.png',
285 285
                         get_lang('Edit'),
286 286
                         array(),
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
                     )
289 289
                     . '</a>';
290 290
 
291
-                $iconsEdit .='<a href="' . api_get_self() . '?' . api_get_cidreq()
292
-                    . '&action=delete&content=forumcategory&id=' . intval($idCategory)
291
+                $iconsEdit .= '<a href="'.api_get_self().'?'.api_get_cidreq()
292
+                    . '&action=delete&content=forumcategory&id='.intval($idCategory)
293 293
                     . "\" onclick=\"javascript:if(!confirm('"
294 294
                     . addslashes(api_htmlentities(
295 295
                         get_lang('DeleteForumCategory'),
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                         ICON_SIZE_SMALL
304 304
                     )
305 305
                     . '</a>';
306
-                $iconsEdit .=  return_visible_invisible_icon(
306
+                $iconsEdit .= return_visible_invisible_icon(
307 307
                     'forumcategory',
308 308
                     strval(intval($idCategory)),
309 309
                     strval(intval($forumCategory['visibility']))
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
             array(),
338 338
             ICON_SIZE_MEDIUM
339 339
         );
340
-        $html .= '<h3>' . $icoCategory . $titleCategory . '</h3>';
340
+        $html .= '<h3>'.$icoCategory.$titleCategory.'</h3>';
341 341
 
342 342
         if ($descriptionCategory != '' && trim($descriptionCategory) != '&nbsp;') {
343 343
             $html .= '<div class="forum-description">'.$descriptionCategory.'</div>';
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
                         // Showing the image
409 409
                         if (!empty($forum['forum_image'])) {
410 410
 
411
-                            $image_path = api_get_path(WEB_COURSE_PATH). api_get_course_path(). '/upload/forum/images/'. $forum['forum_image'];
411
+                            $image_path = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/forum/images/'.$forum['forum_image'];
412 412
                             $image_size = api_getimagesize($image_path);
413 413
                             $img_attributes = '';
414 414
                             if (!empty($image_size)) {
@@ -455,15 +455,15 @@  discard block
 block discarded – undo
455 455
                                 30
456 456
                             );
457 457
                             $forum_title_group_addition = ' (<a href="../group/group_space.php?'
458
-                                . api_get_cidreq() . '&gidReq=' . $forum['forum_of_group']
459
-                                . '" class="forum_group_link">' . get_lang('GoTo') . ' ' . $group_title . '</a>)'
458
+                                . api_get_cidreq().'&gidReq='.$forum['forum_of_group']
459
+                                . '" class="forum_group_link">'.get_lang('GoTo').' '.$group_title.'</a>)'
460 460
                                 . $session_img;
461 461
                         } else {
462 462
                             $forum_title_group_addition = '';
463 463
                         }
464 464
 
465 465
                         if (empty($sessionId) && !empty($forum['session_name'])) {
466
-                            $session_displayed = ' (' . $forum['session_name'] . ')';
466
+                            $session_displayed = ' ('.$forum['session_name'].')';
467 467
                         } else {
468 468
                             $session_displayed = '';
469 469
                         }
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
                         $html .= '<div class="row">';
476 476
                         $html .= '<div class="col-md-6">';
477 477
                         $html .= '<div class="col-md-3">';
478
-                        $html .= '<div class="number-post">'.$forum_image.'<p>'.$number_threads.' ' . get_lang('ForumThreads') . '</p>'
478
+                        $html .= '<div class="number-post">'.$forum_image.'<p>'.$number_threads.' '.get_lang('ForumThreads').'</p>'
479 479
                             . '</div>';
480 480
                         $html .= '</div>';
481 481
 
@@ -491,9 +491,9 @@  discard block
 block discarded – undo
491 491
                             'a',
492 492
                             $forum['forum_title'],
493 493
                             [
494
-                                'href' => 'viewforum.php?' . api_get_cidreq()
495
-                                    . '&gidReq=' . intval($groupid)
496
-                                    . '&forum=' . intval($forum['forum_id']),
494
+                                'href' => 'viewforum.php?'.api_get_cidreq()
495
+                                    . '&gidReq='.intval($groupid)
496
+                                    . '&forum='.intval($forum['forum_id']),
497 497
                                 'class' => return_visible_invisible(strval(intval($forum['visibility'])))
498 498
                             ]
499 499
                         );
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
                             }
506 506
                         }
507 507
 
508
-                        $html .= '<h3 class="title">' . $iconForum . $linkForum . '</h3>';
508
+                        $html .= '<h3 class="title">'.$iconForum.$linkForum.'</h3>';
509 509
                         $html .= Display::tag(
510 510
                             'p',
511 511
                             Security::remove_XSS($forum['forum_comment']),
@@ -520,9 +520,9 @@  discard block
 block discarded – undo
520 520
 
521 521
                         // The number of topics and posts.
522 522
                         if ($forum['forum_of_group'] !== '0') {
523
-                            $newPost='';
523
+                            $newPost = '';
524 524
                             if (is_array($mywhatsnew_post_info) && !empty($mywhatsnew_post_info)) {
525
-                                $newPost = ' ' . Display::return_icon(
525
+                                $newPost = ' '.Display::return_icon(
526 526
                                     'alert.png',
527 527
                                     get_lang('Forum'),
528 528
                                     null,
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
                             }
534 534
                         } else {
535 535
                             if (is_array($mywhatsnew_post_info) && !empty($mywhatsnew_post_info)) {
536
-                                $newPost = ' ' . Display::return_icon(
536
+                                $newPost = ' '.Display::return_icon(
537 537
                                     'alert.png',
538 538
                                     get_lang('Forum'),
539 539
                                     null,
@@ -575,9 +575,9 @@  discard block
 block discarded – undo
575 575
                                     null,
576 576
                                     ICON_SIZE_TINY
577 577
                                 )
578
-                                . ' ' .
578
+                                . ' '.
579 579
                                 api_convert_and_format_date($forum['last_post_date'])
580
-                                . '<br /> ' . get_lang('By') . ' ' .
580
+                                . '<br /> '.get_lang('By').' '.
581 581
                                 display_user_link(
582 582
                                     $poster_id,
583 583
                                     $name,
@@ -591,13 +591,13 @@  discard block
 block discarded – undo
591 591
                         if (api_is_allowed_to_edit(false, true) &&
592 592
                             !($forum['session_id'] == 0 && intval($sessionId) != 0)
593 593
                         ) {
594
-                            $html .= '<a href="'.api_get_self() . '?' . api_get_cidreq()
595
-                                . '&action=edit&content=forum&id=' . $forum['forum_id'] . '">'
594
+                            $html .= '<a href="'.api_get_self().'?'.api_get_cidreq()
595
+                                . '&action=edit&content=forum&id='.$forum['forum_id'].'">'
596 596
                                 . Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL)
597 597
                                 . '</a>';
598
-                            $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq()
599
-                                . '&action=delete&content=forum&id=' . $forum['forum_id']
600
-                                . "\" onclick=\"javascript:if(!confirm('" . addslashes(
598
+                            $html .= '<a href="'.api_get_self().'?'.api_get_cidreq()
599
+                                . '&action=delete&content=forum&id='.$forum['forum_id']
600
+                                . "\" onclick=\"javascript:if(!confirm('".addslashes(
601 601
                                     api_htmlentities(get_lang('DeleteForum'), ENT_QUOTES)
602 602
                                 )
603 603
                                 . "')) return false;\">"
@@ -638,8 +638,8 @@  discard block
 block discarded – undo
638 638
                             !api_is_anonymous() &&
639 639
                             api_is_allowed_to_session_edit(false, true)
640 640
                         ) {
641
-                            $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq()
642
-                                . '&action=notify&content=forum&id=' . $forum['forum_id'] . '">'
641
+                            $html .= '<a href="'.api_get_self().'?'.api_get_cidreq()
642
+                                . '&action=notify&content=forum&id='.$forum['forum_id'].'">'
643 643
                                 . Display::return_icon($iconnotify, get_lang('NotifyMe'), null, ICON_SIZE_SMALL)
644 644
                                 . '</a>';
645 645
                         }
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
                 }
657 657
             }
658 658
         } else {
659
-            echo '<div class="alert alert-warning">' . get_lang('NoForumInThisCategory') . '</div>'
659
+            echo '<div class="alert alert-warning">'.get_lang('NoForumInThisCategory').'</div>'
660 660
                 . (api_is_allowed_to_edit(false, true) ? '<div>' : '</div>')
661 661
                 . '</div>';
662 662
         }
Please login to merge, or discard this patch.
plugin/azure_active_directory/src/AzureActiveDirectory.php 1 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/inc/lib/sortable_table.class.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             $params['spacesBeforeSeparator'] = '';
216 216
             $params['spacesAfterSeparator'] = '';
217 217
             $query_vars = array_keys($_GET);
218
-            $query_vars_needed = array ($this->param_prefix.'column', $this->param_prefix.'direction', $this->param_prefix.'per_page');
218
+            $query_vars_needed = array($this->param_prefix.'column', $this->param_prefix.'direction', $this->param_prefix.'per_page');
219 219
             if (count($this->additional_parameters) > 0) {
220 220
                 $query_vars_needed = array_merge($query_vars_needed, array_keys($this->additional_parameters));
221 221
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
         if (!$empty_table) {
287 287
             if (!empty($this->additional_parameters)) {
288
-                foreach($this->additional_parameters as $key => $value) {
288
+                foreach ($this->additional_parameters as $key => $value) {
289 289
                     $html .= '<input type="hidden" name ="'.Security::remove_XSS($key).'" value ="'.Security::remove_XSS($value).'" />';
290 290
                 }
291 291
             }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                     $html .= '<li><a data-action ="'.$action.'" href="#" onclick="javascript:action_click(this, \''.$table_id.'\');">'.$label.'</a></li>';
311 311
                 }
312 312
                 $html .= '</ul>';
313
-                $html .= '</div>';//btn-group
313
+                $html .= '</div>'; //btn-group
314 314
                 $html .= '</div>'; //toolbar
315 315
             } else {
316 316
                 $html .= $form;
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
             }
335 335
         }
336 336
 
337
-        return '<div class="table-responsive">' . $html . '</div>';
337
+        return '<div class="table-responsive">'.$html.'</div>';
338 338
     }
339 339
 
340 340
     /**
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 
389 389
             $html .= '<div class="clear"></div>';
390 390
             if (count($this->form_actions) > 0) {
391
-                $script= '<script>
391
+                $script = '<script>
392 392
                             /*<![CDATA[*/
393 393
                             function setCheckbox(value) {
394 394
                                  d = document.form_'.$this->table_name.';
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
             }
411 411
         }
412 412
         // Getting the items of the table
413
-        $items = $this->get_clean_html(false);    //no sort
413
+        $items = $this->get_clean_html(false); //no sort
414 414
 
415 415
         // Generation of style classes must be improved. Maybe we need a a table name to create style on the fly:
416 416
         // i.e: .whoisonline_table_grid_container instead of  .grid_container
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 
479 479
             $html .= '<div class="clear"></div>';
480 480
             if (count($this->form_actions) > 0) {
481
-                $script= '<script>
481
+                $script = '<script>
482 482
                             /*<![CDATA[*/
483 483
                             function setCheckbox(value) {
484 484
                                  d = document.form_'.$this->table_name.';
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
                     $counter = 0;
587 587
                     foreach ($row as $index => $rowInfo) {
588 588
                         if (!isset($this->columnsToHide[$index])) {
589
-                            $newRow[$counter] = $rowInfo ;
589
+                            $newRow[$counter] = $rowInfo;
590 590
                             $counter++;
591 591
                         }
592 592
                     }
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
         }
602 602
 
603 603
         if ($this->odd_even_rows_enabled == true) {
604
-            $this->altRowAttributes(0, array ('class' => 'row_odd'), array ('class' => 'row_even'), true);
604
+            $this->altRowAttributes(0, array('class' => 'row_odd'), array('class' => 'row_even'), true);
605 605
         }
606 606
 
607 607
         foreach ($this->th_attributes as $column => $attributes) {
@@ -663,11 +663,11 @@  discard block
 block discarded – undo
663 663
         }
664 664
         $result[] = '<select name="'.$this->param_prefix.'per_page" onchange="javascript: this.form.submit();">';
665 665
         for ($nr = 10; $nr <= min(50, $total_number_of_items); $nr += 10) {
666
-            $result[] = '<option value="'.$nr.'" '. ($nr == $this->per_page ? 'selected="selected"' : '').'>'.$nr.'</option>';
666
+            $result[] = '<option value="'.$nr.'" '.($nr == $this->per_page ? 'selected="selected"' : '').'>'.$nr.'</option>';
667 667
         }
668 668
         // @todo no limits
669 669
         //if ($total_number_of_items < 500) {
670
-            $result[] = '<option value="'.$total_number_of_items.'" '. ($total_number_of_items == $this->per_page ? 'selected="selected"' : '').'>'.api_ucfirst(get_lang('All')).'</option>';
670
+            $result[] = '<option value="'.$total_number_of_items.'" '.($total_number_of_items == $this->per_page ? 'selected="selected"' : '').'>'.api_ucfirst(get_lang('All')).'</option>';
671 671
         //}
672 672
         $result[] = '</select>';
673 673
         $result[] = '<noscript>';
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
      */
786 786
     public function get_additional_url_paramstring()
787 787
     {
788
-        $param_string_parts = array ();
788
+        $param_string_parts = array();
789 789
         if (is_array($this->additional_parameters) && count($this->additional_parameters) > 0) {
790 790
             foreach ($this->additional_parameters as $key => & $value) {
791 791
                 $param_string_parts[] = urlencode($key).'='.urlencode($value);
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
                 //$param[$tablename.'_direction'] = $_GET[$tablename.'_direction'];
799 799
                 $my_get_direction = $_GET[$tablename.'_direction'];
800 800
                 if (!in_array($my_get_direction, array('ASC', 'DESC'))) {
801
-                     $param[$tablename.'_direction'] =  'ASC';
801
+                     $param[$tablename.'_direction'] = 'ASC';
802 802
                 } else {
803 803
                     $param[$tablename.'_direction'] = $my_get_direction;
804 804
                 }
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
             if (isset($_GET[$tablename.'_column'])) {
813 813
                 $param[$tablename.'_column'] = intval($_GET[$tablename.'_column']);
814 814
             }
815
-            $param_string_parts = array ();
815
+            $param_string_parts = array();
816 816
             foreach ($param as $key => & $value) {
817 817
                 $param_string_parts[] = urlencode($key).'='.urlencode($value);
818 818
             }
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
         $param[$this->param_prefix.'page_nr'] = $this->page_nr;
834 834
         $param[$this->param_prefix.'per_page'] = $this->per_page;
835 835
         $param[$this->param_prefix.'column'] = $this->column;
836
-        $param_string_parts = array ();
836
+        $param_string_parts = array();
837 837
         foreach ($param as $key => & $value) {
838 838
             $param_string_parts[] = urlencode($key).'='.urlencode($value);
839 839
         }
Please login to merge, or discard this patch.
main/inc/lib/TicketManager.php 1 patch
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
         $sql = "SELECT id, name, description, total_tickets
76 76
                 FROM $table";
77 77
 
78
-        if (!in_array($direction, array('ASC','DESC'))) {
78
+        if (!in_array($direction, array('ASC', 'DESC'))) {
79 79
             $direction = 'ASC';
80 80
         }
81 81
         $column = intval($column);
82
-        $from 	= intval($from);
82
+        $from = intval($from);
83 83
         $numberItems = intval($numberItems);
84 84
 
85 85
         //$sql .= " ORDER BY col$column $direction ";
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     public static function get_all_tickets_status()
237 237
     {
238 238
         $table_support_status = Database::get_main_table(TABLE_TICKET_STATUS);
239
-        $sql = "SELECT * FROM " . $table_support_status;
239
+        $sql = "SELECT * FROM ".$table_support_status;
240 240
         $result = Database::query($sql);
241 241
         $types = array();
242 242
         while ($row = Database::fetch_assoc($result)) {
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
         $ticket_id = Database::insert($table_support_tickets, $params);
356 356
 
357 357
         if ($ticket_id) {
358
-            $ticket_code = "A" . str_pad($ticket_id, 11, '0', STR_PAD_LEFT);
358
+            $ticket_code = "A".str_pad($ticket_id, 11, '0', STR_PAD_LEFT);
359 359
 
360 360
             Display::addFlash(Display::return_message(
361 361
                 sprintf(
@@ -396,32 +396,32 @@  discard block
 block discarded – undo
396 396
             $helpDeskMessage =
397 397
                 '<table>
398 398
                         <tr>
399
-                            <td width="100px"><b>' . get_lang('User') . '</b></td>
400
-                            <td width="400px">' . $user['firstname']. ' ' . $user['lastname'] . '</td>
399
+                            <td width="100px"><b>' . get_lang('User').'</b></td>
400
+                            <td width="400px">' . $user['firstname'].' '.$user['lastname'].'</td>
401 401
                         </tr>
402 402
                         <tr>
403
-                            <td width="100px"><b>' . get_lang('Username') . '</b></td>
404
-                            <td width="400px">' . $user['username'] . '</td>
403
+                            <td width="100px"><b>' . get_lang('Username').'</b></td>
404
+                            <td width="400px">' . $user['username'].'</td>
405 405
                         </tr>
406 406
                         <tr>
407
-                            <td width="100px"><b>' . get_lang('Email') . '</b></td>
408
-                            <td width="400px">' . $user['email'] . '</td>
407
+                            <td width="100px"><b>' . get_lang('Email').'</b></td>
408
+                            <td width="400px">' . $user['email'].'</td>
409 409
                         </tr>
410 410
                         <tr>
411
-                            <td width="100px"><b>' . get_lang('Phone') . '</b></td>
412
-                            <td width="400px">' . $user['phone'] . '</td>
411
+                            <td width="100px"><b>' . get_lang('Phone').'</b></td>
412
+                            <td width="400px">' . $user['phone'].'</td>
413 413
                         </tr>
414 414
                         <tr>
415
-                            <td width="100px"><b>' . get_lang('Date') . '</b></td>
416
-                            <td width="400px">' . api_convert_and_format_date($now, DATE_TIME_FORMAT_LONG) . '</td>
415
+                            <td width="100px"><b>' . get_lang('Date').'</b></td>
416
+                            <td width="400px">' . api_convert_and_format_date($now, DATE_TIME_FORMAT_LONG).'</td>
417 417
                         </tr>
418 418
                         <tr>
419
-                            <td width="100px"><b>' . get_lang('Title') . '</b></td>
420
-                            <td width="400px">' . $subject . '</td>
419
+                            <td width="100px"><b>' . get_lang('Title').'</b></td>
420
+                            <td width="400px">' . $subject.'</td>
421 421
                         </tr>
422 422
                         <tr>
423
-                            <td width="100px"><b>' . get_lang('Description') . '</b></td>
424
-                            <td width="400px">' . $content . '</td>
423
+                            <td width="100px"><b>' . get_lang('Description').'</b></td>
424
+                            <td width="400px">' . $content.'</td>
425 425
                         </tr>
426 426
                     </table>';
427 427
 
@@ -656,10 +656,10 @@  discard block
 block discarded – undo
656 656
         $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
657 657
         $table_support_message_attachments = Database::get_main_table(TABLE_TICKET_MESSAGE_ATTACHMENTS);
658 658
         if ($sendConfirmation) {
659
-            $form = '<form action="ticket_details.php?ticket_id=' . $ticket_id . '" id="confirmticket" method="POST" >
660
-                         <p>' . get_lang('TicketWasThisAnswerSatisfying') . '</p>
661
-                         <button class="btn btn-primary responseyes" name="response" id="responseyes" value="1">' . get_lang('Yes') . '</button>
662
-                         <button class="btn btn-danger responseno" name="response" id="responseno" value="0">' . get_lang('No') . '</button>
659
+            $form = '<form action="ticket_details.php?ticket_id='.$ticket_id.'" id="confirmticket" method="POST" >
660
+                         <p>' . get_lang('TicketWasThisAnswerSatisfying').'</p>
661
+                         <button class="btn btn-primary responseyes" name="response" id="responseyes" value="1">' . get_lang('Yes').'</button>
662
+                         <button class="btn btn-danger responseno" name="response" id="responseno" value="0">' . get_lang('No').'</button>
663 663
                      </form>';
664 664
             $content .= $form;
665 665
 
@@ -760,11 +760,11 @@  discard block
 block discarded – undo
760 760
         } else {
761 761
             $new_file_name = uniqid('');
762 762
             $path_attachment = api_get_path(SYS_ARCHIVE_PATH);
763
-            $path_message_attach = $path_attachment . 'plugin_ticket_messageattch/';
763
+            $path_message_attach = $path_attachment.'plugin_ticket_messageattch/';
764 764
             if (!file_exists($path_message_attach)) {
765 765
                 @mkdir($path_message_attach, api_get_permissions_for_new_directories(), true);
766 766
             }
767
-            $new_path = $path_message_attach . $new_file_name;
767
+            $new_path = $path_message_attach.$new_file_name;
768 768
             if (is_uploaded_file($file_attach['tmp_name'])) {
769 769
                 @copy($file_attach['tmp_name'], $new_path);
770 770
             }
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
                     '$ticket_id',
788 788
                     '$message_id',
789 789
                     '$message_attch_id',
790
-                    '" . $file_attach['size'] . "',
790
+                    '".$file_attach['size']."',
791 791
                     '$user_id',
792 792
                     '$now',
793 793
                     '$user_id',
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
             Database::query($sql);
797 797
 
798 798
             return array(
799
-                'path' => $path_message_attach . $safe_new_file_name,
799
+                'path' => $path_message_attach.$safe_new_file_name,
800 800
                 'filename' => $safe_file_name,
801 801
             );
802 802
         }
@@ -999,23 +999,23 @@  discard block
 block discarded – undo
999 999
             $unread = Database::fetch_object($result_unread)->unread;*/
1000 1000
 
1001 1001
             $userInfo = api_get_user_info($row['sys_insert_user_id']);
1002
-            $hrefUser = $webPath . 'main/admin/user_information.php?user_id=' . $userInfo['user_id'];
1002
+            $hrefUser = $webPath.'main/admin/user_information.php?user_id='.$userInfo['user_id'];
1003 1003
             $name = "<a href='$hrefUser'> {$userInfo['username']} </a>";
1004 1004
             $actions = '';
1005 1005
 
1006 1006
             if ($row['assigned_last_user'] != 0) {
1007 1007
                 $assignedUserInfo = api_get_user_info($row['assigned_last_user']);
1008 1008
                 if (!empty($assignedUserInfo)) {
1009
-                    $hrefResp = $webPath . 'main/admin/user_information.php?user_id=' . $assignedUserInfo['user_id'];
1009
+                    $hrefResp = $webPath.'main/admin/user_information.php?user_id='.$assignedUserInfo['user_id'];
1010 1010
                     $row['assigned_last_user'] = "<a href='$hrefResp'> {$assignedUserInfo['username']} </a>";
1011 1011
                 } else {
1012 1012
                     $row['assigned_last_user'] = get_lang('UnknownUser');
1013 1013
                 }
1014 1014
             } else {
1015 1015
                 if ($row['status_id'] !== self::STATUS_FORWARDED) {
1016
-                    $row['assigned_last_user'] = '<span style="color:#ff0000;">' . get_lang('ToBeAssigned') . '</span>';
1016
+                    $row['assigned_last_user'] = '<span style="color:#ff0000;">'.get_lang('ToBeAssigned').'</span>';
1017 1017
                 } else {
1018
-                    $row['assigned_last_user'] = '<span style="color:#00ff00;">' . get_lang('MessageResent') . '</span>';
1018
+                    $row['assigned_last_user'] = '<span style="color:#00ff00;">'.get_lang('MessageResent').'</span>';
1019 1019
                 }
1020 1020
             }
1021 1021
 
@@ -1037,11 +1037,11 @@  discard block
 block discarded – undo
1037 1037
             $row['col2'] = api_get_local_time($row['col2']);
1038 1038
             if ($isAdmin) {
1039 1039
                 if ($row['priority_id'] === self::PRIORITY_HIGH && $row['status_id'] != self::STATUS_CLOSE) {
1040
-                    $actions .= '<img src="' . $webCodePath . 'img/exclamation.png" border="0" />';
1040
+                    $actions .= '<img src="'.$webCodePath.'img/exclamation.png" border="0" />';
1041 1041
                 }
1042 1042
                 $row['col0'] = Display::return_icon(
1043 1043
                                 $img_source, get_lang('Info')
1044
-                        ) . '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . $row['code'] . '</a>';
1044
+                        ).'<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.$row['code'].'</a>';
1045 1045
                 // @todo fix
1046 1046
                 /*if ($row['col7'] == 'PENDIENTE') {
1047 1047
                     $row['col7'] = '<span style="color: #f00; font-weight:bold;">' . $row['col7'] . '</span>';
@@ -1062,17 +1062,17 @@  discard block
 block discarded – undo
1062 1062
                 $row['col0'] = Display::return_icon(
1063 1063
                         $img_source,
1064 1064
                         get_lang('Info')
1065
-                    ) . '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . $row['code'] . '</a>';
1065
+                    ).'<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.$row['code'].'</a>';
1066 1066
                 $now = api_strtotime(api_get_utc_datetime());
1067 1067
                 $last_edit_date = api_strtotime($row['sys_lastedit_datetime']);
1068 1068
                 $dif = $now - $last_edit_date;
1069 1069
 
1070 1070
                 if ($dif > 172800 && $row['priority_id'] === self::PRIORITY_NORMAL && $row['status_id'] != self::STATUS_CLOSE) {
1071
-                    $actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'ticket/tickets.php?ticket_id=' . $row['ticket_id'] . '&amp;action=alert">
1072
-                                 <img src="' . Display::returnIconPath('exclamation.png') . '" border="0" /></a>';
1071
+                    $actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'ticket/tickets.php?ticket_id='.$row['ticket_id'].'&amp;action=alert">
1072
+                                 <img src="' . Display::returnIconPath('exclamation.png').'" border="0" /></a>';
1073 1073
                 }
1074 1074
                 if ($row['priority_id'] === self::PRIORITY_HIGH) {
1075
-                    $actions .= '<img src="' . Display::returnIconPath('admin_star.png') . '" border="0" />';
1075
+                    $actions .= '<img src="'.Display::returnIconPath('admin_star.png').'" border="0" />';
1076 1076
                 }
1077 1077
                 $ticket = array(
1078 1078
                     $row['col0'],
@@ -1088,9 +1088,9 @@  discard block
 block discarded – undo
1088 1088
                                 </a>';
1089 1089
             }*/
1090 1090
             if ($isAdmin) {
1091
-                $ticket['0'] .= '&nbsp;&nbsp;<a  href="javascript:void(0)" onclick="load_history_ticket(\'div_' . $row['ticket_id'] . '\',' . $row['ticket_id'] . ')">
1092
-					<img onclick="load_course_list(\'div_' . $row['ticket_id'] . '\',' . $row['ticket_id'] . ')" onmouseover="clear_course_list (\'div_' . $row['ticket_id'] . '\')" src="' . Display::returnIconPath('history.gif') . '" title="' . get_lang('Historial') . '" alt="' . get_lang('Historial') . '"/>
1093
-					<div class="blackboard_hide" id="div_' . $row['ticket_id'] . '">&nbsp;&nbsp;</div>
1091
+                $ticket['0'] .= '&nbsp;&nbsp;<a  href="javascript:void(0)" onclick="load_history_ticket(\'div_'.$row['ticket_id'].'\','.$row['ticket_id'].')">
1092
+					<img onclick="load_course_list(\'div_' . $row['ticket_id'].'\','.$row['ticket_id'].')" onmouseover="clear_course_list (\'div_'.$row['ticket_id'].'\')" src="'.Display::returnIconPath('history.gif').'" title="'.get_lang('Historial').'" alt="'.get_lang('Historial').'"/>
1093
+					<div class="blackboard_hide" id="div_' . $row['ticket_id'].'">&nbsp;&nbsp;</div>
1094 1094
 					</a>&nbsp;&nbsp;';
1095 1095
             }
1096 1096
             $tickets[] = $ticket;
@@ -1324,8 +1324,8 @@  discard block
 block discarded – undo
1324 1324
                 }
1325 1325
 
1326 1326
                 $userInfo = api_get_user_info($row['sys_insert_user_id']);
1327
-                $row['user_url'] = '<a href="' . api_get_path(WEB_PATH) . 'main/admin/user_information.php?user_id=' . $userInfo['user_id'] . '">
1328
-                ' . $userInfo['complete_name']. '</a>';
1327
+                $row['user_url'] = '<a href="'.api_get_path(WEB_PATH).'main/admin/user_information.php?user_id='.$userInfo['user_id'].'">
1328
+                ' . $userInfo['complete_name'].'</a>';
1329 1329
                 $ticket['usuario'] = $userInfo;
1330 1330
                 $ticket['ticket'] = $row;
1331 1331
             }
@@ -1342,10 +1342,10 @@  discard block
 block discarded – undo
1342 1342
             while ($row = Database::fetch_assoc($result)) {
1343 1343
                 $message = $row;
1344 1344
                 $completeName = api_get_person_name($row['firstname'], $row['lastname']);
1345
-                $href = $webPath . 'main/admin/user_information.php?user_id=' . $row['user_id'];
1345
+                $href = $webPath.'main/admin/user_information.php?user_id='.$row['user_id'];
1346 1346
                 // Check if user is an admin
1347 1347
                 $sql_admin = "SELECT user_id FROM $admin_table
1348
-		                      WHERE user_id = '" . intval($message['user_id']) . "'
1348
+		                      WHERE user_id = '".intval($message['user_id'])."'
1349 1349
                               LIMIT 1";
1350 1350
                 $result_admin = Database::query($sql_admin);
1351 1351
                 $message['admin'] = false;
@@ -1357,12 +1357,12 @@  discard block
 block discarded – undo
1357 1357
                 $sql = "SELECT *
1358 1358
                         FROM $table_support_message_attachments
1359 1359
                         WHERE
1360
-                            message_id = " . $row['id'] . " AND
1360
+                            message_id = ".$row['id']." AND
1361 1361
                             ticket_id = '$ticket_id'  ";
1362 1362
                 $result_attach = Database::query($sql);
1363 1363
                 while ($row2 = Database::fetch_assoc($result_attach)) {
1364
-                    $archiveURL = $archiveURL = $webPath . "plugin/" . PLUGIN_NAME . '/src/download.php?ticket_id=' . $ticket_id . '&file=';
1365
-                    $row2['attachment_link'] = $attach_icon . '&nbsp;<a href="' . $archiveURL . $row2['path'] . '&title=' . $row2['filename'] . '">' . $row2['filename'] . '</a>&nbsp;(' . $row2['size'] . ')';
1364
+                    $archiveURL = $archiveURL = $webPath."plugin/".PLUGIN_NAME.'/src/download.php?ticket_id='.$ticket_id.'&file=';
1365
+                    $row2['attachment_link'] = $attach_icon.'&nbsp;<a href="'.$archiveURL.$row2['path'].'&title='.$row2['filename'].'">'.$row2['filename'].'</a>&nbsp;('.$row2['size'].')';
1366 1366
                     $message['attachments'][] = $row2;
1367 1367
                 }
1368 1368
                 $ticket['messages'][] = $message;
@@ -1386,10 +1386,10 @@  discard block
 block discarded – undo
1386 1386
         );
1387 1387
         $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
1388 1388
         $now = api_get_utc_datetime();
1389
-        $sql = "UPDATE " . $table_support_messages . "
1389
+        $sql = "UPDATE ".$table_support_messages."
1390 1390
                 SET status = 'LEI', 
1391
-                sys_lastedit_user_id ='" . api_get_user_id() . "',
1392
-                sys_lastedit_datetime ='" . $now . "'
1391
+                sys_lastedit_user_id ='" . api_get_user_id()."',
1392
+                sys_lastedit_datetime ='" . $now."'
1393 1393
                 WHERE ticket_id ='$ticket_id' ";
1394 1394
 
1395 1395
         if (api_is_platform_admin()) {
@@ -1508,10 +1508,10 @@  discard block
 block discarded – undo
1508 1508
         $user_id = intval($user_id);
1509 1509
 
1510 1510
         $now = api_get_utc_datetime();
1511
-        $sql = "UPDATE " . $table_support_tickets . " SET
1511
+        $sql = "UPDATE ".$table_support_tickets." SET
1512 1512
                 status_id = '$status_id',
1513 1513
                 sys_lastedit_user_id ='$user_id',
1514
-                sys_lastedit_datetime ='" . $now . "'
1514
+                sys_lastedit_datetime ='".$now."'
1515 1515
                 WHERE ticket_id ='$ticket_id'";
1516 1516
         $result = Database::query($sql);
1517 1517
 
@@ -1596,7 +1596,7 @@  discard block
 block discarded – undo
1596 1596
         $sql = "UPDATE $table_support_tickets SET
1597 1597
                     status_id = '".self::STATUS_CLOSE."',
1598 1598
                     sys_lastedit_user_id ='$user_id',
1599
-                    sys_lastedit_datetime ='" . $now . "',
1599
+                    sys_lastedit_datetime ='".$now."',
1600 1600
                     end_date ='$now'
1601 1601
                 WHERE id ='$ticket_id'";
1602 1602
         Database::query($sql);
@@ -1656,8 +1656,8 @@  discard block
 block discarded – undo
1656 1656
             $row['assigned_date'] = api_convert_and_format_date(
1657 1657
                 api_get_local_time($row['assigned_date']), '%d/%m/%y-%H:%M:%S', _api_get_timezone()
1658 1658
             );
1659
-            $row['assignuser'] = $row['user_id'] != 0 ? ('<a href="' . $webpath . 'main/admin/user_information.php?user_id=' . $row['user_id'] . '"  target="_blank">' . $assignuser['username'] . '</a>') : get_lang('Unassign');
1660
-            $row['insertuser'] = '<a href="' . $webpath . 'main/admin/user_information.php?user_id=' . $row['sys_insert_user_id'] . '"  target="_blank">' . $insertuser['username'] . '</a>';
1659
+            $row['assignuser'] = $row['user_id'] != 0 ? ('<a href="'.$webpath.'main/admin/user_information.php?user_id='.$row['user_id'].'"  target="_blank">'.$assignuser['username'].'</a>') : get_lang('Unassign');
1660
+            $row['insertuser'] = '<a href="'.$webpath.'main/admin/user_information.php?user_id='.$row['sys_insert_user_id'].'"  target="_blank">'.$insertuser['username'].'</a>';
1661 1661
             $history[] = $row;
1662 1662
         }
1663 1663
 
@@ -1853,7 +1853,7 @@  discard block
 block discarded – undo
1853 1853
         while ($row = Database::fetch_assoc($result)) {
1854 1854
             if ($row['responsable'] != 0) {
1855 1855
                 $row['responsable'] = api_get_user_info($row['responsable']);
1856
-                $row['responsable'] = $row['responsable']['firstname'] . ' ' . $row['responsable']['lastname'];
1856
+                $row['responsable'] = $row['responsable']['firstname'].' '.$row['responsable']['lastname'];
1857 1857
             }
1858 1858
             $row['sys_insert_datetime'] = api_format_date(
1859 1859
                     $row['sys_insert_datetime'], '%d/%m/%y - %I:%M:%S %p'
Please login to merge, or discard this patch.