Passed
Push — master ( 75b16c...762245 )
by Michael
01:42
created
comment_post.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_post.php';
20
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_post.php';
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 
22 22
 // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined');
23 23
 
24
-require_once __DIR__   . '/preloads/autoloader.php';
24
+require_once __DIR__.'/preloads/autoloader.php';
25 25
 
26 26
 $moduleDirName = basename(__DIR__);
27 27
 
28
-require_once __DIR__ . '/include/constantes.php';
29
-require_once __DIR__ . '/include/agenda_fnc.php';
28
+require_once __DIR__.'/include/constantes.php';
29
+require_once __DIR__.'/include/agenda_fnc.php';
30 30
 //require_once __DIR__ . '/class/Config.php';
31 31
 //$loc_de = setlocale (LC_ALL, 'french');
32 32
 
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
 
100 100
 // Tables created by sql file (without prefix!)
101 101
 $modversion['tables'] = [
102
-    $moduleDirName . '_' . 'cat',
103
-    $moduleDirName . '_' . 'event',
104
-    $moduleDirName . '_' . 'eventmember',
105
-    $moduleDirName . '_' . 'eventnotmember',
106
-    $moduleDirName . '_' . 'file',
107
-    $moduleDirName . '_' . 'location'
102
+    $moduleDirName.'_'.'cat',
103
+    $moduleDirName.'_'.'event',
104
+    $moduleDirName.'_'.'eventmember',
105
+    $moduleDirName.'_'.'eventnotmember',
106
+    $moduleDirName.'_'.'file',
107
+    $moduleDirName.'_'.'location'
108 108
 ];
109 109
 
110 110
 // SQL
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 $modversion['config'][$i]['default']     = 5;
517 517
 
518 518
 ++$i;
519
-$modversion['config'][$i]['name']        = 'break' . $i;
519
+$modversion['config'][$i]['name']        = 'break'.$i;
520 520
 $modversion['config'][$i]['title']       = '_MI_EXTCAL_SHOW_OTHEROPTIONS';
521 521
 $modversion['config'][$i]['description'] = '';
522 522
 $modversion['config'][$i]['formtype']    = 'line_break';
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,20 +19,20 @@
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once XOOPS_ROOT_PATH . '/header.php';
22
+require_once XOOPS_ROOT_PATH.'/header.php';
23 23
 
24
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
24
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
25 25
 
26
-require_once __DIR__ . '/include/agenda_fnc.php';
26
+require_once __DIR__.'/include/agenda_fnc.php';
27 27
 
28 28
 Extcal\Helper::getInstance()->loadLanguage('modinfo');
29 29
 
30 30
 //------------------------------------------------------
31
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
32
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
33
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php';
34
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php';
35
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
31
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
32
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
33
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php';
34
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php';
35
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
36 36
 
37 37
 //------------------------------------------------------
38 38
 // Getting eXtCal object's handler
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
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
64 64
             } else {
65 65
                 $eventMemberHandler->createEventmember([
66
-                                                           'event_id' => \Xmf\Request::getInt('event', 0, 'POST'),
67
-                                                           'uid'      => $xoopsUser->getVar('uid'),
68
-                                                       ]);
66
+                                                            'event_id' => \Xmf\Request::getInt('event', 0, 'POST'),
67
+                                                            'uid'      => $xoopsUser->getVar('uid'),
68
+                                                        ]);
69 69
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
70 70
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_ADDED_TO_EVENT;
71 71
             }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@  discard block
 block discarded – undo
3 3
 
4 4
 use XoopsModules\Extcal;
5 5
 
6
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
6
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
7 7
 
8
-require_once __DIR__ . '/include/constantes.php';
9
-require_once __DIR__ . '/include/mail_fnc.php';
8
+require_once __DIR__.'/include/constantes.php';
9
+require_once __DIR__.'/include/mail_fnc.php';
10 10
 
11 11
 /** @var Extcal\Helper $helper */
12 12
 $helper = Extcal\Helper::getInstance();
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 //echo "<hr>";
45 45
 
46 46
 if (!$GLOBALS['xoopsSecurity']->check()) {
47
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
47
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
48 48
 }
49 49
 
50 50
 if ($xoopsUser && $helper->getConfig('whos_going')) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_REMOVED_TO_EVENT;
78 78
             }
79 79
         }
80
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
80
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
81 81
     } else {
82 82
         redirect_header('index.php', 3, _NOPERM, false);
83 83
     }
Please login to merge, or discard this patch.
view_calendar-week.php 1 patch
Spacing   +10 added lines, -10 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_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK];
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();
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
23 23
 //$offset = date('w', $dayTS) - $helper->getConfig('week_start_day');
24 24
 $offset = date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') < 7 ? date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') : 0;
25
-$dayTS  -= ($offset * _EXTCAL_TS_DAY);
25
+$dayTS -= ($offset * _EXTCAL_TS_DAY);
26 26
 $year   = date('Y', $dayTS);
27 27
 $month  = date('n', $dayTS);
28 28
 $day    = date('j', $dayTS);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     'cat'          => $cat,
53 53
     'externalKeys' => 'cat_id',
54 54
 ];
55
-$events   = $eventHandler->getEventsOnPeriode($criteres);
55
+$events = $eventHandler->getEventsOnPeriode($criteres);
56 56
 /**********************************************************************/
57 57
 //$eventsArray = $events;
58 58
 
@@ -141,21 +141,21 @@  discard block
 block discarded – undo
141 141
 // Making navig data
142 142
 $navig = [
143 143
     'prev' => [
144
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
144
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
145 145
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $pWeekCalObj->getTimestamp()),
146 146
     ],
147 147
     'this' => [
148
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
148
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
149 149
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $weekCalObj->getTimestamp()),
150 150
     ],
151 151
     'next' => [
152
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
152
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
153 153
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $nWeekCalObj->getTimestamp()),
154 154
     ],
155 155
 ];
156 156
 
157 157
 // Title of the page
158
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
158
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
159 159
 
160 160
 // Assigning navig data to the template
161 161
 $xoopsTpl->assign('navig', $navig);
@@ -195,4 +195,4 @@  discard block
 block discarded – undo
195 195
 $xoopsTpl->assign('lang', $lang);
196 196
 $xoopsTpl->assign('view', 'calweek');
197 197
 
198
-require_once XOOPS_ROOT_PATH . '/footer.php';
198
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@  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
 $params                                  = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT];
25 25
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl';
26
-require_once __DIR__ . '/header.php';
26
+require_once __DIR__.'/header.php';
27 27
 
28 28
 //exit;
29 29
 
30
-require_once XOOPS_ROOT_PATH . '/include/comment_view.php';
30
+require_once XOOPS_ROOT_PATH.'/include/comment_view.php';
31 31
 
32 32
 if (!isset($_GET['event'])) {
33 33
     $eventId = 0;
@@ -228,4 +228,4 @@  discard block
 block discarded – undo
228 228
 
229 229
 //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array());
230 230
 
231
-require_once XOOPS_ROOT_PATH . '/footer.php';
231
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_reply.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_reply.php';
20
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_reply.php';
Please login to merge, or discard this patch.
blocks/random_events.php 1 patch
Spacing   +9 added lines, -9 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  dirname(__DIR__) . '/include/constantes.php';
22
+require_once  dirname(__DIR__).'/include/constantes.php';
23 23
 
24 24
 /**
25 25
  * @param $options
@@ -66,22 +66,22 @@  discard block
 block discarded – undo
66 66
 
67 67
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
68 68
 
69
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
70
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
71
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
69
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
70
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
71
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
72 72
     array_shift($options);
73 73
     array_shift($options);
74
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
74
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
75 75
     if (false === array_search(0, $options)) {
76
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     } else {
78
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
78
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
79 79
     }
80 80
     foreach ($cats as $cat) {
81 81
         if (false === array_search($cat->getVar('cat_id'), $options)) {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
83 83
         } else {
84
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
84
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
85 85
         }
86 86
     }
87 87
     $form .= '</select>';
Please login to merge, or discard this patch.
location.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.