Passed
Push — master ( f62223...75b16c )
by Michael
02:33
created
view_week.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
  * @author       XOOPS Development Team,
20 20
  */
21 21
 
22
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
23
-require_once __DIR__ . '/include/constantes.php';
22
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
23
+require_once __DIR__.'/include/constantes.php';
24 24
 $params                                  = ['view' => _EXTCAL_NAV_WEEK, 'file' => _EXTCAL_FILE_WEEK];
25 25
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
26
-require_once __DIR__ . '/header.php';
26
+require_once __DIR__.'/header.php';
27 27
 
28 28
 /** @var Extcal\Helper $helper */
29 29
 $helper = Extcal\Helper::getInstance();
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     'cat'          => $cat,
68 68
     'externalKeys' => 'cat_id',
69 69
 ];
70
-$events   = $eventHandler->getEventsOnPeriode($criteres);
70
+$events = $eventHandler->getEventsOnPeriode($criteres);
71 71
 /**********************************************************************/
72 72
 $eventsArray = $events;
73 73
 // Formating date
@@ -108,21 +108,21 @@  discard block
 block discarded – undo
108 108
 $nWeekCalObj = $weekCalObj->nextWeek('object');
109 109
 $navig       = [
110 110
     'prev' => [
111
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(),
111
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(),
112 112
         'name' => $timeHandler->getFormatedDate($extcalConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
113 113
     ],
114 114
     'this' => [
115
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(),
115
+        'uri'  => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(),
116 116
         'name' => $timeHandler->getFormatedDate($extcalConfig['nav_date_week'], $weekCalObj->getTimestamp()),
117 117
     ],
118 118
     'next' => [
119
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(),
119
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(),
120 120
         'name' => $timeHandler->getFormatedDate($extcalConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
121 121
     ],
122 122
 ];
123 123
 
124 124
 // Title of the page
125
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
125
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
126 126
 
127 127
 // Assigning navig data to the template
128 128
 $xoopsTpl->assign('navig', $navig);
@@ -182,4 +182,4 @@  discard block
 block discarded – undo
182 182
 $xoopsTpl->assign('lang', $lang);
183 183
 $xoopsTpl->assign('view', 'week');
184 184
 
185
-require_once XOOPS_ROOT_PATH . '/footer.php';
185
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_agenda-day.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 use XoopsModules\Extcal;
4 4
 
5
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
6
-require_once __DIR__ . '/include/constantes.php';
5
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
6
+require_once __DIR__.'/include/constantes.php';
7 7
 $params                                  = ['view' => _EXTCAL_NAV_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY];
8 8
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
9
-require_once __DIR__ . '/header.php';
9
+require_once __DIR__.'/header.php';
10 10
 
11 11
 /** @var Extcal\Helper $helper */
12 12
 $helper = Extcal\Helper::getInstance();
@@ -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
 $startDay    = mktime(0, 0, 0, $month, $day, $year);
@@ -104,21 +104,21 @@  discard block
 block discarded – undo
104 104
 
105 105
 $navig = [
106 106
     'prev' => [
107
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&month=' . $pDayCalObj->thisMonth() . '&day=' . $pDayCalObj->thisDay(),
107
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&month='.$pDayCalObj->thisMonth().'&day='.$pDayCalObj->thisDay(),
108 108
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $pDayCalObj->getTimestamp()),
109 109
     ],
110 110
     'this' => [
111
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&month=' . $dayCalObj->thisMonth() . '&day=' . $dayCalObj->thisDay(),
111
+        'uri'  => 'year='.$dayCalObj->thisYear().'&month='.$dayCalObj->thisMonth().'&day='.$dayCalObj->thisDay(),
112 112
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $dayCalObj->getTimestamp()),
113 113
     ],
114 114
     'next' => [
115
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&month=' . $nDayCalObj->thisMonth() . '&day=' . $nDayCalObj->thisDay(),
115
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&month='.$nDayCalObj->thisMonth().'&day='.$nDayCalObj->thisDay(),
116 116
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $nDayCalObj->getTimestamp()),
117 117
     ],
118 118
 ];
119 119
 
120 120
 // Title of the page
121
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
121
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
122 122
 
123 123
 // Assigning navig data to the template
124 124
 $xoopsTpl->assign('navig', $navig);
@@ -159,4 +159,4 @@  discard block
 block discarded – undo
159 159
 $xoopsTpl->assign('lang', $lang);
160 160
 $xoopsTpl->assign('view', 'agendaday');
161 161
 
162
-require_once XOOPS_ROOT_PATH . '/footer.php';
162
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_new.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
20
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
21 21
 $com_itemid = \Xmf\Request::getInt('com_itemid', 0, 'GET');
22 22
 if ($com_itemid > 0) {
23 23
     // Get link title
24
-    $sql            = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . ' ';
24
+    $sql            = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.' ';
25 25
     $result         = $xoopsDB->query($sql);
26 26
     $row            = $xoopsDB->fetchArray($result);
27 27
     $com_replytitle = $row['event_title'];
28 28
     $com_replytext  = $row['event_desc'];
29
-    require_once XOOPS_ROOT_PATH . '/include/comment_new.php';
29
+    require_once XOOPS_ROOT_PATH.'/include/comment_new.php';
30 30
 }
Please login to merge, or discard this patch.
language/english/modinfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once  dirname(dirname(__DIR__)) . '/include/constantes.php';
3
+require_once  dirname(dirname(__DIR__)).'/include/constantes.php';
4 4
 define('_MI_EXTCAL_NAME', 'eXtCal');
5 5
 define('_MI_EXTCAL_ABOUT', 'About');
6 6
 define('_MI_EXTCAL_AFTER', 'After');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 define('_MI_EXTCAL_START_PAGE', 'Module home page');
136 136
 define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event');
137 137
 define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs');
138
-define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line');
138
+define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line');
139 139
 define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.');
140 140
 define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab');
141 141
 define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day');
@@ -162,6 +162,6 @@  discard block
 block discarded – undo
162 162
 
163 163
 //Help
164 164
 define('_MI_EXTCAL_DIRNAME', basename(dirname(dirname(__DIR__))));
165
-define('_MI_EXTCAL_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
165
+define('_MI_EXTCAL_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
166 166
 define('_MI_EXTCAL_BACK_2_ADMIN', 'Back to Administration of ');
167 167
 define('_MI_EXTCAL_OVERVIEW', 'Overview');
Please login to merge, or discard this patch.
notification_update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
4
-require_once XOOPS_ROOT_PATH . '/include/notification_update.php';
3
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
4
+require_once XOOPS_ROOT_PATH.'/include/notification_update.php';
Please login to merge, or discard this patch.
etablissement.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -56,22 +56,22 @@
 block discarded – undo
56 56
 $edit_delete = '';
57 57
 if (is_object($xoopsUser) && $isAdmin) {
58 58
     $edit_delete = '<a href="'
59
-                   . XOOPS_URL
60
-                   . '/modules/extcal/admin/Location.php?op=edit_location&location_id='
61
-                   . $location_id
62
-                   . '"><img src="'
63
-                   . $pathIcon16
64
-                   . '/edit.png" width="16px" height="16px" border="0" title="'
65
-                   . _MD_EXTCAL_LOCATION_EDIT
66
-                   . '"></a><a href="'
67
-                   . XOOPS_URL
68
-                   . '/modules/extcal/admin/Location.php?op=delete_location&location_id='
69
-                   . $location_id
70
-                   . '"><img src="'
71
-                   . $pathIcon16
72
-                   . '/delete.png" width="16px" height="16px" border="0" title="'
73
-                   . _MD_EXTCAL_LOCATION_DELETE
74
-                   . '"></a>';
59
+                    . XOOPS_URL
60
+                    . '/modules/extcal/admin/Location.php?op=edit_location&location_id='
61
+                    . $location_id
62
+                    . '"><img src="'
63
+                    . $pathIcon16
64
+                    . '/edit.png" width="16px" height="16px" border="0" title="'
65
+                    . _MD_EXTCAL_LOCATION_EDIT
66
+                    . '"></a><a href="'
67
+                    . XOOPS_URL
68
+                    . '/modules/extcal/admin/Location.php?op=delete_location&location_id='
69
+                    . $location_id
70
+                    . '"><img src="'
71
+                    . $pathIcon16
72
+                    . '/delete.png" width="16px" height="16px" border="0" title="'
73
+                    . _MD_EXTCAL_LOCATION_DELETE
74
+                    . '"></a>';
75 75
 }
76 76
 $xoopsTpl->assign('edit_delete', $edit_delete);
77 77
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once  dirname(dirname(__DIR__)) . '/mainfile.php';
23
-require_once __DIR__ . '/include/constantes.php';
22
+require_once  dirname(dirname(__DIR__)).'/mainfile.php';
23
+require_once __DIR__.'/include/constantes.php';
24 24
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_location.tpl';
25
-require_once __DIR__ . '/header.php';
25
+require_once __DIR__.'/header.php';
26 26
 
27 27
 $locationHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_LOCATION);
28 28
 //require_once XOOPS_ROOT_PATH.'/header.php';
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 $location_exist = $locationHandler->getCount($criteria);
38 38
 
39 39
 if (0 == $location_exist) {
40
-    redirect_header(XOOPS_URL . '/modules/extcal/index.php', 3, _NOPERM);
40
+    redirect_header(XOOPS_URL.'/modules/extcal/index.php', 3, _NOPERM);
41 41
 }
42 42
 
43 43
 $view_location = $locationHandler->getLocation($location_id, true);
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
 
80 80
 $date = mktime(0, 0, 0, date('m'), date('d'), date('y'));
81 81
 
82
-$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM ' . $xoopsDB->prefix('extcal_event') . " WHERE event_location='" . $location_id . "' AND event_start >='" . $date . "'");
82
+$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM '.$xoopsDB->prefix('extcal_event')." WHERE event_location='".$location_id."' AND event_start >='".$date."'");
83 83
 while (false !== ($donnees = $xoopsDB->fetchArray($requete))) {
84 84
     if ($donnees['event_desc'] > 210) {
85 85
         $event_desc = $donnees['event_desc'];
86 86
     } else {
87
-        $event_desc = substr($donnees['event_desc'], 0, 210) . '...';
87
+        $event_desc = substr($donnees['event_desc'], 0, 210).'...';
88 88
     }
89 89
     $xoopsTpl->append('events', [
90 90
         'event_picture1' => $donnees['event_picture1'],
@@ -97,4 +97,4 @@  discard block
 block discarded – undo
97 97
 /** @var xos_opal_Theme $xoTheme */
98 98
 $xoTheme->addScript('browse.php?modules/extcal/assets/js/highslide.js');
99 99
 $xoTheme->addStylesheet('browse.php?modules/extcal/assets/js/highslide.css');
100
-require_once XOOPS_ROOT_PATH . '/footer.php';
100
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_month.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@  discard block
 block discarded – undo
2 2
 
3 3
 use XoopsModules\Extcal;
4 4
 
5
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
6
-require_once __DIR__ . '/include/constantes.php';
5
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
6
+require_once __DIR__.'/include/constantes.php';
7 7
 
8 8
 /** @var Extcal\Helper $helper */
9 9
 $helper = Extcal\Helper::getInstance();
10 10
 
11 11
 $params                                  = ['view' => _EXTCAL_NAV_MONTH, 'file' => _EXTCAL_FILE_MONTH];
12 12
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
13
-require_once __DIR__ . '/header.php';
13
+require_once __DIR__.'/header.php';
14 14
 
15 15
 /* ========================================================================== */
16 16
 $year  = \Xmf\Request::getInt('year', date('Y'), 'GET');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     'cat'          => $cat,
38 38
     'externalKeys' => 'cat_id',
39 39
 ];
40
-$events   = $eventHandler->getEventsOnPeriode($criteres);
40
+$events = $eventHandler->getEventsOnPeriode($criteres);
41 41
 /**********************************************************************/
42 42
 $eventsArray = $events;
43 43
 
@@ -94,21 +94,21 @@  discard block
 block discarded – undo
94 94
 $nMonthCalObj = $monthCalObj->nextMonth('object');
95 95
 $navig        = [
96 96
     'prev' => [
97
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
97
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
98 98
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $pMonthCalObj->getTimestamp()),
99 99
     ],
100 100
     'this' => [
101
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
101
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
102 102
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $monthCalObj->getTimestamp()),
103 103
     ],
104 104
     'next' => [
105
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
105
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
106 106
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $nMonthCalObj->getTimestamp()),
107 107
     ],
108 108
 ];
109 109
 
110 110
 // Title of the page
111
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
111
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
112 112
 
113 113
 // Assigning navig data to the template
114 114
 $xoopsTpl->assign('navig', $navig);
@@ -165,4 +165,4 @@  discard block
 block discarded – undo
165 165
 $xoopsTpl->assign('lang', $lang);
166 166
 $xoopsTpl->assign('view', 'month');
167 167
 
168
-require_once XOOPS_ROOT_PATH . '/footer.php';
168
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
new_event.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
 use XoopsModules\Extcal;
4 4
 
5
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
6
-require_once __DIR__ . '/include/constantes.php';
7
-require_once __DIR__ . '/header.php';
5
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
6
+require_once __DIR__.'/include/constantes.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 // Getting eXtCal object's handler
10 10
 $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $permHandler = Extcal\Perm::getHandler();
13 13
 $xoopsUser   = $xoopsUser ?: null;
14 14
 if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) {
15
-    require_once XOOPS_ROOT_PATH . '/header.php';
15
+    require_once XOOPS_ROOT_PATH.'/header.php';
16 16
 
17 17
     // Title of the page
18 18
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     //$form->display();
24 24
 
25
-    require_once XOOPS_ROOT_PATH . '/footer.php';
25
+    require_once XOOPS_ROOT_PATH.'/footer.php';
26 26
 } else {
27 27
     redirect_header('index.php', 3);
28 28
 }
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
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
21
-require_once XOOPS_ROOT_PATH . '/include/comment_delete.php';
20
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_delete.php';
Please login to merge, or discard this patch.