Completed
Push — master ( 3f8ec2...f62223 )
by Michael
03:23 queued 14s
created
include/config.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -23,34 +23,34 @@  discard block
 block discarded – undo
23 23
     $moduleDirName      = basename(dirname(__DIR__));
24 24
     $moduleDirNameUpper = strtoupper($moduleDirName);
25 25
 
26
-    return (object)[
27
-        'name'           => strtoupper($moduleDirName) . ' Module Configurator',
26
+    return (object) [
27
+        'name'           => strtoupper($moduleDirName).' Module Configurator',
28 28
         'paths'          => [
29 29
             'dirname'    => $moduleDirName,
30
-            'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
31
-            'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
32
-            'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
33
-            'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
34
-            'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
30
+            'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
31
+            'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
32
+            'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
33
+            'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
34
+            'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
35 35
         ],
36 36
         'uploadFolders'  => [
37
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
38
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
39
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails'
37
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
38
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
39
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails'
40 40
         ],
41 41
         'copyBlankFiles' => [
42
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
43
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails'
42
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
43
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails'
44 44
         ],
45 45
 
46 46
         'copyTestFolders' => [
47 47
             [
48
-                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images',
49
-                XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
48
+                XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/images',
49
+                XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
50 50
             ],
51 51
             [
52
-                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
53
-                XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs',
52
+                XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/thumbs',
53
+                XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/thumbs',
54 54
             ]
55 55
         ],
56 56
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             '/images',
73 73
         ],
74 74
         'modCopyright'    => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
75
-                     <img src='" . XOOPS_URL . '/modules/' . $moduleDirName . '_AUTHOR_LOGOIMG' . '\' alt=\'XOOPS Project\' /></a>',
75
+                     <img src='" . XOOPS_URL.'/modules/'.$moduleDirName.'_AUTHOR_LOGOIMG'.'\' alt=\'XOOPS Project\' /></a>',
76 76
 
77 77
     ];
78 78
 }
Please login to merge, or discard this patch.
view_agenda-week.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-include __DIR__ . '/../../mainfile.php';
8
-require_once __DIR__ . '/include/constantes.php';
7
+include __DIR__.'/../../mainfile.php';
8
+require_once __DIR__.'/include/constantes.php';
9 9
 $params                                  = ['view' => _EXTCAL_NAV_AGENDA_WEEK, 'file' => _EXTCAL_FILE_AGENDA_WEEK];
10 10
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
11
-require_once __DIR__ . '/header.php';
11
+require_once __DIR__.'/header.php';
12 12
 
13 13
 /* ========================================================================== */
14 14
 $year  = \Xmf\Request::getInt('year', date('Y'), 'GET');
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
21 21
 //$offset = date('w', $dayTS) - $helper->getConfig('week_start_day');
22 22
 $offset = date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') < 7 ? date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') : 0;
23
-$dayTS  -= ($offset * _EXTCAL_TS_DAY);
23
+$dayTS -= ($offset * _EXTCAL_TS_DAY);
24 24
 $year   = date('Y', $dayTS);
25 25
 $month  = date('n', $dayTS);
26 26
 $day    = date('j', $dayTS);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     'nbJours'      => $nbJours,
54 54
     'externalKeys' => 'cat_id',
55 55
 ];
56
-$events   = $eventHandler->getEventsOnPeriode($criteres);
56
+$events = $eventHandler->getEventsOnPeriode($criteres);
57 57
 /**********************************************************************/
58 58
 $eventsArray = $events;
59 59
 // Formating date
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 //-------------------------------------------------------------------
86 86
 
87 87
 //$params['colJourWidth'] = (int)((((500-50)/$nbJours)/500*100)+.5);
88
-$params['colJourWidth'] = (int)((((500 - 50) / $nbJours) / 500 * 100) + .6);
88
+$params['colJourWidth'] = (int) ((((500 - 50) / $nbJours) / 500 * 100) + .6);
89 89
 //  echo "agenda_week : {$dayTS}<br>";
90 90
 $tAgenda = agenda_getEvents($eventsArray, $dayTS, $hStart, $hEnd, $mTranche, $nbJours);
91 91
 //$exp = print_r($eventsArray, true);
@@ -107,21 +107,21 @@  discard block
 block discarded – undo
107 107
 
108 108
 $navig = [
109 109
     'prev' => [
110
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
110
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
111 111
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $pWeekCalObj->getTimestamp()),
112 112
     ],
113 113
     'this' => [
114
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
114
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
115 115
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $weekCalObj->getTimestamp()),
116 116
     ],
117 117
     'next' => [
118
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
118
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
119 119
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $nWeekCalObj->getTimestamp()),
120 120
     ],
121 121
 ];
122 122
 
123 123
 // Title of the page
124
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
124
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
125 125
 
126 126
 // Assigning navig data to the template
127 127
 $xoopsTpl->assign('navig', $navig);
@@ -162,4 +162,4 @@  discard block
 block discarded – undo
162 162
 $xoopsTpl->assign('lang', $lang);
163 163
 $xoopsTpl->assign('view', 'agendaweek');
164 164
 
165
-include XOOPS_ROOT_PATH . '/footer.php';
165
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
event_member.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@  discard block
 block discarded – undo
5 5
 /** @var Extcal\Helper $helper */
6 6
 $helper = Extcal\Helper::getInstance();
7 7
 
8
-include __DIR__ . '/../../mainfile.php';
8
+include __DIR__.'/../../mainfile.php';
9 9
 
10
-require_once __DIR__ . '/include/constantes.php';
11
-require_once __DIR__ . '/include/mail_fnc.php';
10
+require_once __DIR__.'/include/constantes.php';
11
+require_once __DIR__.'/include/mail_fnc.php';
12 12
 
13 13
 // $member_uid = 1;
14 14
 // $event_id = 393;
@@ -43,26 +43,26 @@  discard block
 block discarded – undo
43 43
 //echo "<hr>";
44 44
 
45 45
 if (!$GLOBALS['xoopsSecurity']->check()) {
46
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
46
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
47 47
 }
48 48
 
49 49
 if ($xoopsUser && $helper->getConfig('whos_going')) {
50 50
     // If param are right
51
-    if ((int)$_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) {
51
+    if ((int) $_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) {
52 52
         $eventHandler       = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
53 53
         $eventMemberHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_MEMBER);
54 54
 
55 55
         // If the user have to be added
56 56
         if ('add' === $_POST['mode']) {
57
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
57
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
58 58
 
59 59
             if ($event->getVar('event_nbmember') > 0
60
-                && $eventMemberHandler->getNbMember((int)$_POST['event']) >= $event->getVar('event_nbmember')) {
60
+                && $eventMemberHandler->getNbMember((int) $_POST['event']) >= $event->getVar('event_nbmember')) {
61 61
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_0, _MD_EXTCAL_MSG_0);
62 62
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
63 63
             } else {
64 64
                 $eventMemberHandler->createEventmember([
65
-                                                           'event_id' => (int)$_POST['event'],
65
+                                                           'event_id' => (int) $_POST['event'],
66 66
                                                            'uid'      => $xoopsUser->getVar('uid'),
67 67
                                                        ]);
68 68
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
             // If the user have to be remove
72 72
         } else {
73 73
             if ('remove' === $_POST['mode']) {
74
-                $eventMemberHandler->deleteEventmember([(int)$_POST['event'], $xoopsUser->getVar('uid')]);
74
+                $eventMemberHandler->deleteEventmember([(int) $_POST['event'], $xoopsUser->getVar('uid')]);
75 75
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_2, _MD_EXTCAL_MSG_2);
76 76
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_REMOVED_TO_EVENT;
77 77
             }
78 78
         }
79
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
79
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
80 80
     } else {
81 81
         redirect_header('index.php', 3, _NOPERM, false);
82 82
     }
Please login to merge, or discard this patch.
view_calendar-month.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-include __DIR__ . '/../../mainfile.php';
8
-require_once __DIR__ . '/include/constantes.php';
7
+include __DIR__.'/../../mainfile.php';
8
+require_once __DIR__.'/include/constantes.php';
9 9
 $params                                  = ['view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH];
10 10
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
11 11
 
12 12
 //include __DIR__ . '/preloads/autoloader.php';
13 13
 //$catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
14 14
 
15
-require_once __DIR__ . '/header.php';
15
+require_once __DIR__.'/header.php';
16 16
 
17 17
 /* ========================================================================== */
18 18
 $year  = \Xmf\Request::getInt('year', date('Y'), 'GET');
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     'cat'          => $cat,
40 40
     'externalKeys' => 'cat_id',
41 41
 ];
42
-$events   = $eventHandler->getEventsOnPeriode($criteres);
42
+$events = $eventHandler->getEventsOnPeriode($criteres);
43 43
 /**********************************************************************/
44 44
 
45 45
 // Calculating timestamp for the begin and the end of the month
@@ -135,21 +135,21 @@  discard block
 block discarded – undo
135 135
 // Making navig data
136 136
 $navig = [
137 137
     'prev' => [
138
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
138
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
139 139
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $pMonthCalObj->getTimestamp()),
140 140
     ],
141 141
     'this' => [
142
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
142
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
143 143
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $monthCalObj->getTimestamp()),
144 144
     ],
145 145
     'next' => [
146
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
146
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
147 147
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $nMonthCalObj->getTimestamp()),
148 148
     ],
149 149
 ];
150 150
 
151 151
 // Title of the page
152
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
152
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
153 153
 
154 154
 // Assigning navig data to the template
155 155
 $xoopsTpl->assign('navig', $navig);
@@ -189,4 +189,4 @@  discard block
 block discarded – undo
189 189
 $xoopsTpl->assign('lang', $lang);
190 190
 $xoopsTpl->assign('view', 'calmonth');
191 191
 
192
-include XOOPS_ROOT_PATH . '/footer.php';
192
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
blocks/minical.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         new Calendar_Day(
169 169
             date('Y', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))),
170 170
             date('n', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))),
171
-                         date('j', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser'])))
171
+                            date('j', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser'])))
172 172
         ),
173 173
     ];
174 174
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 use XoopsModules\Extcal;
21 21
 
22 22
 global $extcalConfig, $xoopsUser;
23
-require_once __DIR__ . '/../include/constantes.php';
23
+require_once __DIR__.'/../include/constantes.php';
24 24
 // require_once __DIR__ . '/../class/Utility.php';
25 25
 // require_once __DIR__ . '/../class/tableForm.php';
26 26
 //---------------------------------------------------------------------------
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
     //    // require_once __DIR__ . '/../class/Config.php';
39 39
 
40
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
41
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
42
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
40
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
41
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
42
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
43 43
     //     require_once CALENDAR_ROOT . 'Month/Weeks.php';
44 44
     //     require_once CALENDAR_ROOT . 'Day.php';
45 45
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             'category'     => $tCatSelected,
129 129
             'externalKeys' => 'cat_id',
130 130
         ];
131
-        $events   = $eventHandler->getEventsOnPeriode($criteres);
131
+        $events = $eventHandler->getEventsOnPeriode($criteres);
132 132
     } else {
133 133
         $events = [];
134 134
     }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 'number'     => $dayCalObj->thisDay(),
194 194
                 'isSelected' => $dayCalObj->isSelected(),
195 195
             ];
196
-            $day                                = $dayCalObj->thisDay();
196
+            $day = $dayCalObj->thisDay();
197 197
             if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) {
198 198
                 $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true;
199 199
                 $tableRows[$rowId]['week'][$cellId]['color']      = $eventsArray[$day]['color'];
@@ -223,15 +223,15 @@  discard block
 block discarded – undo
223 223
     // Making navig data
224 224
     $navig = [
225 225
         'page' => $extcalConfig['start_page'],
226
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
226
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
227 227
         'name' => $timeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()),
228 228
     ];
229 229
 
230 230
     $horloge             = [];
231 231
     $horloge['display']  = ('' != trim($options[11]));
232
-    $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11];
233
-    $horloge['width']    = $options[12] . 'px';
234
-    $horloge['height']   = $options[13] . 'px';
232
+    $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11];
233
+    $horloge['width']    = $options[12].'px';
234
+    $horloge['height']   = $options[13].'px';
235 235
 
236 236
     $ret = [
237 237
         'imageParam'   => $imageParam,
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     $imageCatHandler = xoops_getHandler('imagecategory');
279 279
 
280 280
     //=====================================================================
281
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head');
281
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head');
282 282
 
283 283
     $k           = 0;
284 284
     $xfValue[$k] = new \XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]);
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     $xfValue[$k] = new Extcal\Form\Spin\FormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = '');
320 320
     $form->addElement($xfValue[$k], false);
321 321
     //=====================================================================
322
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head');
322
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head');
323 323
 
324 324
     $t = [
325 325
         -1 => _MB_EXTCAL_PREVIEW,
@@ -358,9 +358,9 @@  discard block
 block discarded – undo
358 358
     $form->addElement($xfValue[$k], false);
359 359
 
360 360
     //=====================================================================
361
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head');
361
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head');
362 362
     //---------------------------------------------------------------------
363
-    $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES);
363
+    $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES);
364 364
     $t = array_merge([' ' => _NONE], $t);
365 365
 
366 366
     $k           = 11;
@@ -445,12 +445,12 @@  discard block
 block discarded – undo
445 445
         // $src   = $doc->createElement('src');
446 446
         $src   = clone $tempSrc;
447 447
         $src   = $photo->appendChild($src);
448
-        $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name'));
448
+        $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name'));
449 449
         $src->appendChild($value);
450 450
     }
451 451
 
452 452
     // get completed xml document
453
-    $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml');
453
+    $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml');
454 454
 }
455 455
 
456 456
 /**************************************************************************/
Please login to merge, or discard this patch.
blocks/upcoming.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once __DIR__ . '/../include/constantes.php';
22
+require_once __DIR__.'/../include/constantes.php';
23 23
 
24 24
 /**
25 25
  * @param $options
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         'nbEvent'      => $nbEvent,
89 89
         'nbDays'       => $nbDays,
90 90
     ];
91
-    $events   = $eventHandler->getEventsOnPeriode($criteres);
91
+    $events = $eventHandler->getEventsOnPeriode($criteres);
92 92
 
93 93
     //----------------------------
94 94
 
@@ -115,27 +115,27 @@  discard block
 block discarded – undo
115 115
 
116 116
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
117 117
 
118
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
119
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
120
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
118
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
119
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
120
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
121 121
 
122
-    $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>';
122
+    $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>';
123 123
 
124 124
     array_shift($options);
125 125
     array_shift($options);
126 126
     array_shift($options);
127 127
 
128
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
128
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
129 129
     if (false === array_search(0, $options)) {
130
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
130
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
131 131
     } else {
132
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
132
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
133 133
     }
134 134
     foreach ($cats as $cat) {
135 135
         if (false === array_search($cat->getVar('cat_id'), $options)) {
136
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
136
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
137 137
         } else {
138
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
138
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
139 139
         }
140 140
     }
141 141
     $form .= '</select>';
Please login to merge, or discard this patch.