Completed
Pull Request — 1.11.x (#1458)
by José
138:44 queued 104:05
created
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 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/inc/lib/TicketManager.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1480,7 +1480,7 @@  discard block
 block discarded – undo
1480 1480
         ];
1481 1481
         Database::update($table, $newParams, ['id = ? ' => $ticketId]);
1482 1482
 
1483
-         self::sendNotification(
1483
+            self::sendNotification(
1484 1484
             $ticketId,
1485 1485
             $userId,
1486 1486
             get_lang('TicketUpdated'),
@@ -1901,9 +1901,9 @@  discard block
 block discarded – undo
1901 1901
         return $list;
1902 1902
     }
1903 1903
 
1904
-     /**
1905
-     * @return array
1906
-     */
1904
+        /**
1905
+         * @return array
1906
+         */
1907 1907
     public static function getPriorityList()
1908 1908
     {
1909 1909
         $projects = Database::getManager()->getRepository('ChamiloTicketBundle:Priority')->findAll();
Please login to merge, or discard this patch.
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -642,10 +642,10 @@  discard block
 block discarded – undo
642 642
     /**
643 643
      * Insert message between Users and Admins
644 644
      * @param $ticket_id
645
-     * @param $subject
646
-     * @param $content
645
+     * @param string $subject
646
+     * @param string $content
647 647
      * @param $file_attachments
648
-     * @param $user_id
648
+     * @param integer $user_id
649 649
      * @param string $status
650 650
      * @param bool $sendConfirmation
651 651
      * @return bool
@@ -744,9 +744,9 @@  discard block
 block discarded – undo
744 744
     /**
745 745
      * Attachment files when a message is sent
746 746
      * @param $file_attach
747
-     * @param $ticket_id
748
-     * @param $message_id
749
-     * @param $message_attch_id
747
+     * @param integer $ticket_id
748
+     * @param integer $message_id
749
+     * @param integer $message_attch_id
750 750
      * @return array
751 751
      */
752 752
     public static function save_message_attachment_file(
@@ -2006,7 +2006,7 @@  discard block
 block discarded – undo
2006 2006
     }
2007 2007
 
2008 2008
     /**
2009
-     * @param $id
2009
+     * @param integer $id
2010 2010
      * @return Project
2011 2011
      */
2012 2012
     public static function getProject($id)
@@ -2125,7 +2125,7 @@  discard block
 block discarded – undo
2125 2125
     }
2126 2126
 
2127 2127
     /**
2128
-     * @param $id
2128
+     * @param integer $id
2129 2129
      * @return Project
2130 2130
      */
2131 2131
     public static function getStatus($id)
@@ -2249,7 +2249,7 @@  discard block
 block discarded – undo
2249 2249
     }
2250 2250
 
2251 2251
     /**
2252
-     * @param $id
2252
+     * @param integer $id
2253 2253
      * @return Priority
2254 2254
      */
2255 2255
     public static function getPriority($id)
Please login to merge, or discard this patch.
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
         $sql = "SELECT id, name, description, total_tickets
79 79
                 FROM $table";
80 80
 
81
-        if (!in_array($direction, array('ASC','DESC'))) {
81
+        if (!in_array($direction, array('ASC', 'DESC'))) {
82 82
             $direction = 'ASC';
83 83
         }
84 84
         $column = intval($column);
85
-        $from 	= intval($from);
85
+        $from = intval($from);
86 86
         $numberItems = intval($numberItems);
87 87
 
88 88
         //$sql .= " ORDER BY col$column $direction ";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     public static function get_all_tickets_status()
240 240
     {
241 241
         $table_support_status = Database::get_main_table(TABLE_TICKET_STATUS);
242
-        $sql = "SELECT * FROM " . $table_support_status;
242
+        $sql = "SELECT * FROM ".$table_support_status;
243 243
         $result = Database::query($sql);
244 244
         $types = array();
245 245
         while ($row = Database::fetch_assoc($result)) {
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         $ticket_id = Database::insert($table_support_tickets, $params);
364 364
 
365 365
         if ($ticket_id) {
366
-            $ticket_code = "A" . str_pad($ticket_id, 11, '0', STR_PAD_LEFT);
366
+            $ticket_code = "A".str_pad($ticket_id, 11, '0', STR_PAD_LEFT);
367 367
 
368 368
             Display::addFlash(Display::return_message(
369 369
                 sprintf(
@@ -404,32 +404,32 @@  discard block
 block discarded – undo
404 404
             $helpDeskMessage =
405 405
                 '<table>
406 406
                         <tr>
407
-                            <td width="100px"><b>' . get_lang('User') . '</b></td>
408
-                            <td width="400px">' . $user['firstname']. ' ' . $user['lastname'] . '</td>
407
+                            <td width="100px"><b>' . get_lang('User').'</b></td>
408
+                            <td width="400px">' . $user['firstname'].' '.$user['lastname'].'</td>
409 409
                         </tr>
410 410
                         <tr>
411
-                            <td width="100px"><b>' . get_lang('Username') . '</b></td>
412
-                            <td width="400px">' . $user['username'] . '</td>
411
+                            <td width="100px"><b>' . get_lang('Username').'</b></td>
412
+                            <td width="400px">' . $user['username'].'</td>
413 413
                         </tr>
414 414
                         <tr>
415
-                            <td width="100px"><b>' . get_lang('Email') . '</b></td>
416
-                            <td width="400px">' . $user['email'] . '</td>
415
+                            <td width="100px"><b>' . get_lang('Email').'</b></td>
416
+                            <td width="400px">' . $user['email'].'</td>
417 417
                         </tr>
418 418
                         <tr>
419
-                            <td width="100px"><b>' . get_lang('Phone') . '</b></td>
420
-                            <td width="400px">' . $user['phone'] . '</td>
419
+                            <td width="100px"><b>' . get_lang('Phone').'</b></td>
420
+                            <td width="400px">' . $user['phone'].'</td>
421 421
                         </tr>
422 422
                         <tr>
423
-                            <td width="100px"><b>' . get_lang('Date') . '</b></td>
424
-                            <td width="400px">' . api_convert_and_format_date($now, DATE_TIME_FORMAT_LONG) . '</td>
423
+                            <td width="100px"><b>' . get_lang('Date').'</b></td>
424
+                            <td width="400px">' . api_convert_and_format_date($now, DATE_TIME_FORMAT_LONG).'</td>
425 425
                         </tr>
426 426
                         <tr>
427
-                            <td width="100px"><b>' . get_lang('Title') . '</b></td>
428
-                            <td width="400px">' . $subject . '</td>
427
+                            <td width="100px"><b>' . get_lang('Title').'</b></td>
428
+                            <td width="400px">' . $subject.'</td>
429 429
                         </tr>
430 430
                         <tr>
431
-                            <td width="100px"><b>' . get_lang('Description') . '</b></td>
432
-                            <td width="400px">' . $content . '</td>
431
+                            <td width="100px"><b>' . get_lang('Description').'</b></td>
432
+                            <td width="400px">' . $content.'</td>
433 433
                         </tr>
434 434
                     </table>';
435 435
 
@@ -666,10 +666,10 @@  discard block
 block discarded – undo
666 666
         $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
667 667
         $table_support_message_attachments = Database::get_main_table(TABLE_TICKET_MESSAGE_ATTACHMENTS);
668 668
         if ($sendConfirmation) {
669
-            $form = '<form action="ticket_details.php?ticket_id=' . $ticket_id . '" id="confirmticket" method="POST" >
670
-                         <p>' . get_lang('TicketWasThisAnswerSatisfying') . '</p>
671
-                         <button class="btn btn-primary responseyes" name="response" id="responseyes" value="1">' . get_lang('Yes') . '</button>
672
-                         <button class="btn btn-danger responseno" name="response" id="responseno" value="0">' . get_lang('No') . '</button>
669
+            $form = '<form action="ticket_details.php?ticket_id='.$ticket_id.'" id="confirmticket" method="POST" >
670
+                         <p>' . get_lang('TicketWasThisAnswerSatisfying').'</p>
671
+                         <button class="btn btn-primary responseyes" name="response" id="responseyes" value="1">' . get_lang('Yes').'</button>
672
+                         <button class="btn btn-danger responseno" name="response" id="responseno" value="0">' . get_lang('No').'</button>
673 673
                      </form>';
674 674
             $content .= $form;
675 675
 
@@ -770,11 +770,11 @@  discard block
 block discarded – undo
770 770
         } else {
771 771
             $new_file_name = uniqid('');
772 772
             $path_attachment = api_get_path(SYS_ARCHIVE_PATH);
773
-            $path_message_attach = $path_attachment . 'plugin_ticket_messageattch/';
773
+            $path_message_attach = $path_attachment.'plugin_ticket_messageattch/';
774 774
             if (!file_exists($path_message_attach)) {
775 775
                 @mkdir($path_message_attach, api_get_permissions_for_new_directories(), true);
776 776
             }
777
-            $new_path = $path_message_attach . $new_file_name;
777
+            $new_path = $path_message_attach.$new_file_name;
778 778
             if (is_uploaded_file($file_attach['tmp_name'])) {
779 779
                 @copy($file_attach['tmp_name'], $new_path);
780 780
             }
@@ -797,7 +797,7 @@  discard block
 block discarded – undo
797 797
                     '$ticket_id',
798 798
                     '$message_id',
799 799
                     '$message_attch_id',
800
-                    '" . $file_attach['size'] . "',
800
+                    '".$file_attach['size']."',
801 801
                     '$user_id',
802 802
                     '$now',
803 803
                     '$user_id',
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
             Database::query($sql);
807 807
 
808 808
             return array(
809
-                'path' => $path_message_attach . $safe_new_file_name,
809
+                'path' => $path_message_attach.$safe_new_file_name,
810 810
                 'filename' => $safe_file_name,
811 811
             );
812 812
         }
@@ -979,23 +979,23 @@  discard block
 block discarded – undo
979 979
             $unread = Database::fetch_object($result_unread)->unread;*/
980 980
 
981 981
             $userInfo = api_get_user_info($row['sys_insert_user_id']);
982
-            $hrefUser = $webPath . 'main/admin/user_information.php?user_id=' . $userInfo['user_id'];
982
+            $hrefUser = $webPath.'main/admin/user_information.php?user_id='.$userInfo['user_id'];
983 983
             $name = "<a href='$hrefUser'> {$userInfo['username']} </a>";
984 984
             $actions = '';
985 985
 
986 986
             if ($row['assigned_last_user'] != 0) {
987 987
                 $assignedUserInfo = api_get_user_info($row['assigned_last_user']);
988 988
                 if (!empty($assignedUserInfo)) {
989
-                    $hrefResp = $webPath . 'main/admin/user_information.php?user_id=' . $assignedUserInfo['user_id'];
989
+                    $hrefResp = $webPath.'main/admin/user_information.php?user_id='.$assignedUserInfo['user_id'];
990 990
                     $row['assigned_last_user'] = "<a href='$hrefResp'> {$assignedUserInfo['username']} </a>";
991 991
                 } else {
992 992
                     $row['assigned_last_user'] = get_lang('UnknownUser');
993 993
                 }
994 994
             } else {
995 995
                 if ($row['status_id'] !== self::STATUS_FORWARDED) {
996
-                    $row['assigned_last_user'] = '<span style="color:#ff0000;">' . get_lang('ToBeAssigned') . '</span>';
996
+                    $row['assigned_last_user'] = '<span style="color:#ff0000;">'.get_lang('ToBeAssigned').'</span>';
997 997
                 } else {
998
-                    $row['assigned_last_user'] = '<span style="color:#00ff00;">' . get_lang('MessageResent') . '</span>';
998
+                    $row['assigned_last_user'] = '<span style="color:#00ff00;">'.get_lang('MessageResent').'</span>';
999 999
                 }
1000 1000
             }
1001 1001
 
@@ -1018,13 +1018,13 @@  discard block
 block discarded – undo
1018 1018
             $row['col2'] = Display::tip(date_to_str_ago($row['col2']), api_get_local_time($row['col2']));
1019 1019
             if ($isAdmin) {
1020 1020
                 if ($row['priority_id'] === self::PRIORITY_HIGH && $row['status_id'] != self::STATUS_CLOSE) {
1021
-                    $actions .= '<img src="' . $webCodePath . 'img/exclamation.png" border="0" />';
1021
+                    $actions .= '<img src="'.$webCodePath.'img/exclamation.png" border="0" />';
1022 1022
                 }
1023 1023
                 $row['col0'] = Display::return_icon(
1024 1024
                         $img_source,
1025 1025
                         get_lang('Info')
1026 1026
                         ).
1027
-                    '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . $row['code'] . '</a>';
1027
+                    '<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.$row['code'].'</a>';
1028 1028
                 // @todo fix
1029 1029
                 /*if ($row['col7'] == 'PENDIENTE') {
1030 1030
                     $row['col7'] = '<span style="color: #f00; font-weight:bold;">' . $row['col7'] . '</span>';
@@ -1045,17 +1045,17 @@  discard block
 block discarded – undo
1045 1045
                 $row['col0'] = Display::return_icon(
1046 1046
                     $img_source,
1047 1047
                     get_lang('Info')
1048
-                ) . '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . $row['code'] . '</a>';
1048
+                ).'<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.$row['code'].'</a>';
1049 1049
                 $now = api_strtotime(api_get_utc_datetime());
1050 1050
                 $last_edit_date = api_strtotime($row['sys_lastedit_datetime']);
1051 1051
                 $dif = $now - $last_edit_date;
1052 1052
 
1053 1053
                 if ($dif > 172800 && $row['priority_id'] === self::PRIORITY_NORMAL && $row['status_id'] != self::STATUS_CLOSE) {
1054
-                    $actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'ticket/tickets.php?ticket_id=' . $row['ticket_id'] . '&amp;action=alert">
1055
-                                 <img src="' . Display::returnIconPath('exclamation.png') . '" border="0" /></a>';
1054
+                    $actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'ticket/tickets.php?ticket_id='.$row['ticket_id'].'&amp;action=alert">
1055
+                                 <img src="' . Display::returnIconPath('exclamation.png').'" border="0" /></a>';
1056 1056
                 }
1057 1057
                 if ($row['priority_id'] === self::PRIORITY_HIGH) {
1058
-                    $actions .= '<img src="' . Display::returnIconPath('admin_star.png') . '" border="0" />';
1058
+                    $actions .= '<img src="'.Display::returnIconPath('admin_star.png').'" border="0" />';
1059 1059
                 }
1060 1060
                 $ticket = array(
1061 1061
                     $row['col0'],
@@ -1071,9 +1071,9 @@  discard block
 block discarded – undo
1071 1071
                                 </a>';
1072 1072
             }*/
1073 1073
             if ($isAdmin) {
1074
-                $ticket['0'] .= '&nbsp;&nbsp;<a  href="javascript:void(0)" onclick="load_history_ticket(\'div_' . $row['ticket_id'] . '\',' . $row['ticket_id'] . ')">
1075
-					<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') . '"/>
1076
-					<div class="blackboard_hide" id="div_' . $row['ticket_id'] . '">&nbsp;&nbsp;</div>
1074
+                $ticket['0'] .= '&nbsp;&nbsp;<a  href="javascript:void(0)" onclick="load_history_ticket(\'div_'.$row['ticket_id'].'\','.$row['ticket_id'].')">
1075
+					<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').'"/>
1076
+					<div class="blackboard_hide" id="div_' . $row['ticket_id'].'">&nbsp;&nbsp;</div>
1077 1077
 					</a>&nbsp;&nbsp;';
1078 1078
             }
1079 1079
             $tickets[] = $ticket;
@@ -1308,8 +1308,8 @@  discard block
 block discarded – undo
1308 1308
                 }
1309 1309
 
1310 1310
                 $userInfo = api_get_user_info($row['sys_insert_user_id']);
1311
-                $row['user_url'] = '<a href="' . api_get_path(WEB_PATH) . 'main/admin/user_information.php?user_id=' . $userInfo['user_id'] . '">
1312
-                ' . $userInfo['complete_name']. '</a>';
1311
+                $row['user_url'] = '<a href="'.api_get_path(WEB_PATH).'main/admin/user_information.php?user_id='.$userInfo['user_id'].'">
1312
+                ' . $userInfo['complete_name'].'</a>';
1313 1313
                 $ticket['usuario'] = $userInfo;
1314 1314
                 $ticket['ticket'] = $row;
1315 1315
             }
@@ -1326,10 +1326,10 @@  discard block
 block discarded – undo
1326 1326
             while ($row = Database::fetch_assoc($result)) {
1327 1327
                 $message = $row;
1328 1328
                 $completeName = api_get_person_name($row['firstname'], $row['lastname']);
1329
-                $href = $webPath . 'main/admin/user_information.php?user_id=' . $row['user_id'];
1329
+                $href = $webPath.'main/admin/user_information.php?user_id='.$row['user_id'];
1330 1330
                 // Check if user is an admin
1331 1331
                 $sql_admin = "SELECT user_id FROM $admin_table
1332
-		                      WHERE user_id = '" . intval($message['user_id']) . "'
1332
+		                      WHERE user_id = '".intval($message['user_id'])."'
1333 1333
                               LIMIT 1";
1334 1334
                 $result_admin = Database::query($sql_admin);
1335 1335
                 $message['admin'] = false;
@@ -1341,12 +1341,12 @@  discard block
 block discarded – undo
1341 1341
                 $sql = "SELECT *
1342 1342
                         FROM $table_support_message_attachments
1343 1343
                         WHERE
1344
-                            message_id = " . $row['id'] . " AND
1344
+                            message_id = ".$row['id']." AND
1345 1345
                             ticket_id = '$ticket_id'  ";
1346 1346
                 $result_attach = Database::query($sql);
1347 1347
                 while ($row2 = Database::fetch_assoc($result_attach)) {
1348
-                    $archiveURL = $archiveURL = $webPath . "plugin/" . PLUGIN_NAME . '/src/download.php?ticket_id=' . $ticket_id . '&file=';
1349
-                    $row2['attachment_link'] = $attach_icon . '&nbsp;<a href="' . $archiveURL . $row2['path'] . '&title=' . $row2['filename'] . '">' . $row2['filename'] . '</a>&nbsp;(' . $row2['size'] . ')';
1348
+                    $archiveURL = $archiveURL = $webPath."plugin/".PLUGIN_NAME.'/src/download.php?ticket_id='.$ticket_id.'&file=';
1349
+                    $row2['attachment_link'] = $attach_icon.'&nbsp;<a href="'.$archiveURL.$row2['path'].'&title='.$row2['filename'].'">'.$row2['filename'].'</a>&nbsp;('.$row2['size'].')';
1350 1350
                     $message['attachments'][] = $row2;
1351 1351
                 }
1352 1352
                 $ticket['messages'][] = $message;
@@ -1370,10 +1370,10 @@  discard block
 block discarded – undo
1370 1370
         );
1371 1371
         $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
1372 1372
         $now = api_get_utc_datetime();
1373
-        $sql = "UPDATE " . $table_support_messages . "
1373
+        $sql = "UPDATE ".$table_support_messages."
1374 1374
                 SET status = 'LEI', 
1375
-                sys_lastedit_user_id ='" . api_get_user_id() . "',
1376
-                sys_lastedit_datetime ='" . $now . "'
1375
+                sys_lastedit_user_id ='" . api_get_user_id()."',
1376
+                sys_lastedit_datetime ='" . $now."'
1377 1377
                 WHERE ticket_id ='$ticket_id' ";
1378 1378
 
1379 1379
         if (api_is_platform_admin()) {
@@ -1492,10 +1492,10 @@  discard block
 block discarded – undo
1492 1492
         $user_id = intval($user_id);
1493 1493
 
1494 1494
         $now = api_get_utc_datetime();
1495
-        $sql = "UPDATE " . $table_support_tickets . " SET
1495
+        $sql = "UPDATE ".$table_support_tickets." SET
1496 1496
                 status_id = '$status_id',
1497 1497
                 sys_lastedit_user_id ='$user_id',
1498
-                sys_lastedit_datetime ='" . $now . "'
1498
+                sys_lastedit_datetime ='".$now."'
1499 1499
                 WHERE ticket_id ='$ticket_id'";
1500 1500
         $result = Database::query($sql);
1501 1501
 
@@ -1580,7 +1580,7 @@  discard block
 block discarded – undo
1580 1580
         $sql = "UPDATE $table_support_tickets SET
1581 1581
                     status_id = '".self::STATUS_CLOSE."',
1582 1582
                     sys_lastedit_user_id ='$user_id',
1583
-                    sys_lastedit_datetime ='" . $now . "',
1583
+                    sys_lastedit_datetime ='".$now."',
1584 1584
                     end_date ='$now'
1585 1585
                 WHERE id ='$ticket_id'";
1586 1586
         Database::query($sql);
@@ -1634,15 +1634,15 @@  discard block
 block discarded – undo
1634 1634
 
1635 1635
             if ($row['user_id'] != 0) {
1636 1636
                 $assignuser = api_get_user_info($row['user_id']);
1637
-                $row['assignuser'] = '<a href="' . $webpath . 'main/admin/user_information.php?user_id=' . $row['user_id'] . '"  target="_blank">' .
1638
-                $assignuser['username'] . '</a>';
1637
+                $row['assignuser'] = '<a href="'.$webpath.'main/admin/user_information.php?user_id='.$row['user_id'].'"  target="_blank">'.
1638
+                $assignuser['username'].'</a>';
1639 1639
             } else {
1640 1640
                 $row['assignuser'] = get_lang('Unassign');
1641 1641
             }
1642 1642
             $row['assigned_date'] = date_to_str_ago($row['assigned_date']);
1643 1643
             $insertuser = api_get_user_info($row['sys_insert_user_id']);
1644
-            $row['insertuser'] = '<a href="' . $webpath . 'main/admin/user_information.php?user_id=' . $row['sys_insert_user_id'] . '"  target="_blank">' .
1645
-                $insertuser['username'] . '</a>';
1644
+            $row['insertuser'] = '<a href="'.$webpath.'main/admin/user_information.php?user_id='.$row['sys_insert_user_id'].'"  target="_blank">'.
1645
+                $insertuser['username'].'</a>';
1646 1646
             $history[] = $row;
1647 1647
         }
1648 1648
 
@@ -1838,7 +1838,7 @@  discard block
 block discarded – undo
1838 1838
         while ($row = Database::fetch_assoc($result)) {
1839 1839
             if ($row['responsable'] != 0) {
1840 1840
                 $row['responsable'] = api_get_user_info($row['responsable']);
1841
-                $row['responsable'] = $row['responsable']['firstname'] . ' ' . $row['responsable']['lastname'];
1841
+                $row['responsable'] = $row['responsable']['firstname'].' '.$row['responsable']['lastname'];
1842 1842
             }
1843 1843
             $row['sys_insert_datetime'] = api_format_date(
1844 1844
                     $row['sys_insert_datetime'], '%d/%m/%y - %I:%M:%S %p'
Please login to merge, or discard this patch.
main/admin/legal_add.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
 
106 106
 if (isset($_POST['language'])) {
107 107
 
108
-	$form->addElement('static', Security::remove_XSS($_POST['language']));
109
-	$form->addElement('hidden', 'language', Security::remove_XSS($_POST['language']));
108
+    $form->addElement('static', Security::remove_XSS($_POST['language']));
109
+    $form->addElement('hidden', 'language', Security::remove_XSS($_POST['language']));
110 110
     $form->addHtmlEditor(
111 111
         'content',
112 112
         get_lang('Content'),
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
     $form->addElement('html', $buttons);
137 137
 
138 138
 } else {
139
-	$form->addElement('select_language', 'language', get_lang('Language'),null,array());
140
-	$form->addButtonSearch(get_lang('Load'), 'send');
139
+    $form->addElement('select_language', 'language', get_lang('Language'),null,array());
140
+    $form->addButtonSearch(get_lang('Load'), 'send');
141 141
 
142 142
 }
143 143
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         } else {
48 48
             $changes = '';
49 49
         }
50
-        $submit  = $values['send'];
50
+        $submit = $values['send'];
51 51
 
52 52
         $default['content'] = $content;
53 53
         if (isset($values['language'])) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 Display::addFlash(Display::return_message($message));
67 67
                 header('Location: legal_list.php?sec_token='.$tok);
68 68
                 exit();
69
-            } elseif ($submit=='preview') {
69
+            } elseif ($submit == 'preview') {
70 70
                 $defaults['type'] = $type;
71 71
                 $defaults['content'] = $content;
72 72
                 $defaults['changes'] = $changes;
@@ -137,13 +137,13 @@  discard block
 block discarded – undo
137 137
     $form->addElement('html', $buttons);
138 138
 
139 139
 } else {
140
-	$form->addElement('select_language', 'language', get_lang('Language'),null,array());
140
+	$form->addElement('select_language', 'language', get_lang('Language'), null, array());
141 141
 	$form->addButtonSearch(get_lang('Load'), 'send');
142 142
 
143 143
 }
144 144
 
145 145
 $tool_name = get_lang('AddTermsAndConditions');
146
-$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
146
+$interbreadcrumb[] = array("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
147 147
 Display :: display_header($tool_name);
148 148
 
149 149
 echo '<script>
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 '../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.