Completed
Push — master ( 284145...c35c76 )
by Michael
06:33
created
view_day.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_DAY, 'file' => _EXTCAL_FILE_DAY);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
13
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
13
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
14 14
 /* ========================================================================== */
15 15
 
16 16
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     'cat'          => $cat,
35 35
     'externalKeys' => 'cat_id',
36 36
 );
37
-$events   = $eventHandler->getEventsOnPeriode($criteres);
37
+$events = $eventHandler->getEventsOnPeriode($criteres);
38 38
 /**********************************************************************/
39 39
 $eventsArray = $events;
40 40
 
@@ -80,21 +80,21 @@  discard block
 block discarded – undo
80 80
 
81 81
 $navig = array(
82 82
     'prev' => array(
83
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&amp;month=' . $pDayCalObj->thisMonth() . '&amp;day=' . $pDayCalObj->thisDay(),
83
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&amp;month='.$pDayCalObj->thisMonth().'&amp;day='.$pDayCalObj->thisDay(),
84 84
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp()),
85 85
     ),
86 86
     'this' => array(
87
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&amp;month=' . $dayCalObj->thisMonth() . '&amp;day=' . $dayCalObj->thisDay(),
87
+        'uri'  => 'year='.$dayCalObj->thisYear().'&amp;month='.$dayCalObj->thisMonth().'&amp;day='.$dayCalObj->thisDay(),
88 88
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp()),
89 89
     ),
90 90
     'next' => array(
91
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&amp;month=' . $nDayCalObj->thisMonth() . '&amp;day=' . $nDayCalObj->thisDay(),
91
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&amp;month='.$nDayCalObj->thisMonth().'&amp;day='.$nDayCalObj->thisDay(),
92 92
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()),
93 93
     ),
94 94
 );
95 95
 
96 96
 // Title of the page
97
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
97
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
98 98
 
99 99
 // Assigning navig data to the template
100 100
 $xoopsTpl->assign('navig', $navig);
@@ -153,4 +153,4 @@  discard block
 block discarded – undo
153 153
 $xoopsTpl->assign('lang', $lang);
154 154
 $xoopsTpl->assign('view', 'day');
155 155
 
156
-include XOOPS_ROOT_PATH . '/footer.php';
156
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_agenda-week.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_AGENDA_WEEK, 'file' => _EXTCAL_FILE_AGENDA_WEEK);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
13
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
13
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
14 14
 
15 15
 // Validate the date (day, month and year)
16 16
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     'nbJours'      => $nbJours,
50 50
     'externalKeys' => 'cat_id',
51 51
 );
52
-$events   = $eventHandler->getEventsOnPeriode($criteres);
52
+$events = $eventHandler->getEventsOnPeriode($criteres);
53 53
 /**********************************************************************/
54 54
 $eventsArray = $events;
55 55
 // Formating date
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 //-------------------------------------------------------------------
82 82
 
83 83
 //$params['colJourWidth'] = (int)((((500-50)/$nbJours)/500*100)+.5);
84
-$params['colJourWidth'] = (int)((((500 - 50) / $nbJours) / 500 * 100) + .6);
84
+$params['colJourWidth'] = (int) ((((500 - 50) / $nbJours) / 500 * 100) + .6);
85 85
 //  echo "agenda_week : {$dayTS}<br>";
86 86
 $tAgenda = agenda_getEvents($eventsArray, $dayTS, $hStart, $hEnd, $mTranche, $nbJours);
87 87
 //$exp = print_r($eventsArray, true);
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 
104 104
 $navig = array(
105 105
     'prev' => array(
106
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
106
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
107 107
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
108 108
     ),
109 109
     'this' => array(
110
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
110
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
111 111
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()),
112 112
     ),
113 113
     'next' => array(
114
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
114
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
115 115
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
116 116
     ),
117 117
 );
118 118
 
119 119
 // Title of the page
120
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
120
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
121 121
 
122 122
 // Assigning navig data to the template
123 123
 $xoopsTpl->assign('navig', $navig);
@@ -158,4 +158,4 @@  discard block
 block discarded – undo
158 158
 $xoopsTpl->assign('lang', $lang);
159 159
 $xoopsTpl->assign('view', 'agendaweek');
160 160
 
161
-include XOOPS_ROOT_PATH . '/footer.php';
161
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5 5
 //modif JJD
6
-include_once __DIR__ . '/include/constantes.php';
6
+include_once __DIR__.'/include/constantes.php';
7 7
 
8 8
 header("Location: {$xoopsModuleConfig['start_page']}");
Please login to merge, or discard this patch.
view_month.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_MONTH, 'file' => _EXTCAL_FILE_MONTH);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
13 13
 /* ========================================================================== */
14 14
 
15 15
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     'cat'          => $cat,
32 32
     'externalKeys' => 'cat_id',
33 33
 );
34
-$events   = $eventHandler->getEventsOnPeriode($criteres);
34
+$events = $eventHandler->getEventsOnPeriode($criteres);
35 35
 /**********************************************************************/
36 36
 $eventsArray = $events;
37 37
 
@@ -88,21 +88,21 @@  discard block
 block discarded – undo
88 88
 $nMonthCalObj = $monthCalObj->nextMonth('object');
89 89
 $navig        = array(
90 90
     'prev' => array(
91
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
91
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
92 92
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
93 93
     ),
94 94
     'this' => array(
95
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
95
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
96 96
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
97 97
     ),
98 98
     'next' => array(
99
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
99
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
100 100
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
101 101
     ),
102 102
 );
103 103
 
104 104
 // Title of the page
105
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
105
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
106 106
 
107 107
 // Assigning navig data to the template
108 108
 $xoopsTpl->assign('navig', $navig);
@@ -159,4 +159,4 @@  discard block
 block discarded – undo
159 159
 $xoopsTpl->assign('lang', $lang);
160 160
 $xoopsTpl->assign('view', 'month');
161 161
 
162
-include XOOPS_ROOT_PATH . '/footer.php';
162
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_delete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
 //  along with this program; if not, write to the Free Software              //
25 25
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26 26
 //  ------------------------------------------------------------------------ //
27
-include __DIR__ . '/../../mainfile.php';
28
-include XOOPS_ROOT_PATH . '/include/comment_delete.php';
27
+include __DIR__.'/../../mainfile.php';
28
+include XOOPS_ROOT_PATH.'/include/comment_delete.php';
Please login to merge, or discard this patch.
download_attachement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 
6 6
 if (!isset($_GET['file'])) {
7 7
     $fileId = 0;
8 8
 } else {
9
-    $fileId = (int)$_GET['file'];
9
+    $fileId = (int) $_GET['file'];
10 10
 }
11 11
 /** @var ExtcalFileHandler $fileHandler */
12 12
 $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
13 13
 
14 14
 $file = $fileHandler->getFile($fileId);
15 15
 
16
-header('Content-Type: ' . $file->getVar('file_mimetype') . '');
17
-header('Content-Disposition: attachment; filename="' . $file->getVar('file_nicename') . '"');
16
+header('Content-Type: '.$file->getVar('file_mimetype').'');
17
+header('Content-Disposition: attachment; filename="'.$file->getVar('file_nicename').'"');
18 18
 
19
-readfile(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name'));
19
+readfile(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name'));
Please login to merge, or discard this patch.
view_year.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_YEAR, 'file' => _EXTCAL_FILE_YEAR);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$cat  = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$cat  = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
12 12
 
13 13
 // Getting eXtCal object's handler
14 14
 $catHandler   = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     'cat'          => $cat,
37 37
     'externalKeys' => 'cat_id',
38 38
 );
39
-$events   = $eventHandler->getEventsOnPeriode($criteres);
39
+$events = $eventHandler->getEventsOnPeriode($criteres);
40 40
 /**********************************************************************/
41 41
 $eventsArray = $events;
42 42
 // Formating date
@@ -80,21 +80,21 @@  discard block
 block discarded – undo
80 80
 // Making navig data
81 81
 $navig = array(
82 82
     'prev' => array(
83
-        'uri'  => 'year=' . $prevYear,
83
+        'uri'  => 'year='.$prevYear,
84 84
         'name' => $prevYear,
85 85
     ),
86 86
     'this' => array(
87
-        'uri'  => 'year=' . $year,
87
+        'uri'  => 'year='.$year,
88 88
         'name' => $year,
89 89
     ),
90 90
     'next' => array(
91
-        'uri'  => 'year=' . $nexYear,
91
+        'uri'  => 'year='.$nexYear,
92 92
         'name' => $nexYear,
93 93
     ),
94 94
 );
95 95
 
96 96
 // Title of the page
97
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
97
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
98 98
 
99 99
 // Assigning navig data to the template
100 100
 $xoopsTpl->assign('navig', $navig);
@@ -148,4 +148,4 @@  discard block
 block discarded – undo
148 148
 $xoopsTpl->assign('lang', $lang);
149 149
 $xoopsTpl->assign('view', 'year');
150 150
 
151
-include XOOPS_ROOT_PATH . '/footer.php';
151
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
event_member.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@
 block discarded – undo
59 59
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
60 60
             } else {
61 61
                 $eventMemberHandler->createEventmember(array(
62
-                                                           'event_id' => (int)$_POST['event'],
63
-                                                           'uid'      => $xoopsUser->getVar('uid'),
64
-                                                       ));
62
+                                                            'event_id' => (int)$_POST['event'],
63
+                                                            'uid'      => $xoopsUser->getVar('uid'),
64
+                                                        ));
65 65
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
66 66
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_ADDED_TO_EVENT;
67 67
             }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5
-include_once __DIR__ . '/include/constantes.php';
6
-include_once __DIR__ . '/include/mail_fnc.php';
7
-include_once __DIR__ . '/class/utilities.php';
5
+include_once __DIR__.'/include/constantes.php';
6
+include_once __DIR__.'/include/mail_fnc.php';
7
+include_once __DIR__.'/class/utilities.php';
8 8
 
9 9
 // $member_uid = 1;
10 10
 // $event_id = 393;
@@ -39,27 +39,27 @@  discard block
 block discarded – undo
39 39
 //echo "<hr>";
40 40
 
41 41
 if (!$GLOBALS['xoopsSecurity']->check()) {
42
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
42
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
43 43
 }
44 44
 
45 45
 if ($xoopsUser && $xoopsModuleConfig['whos_going']) {
46 46
     // If param are right
47
-    if ((int)$_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
47
+    if ((int) $_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
48 48
         $eventHandler       = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
49 49
         $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE);
50 50
 
51 51
         // If the user have to be added
52 52
         if ($_POST['mode'] === 'add') {
53
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
53
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
54 54
 
55 55
             if ($event->getVar('event_nbmember') > 0
56
-                && $eventMemberHandler->getNbMember((int)$_POST['event']) >= $event->getVar('event_nbmember')
56
+                && $eventMemberHandler->getNbMember((int) $_POST['event']) >= $event->getVar('event_nbmember')
57 57
             ) {
58 58
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_0, _MD_EXTCAL_MSG_0);
59 59
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
60 60
             } else {
61 61
                 $eventMemberHandler->createEventmember(array(
62
-                                                           'event_id' => (int)$_POST['event'],
62
+                                                           'event_id' => (int) $_POST['event'],
63 63
                                                            'uid'      => $xoopsUser->getVar('uid'),
64 64
                                                        ));
65 65
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
             // If the user have to be remove
69 69
         } else {
70 70
             if ($_POST['mode'] === 'remove') {
71
-                $eventMemberHandler->deleteEventmember(array((int)$_POST['event'], $xoopsUser->getVar('uid')));
71
+                $eventMemberHandler->deleteEventmember(array((int) $_POST['event'], $xoopsUser->getVar('uid')));
72 72
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_2, _MD_EXTCAL_MSG_2);
73 73
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_REMOVED_TO_EVENT;
74 74
             }
75 75
         }
76
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
76
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
77 77
     } else {
78 78
         redirect_header('index.php', 3, _NOPERM, false);
79 79
     }
Please login to merge, or discard this patch.
class/cat.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
4 4
 
5
-include_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
6
-include_once __DIR__ . '/perm.php';
7
-include_once __DIR__ . '/time.php';
5
+include_once __DIR__.'/ExtcalPersistableObjectHandler.php';
6
+include_once __DIR__.'/perm.php';
7
+include_once __DIR__.'/time.php';
8 8
 
9 9
 /**
10 10
  * Class ExtcalCat.
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
185 185
         $count                = count($authorizedAccessCats);
186 186
         if ($count > 0) {
187
-            $in = '(' . $authorizedAccessCats[0];
187
+            $in = '('.$authorizedAccessCats[0];
188 188
             array_shift($authorizedAccessCats);
189 189
             foreach ($authorizedAccessCats as $authorizedAccessCat) {
190
-                $in .= ',' . $authorizedAccessCat;
190
+                $in .= ','.$authorizedAccessCat;
191 191
             }
192 192
             $in .= ')';
193 193
             $criteria->add(new Criteria('cat_id', $in, 'IN'));
Please login to merge, or discard this patch.