Passed
Push — master ( f62223...75b16c )
by Michael
02:33
created
include/mail_fnc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
 use XoopsModules\Extcal;
24 24
 
25
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/uploader.php';
26
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/mail/phpmailer/class.phpmailer.php'; // First we require_once the PHPMailer libary in our script
25
+require_once  dirname(dirname(dirname(__DIR__))).'/class/uploader.php';
26
+require_once  dirname(dirname(dirname(__DIR__))).'/class/mail/phpmailer/class.phpmailer.php'; // First we require_once the PHPMailer libary in our script
27 27
 // require_once  dirname(__DIR__) . '/class/Utility.php';
28
-require_once __DIR__ . '/constantes.php';
29
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/template.php';
28
+require_once __DIR__.'/constantes.php';
29
+require_once  dirname(dirname(dirname(__DIR__))).'/class/template.php';
30 30
 
31 31
 /********************************************************************
32 32
  *
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     $action  = ''; //a voir   JJD
141 141
     $message = sprintf($tplMessage, $acteur['name']);
142 142
     //$subject .= ' (' . rand(1, 100) . ')';
143
-    $subject .= ' - ' . $acteur['name'];
143
+    $subject .= ' - '.$acteur['name'];
144 144
     //--------------------------------------------------------------
145 145
     //Chargement du template dans le dossier de langue
146 146
     //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html';
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     if (_EXTCAL_HEADER_HTML == $mode) {
183 183
         $template = 'extcal_mail_member_html.tpl';
184 184
     }
185
-    $mail_body = $tpl->fetch('db:' . $template);
185
+    $mail_body = $tpl->fetch('db:'.$template);
186 186
 
187 187
     extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|');
188 188
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     $header   = [];
316 316
     $header[] = "From: {$emailSender}";
317 317
     $header[] = "Reply-To: {$emailSender}";
318
-    $header[] = 'X-Mailer: PHP/' . PHP_VERSION;
318
+    $header[] = 'X-Mailer: PHP/'.PHP_VERSION;
319 319
 
320 320
     if (_EXTCAL_HEADER_HTML == $mode) {
321 321
         $header[] = 'MIME-Version: 1.0';
Please login to merge, or discard this patch.
include/update_function.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,22 +33,22 @@  discard block
 block discarded – undo
33 33
 
34 34
     //----------------------------------------------------------
35 35
     // Create eXtCal upload directory
36
-    $indexFile = __DIR__ . '/index.html';
36
+    $indexFile = __DIR__.'/index.html';
37 37
 
38
-    $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
38
+    $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
39 39
     if (!is_dir($dir)) {
40 40
         mkdir($dir, 0777);
41
-        copy($indexFile, $dir . '/index.html');
41
+        copy($indexFile, $dir.'/index.html');
42 42
     }
43 43
 
44
-    $dir = XOOPS_ROOT_PATH . '/uploads/extcal/location';
44
+    $dir = XOOPS_ROOT_PATH.'/uploads/extcal/location';
45 45
     if (!is_dir($dir)) {
46 46
         mkdir($dir, 0777);
47
-        copy($indexFile, $dir . '/index.html');
47
+        copy($indexFile, $dir.'/index.html');
48 48
     }
49 49
     //------------------------------------------------------------
50 50
 
51
-    $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/';
51
+    $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/';
52 52
     $cls = 'extcal_%1$s';
53 53
 
54 54
     $version = [
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     foreach ($version as $key => $val) {
68 68
         if ($previousVersion < $val) {
69 69
             $name = sprintf($cls, $key);
70
-            $f    = $fld . $name . '.php';
70
+            $f    = $fld.$name.'.php';
71 71
             //ext_echo ("<hr>{$f}<hr>");
72 72
             if (is_readable($f)) {
73 73
                 echo "mise à jour version : {$key} = {$val}<br>";
Please login to merge, or discard this patch.
include/common.php 1 patch
Spacing   +29 added lines, -29 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__) . '/preloads/autoloader.php';
22
+require_once dirname(__DIR__).'/preloads/autoloader.php';
23 23
 
24 24
 $moduleDirName      = basename(dirname(__DIR__));
25 25
 $moduleDirNameUpper = strtoupper($moduleDirName);
@@ -39,23 +39,23 @@  discard block
 block discarded – undo
39 39
 ///** @var \XoopsPersistableObjectHandler $extcal_brokenHandler */
40 40
 //$extcal_brokenHandler  = new Extcal\Extcal_brokenHandler($db);
41 41
 
42
-if (!defined($moduleDirNameUpper . '_CONSTANTS_DEFINED')) {
43
-    define($moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__)));
44
-    define($moduleDirNameUpper . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/');
45
-    define($moduleDirNameUpper . '_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/');
46
-    define($moduleDirNameUpper . '_URL', XOOPS_URL . '/modules/' . $moduleDirName . '/');
47
-    define($moduleDirNameUpper . '_IMAGES_URL', constant($moduleDirNameUpper . '_URL') . '/assets/images/');
48
-    define($moduleDirNameUpper . '_IMAGES_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/assets/images/');
49
-    define($moduleDirNameUpper . '_ADMIN_URL', constant($moduleDirNameUpper . '_URL') . '/admin/');
50
-    define($moduleDirNameUpper . '_ADMIN_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/admin/');
51
-    define($moduleDirNameUpper . '_ADMIN', constant($moduleDirNameUpper . '_URL') . '/admin/index.php');
52
-    define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', constant($moduleDirNameUpper . '_URL') . '/assets/images/logoModule.png');
53
-    define($moduleDirNameUpper . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash
54
-    define($moduleDirNameUpper . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash
55
-    define($moduleDirNameUpper . '_CAT_IMAGES_URL', XOOPS_UPLOAD_URL . ' / ' . constant($moduleDirNameUpper . '_DIRNAME') . '/images/category');
56
-    define($moduleDirNameUpper . '_CAT_IMAGES_PATH', XOOPS_UPLOAD_PATH . '/' . constant($moduleDirNameUpper . '_DIRNAME') . ' / images / category');
57
-    define($moduleDirNameUpper . '_CACHE_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/');
58
-    define($moduleDirNameUpper . '_CONSTANTS_DEFINED', 1);
42
+if (!defined($moduleDirNameUpper.'_CONSTANTS_DEFINED')) {
43
+    define($moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__)));
44
+    define($moduleDirNameUpper.'_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/');
45
+    define($moduleDirNameUpper.'_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/');
46
+    define($moduleDirNameUpper.'_URL', XOOPS_URL.'/modules/'.$moduleDirName.'/');
47
+    define($moduleDirNameUpper.'_IMAGES_URL', constant($moduleDirNameUpper.'_URL').'/assets/images/');
48
+    define($moduleDirNameUpper.'_IMAGES_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/assets/images/');
49
+    define($moduleDirNameUpper.'_ADMIN_URL', constant($moduleDirNameUpper.'_URL').'/admin/');
50
+    define($moduleDirNameUpper.'_ADMIN_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/admin/');
51
+    define($moduleDirNameUpper.'_ADMIN', constant($moduleDirNameUpper.'_URL').'/admin/index.php');
52
+    define($moduleDirNameUpper.'_AUTHOR_LOGOIMG', constant($moduleDirNameUpper.'_URL').'/assets/images/logoModule.png');
53
+    define($moduleDirNameUpper.'_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$moduleDirName); // WITHOUT Trailing slash
54
+    define($moduleDirNameUpper.'_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$moduleDirName); // WITHOUT Trailing slash
55
+    define($moduleDirNameUpper.'_CAT_IMAGES_URL', XOOPS_UPLOAD_URL.' / '.constant($moduleDirNameUpper.'_DIRNAME').'/images/category');
56
+    define($moduleDirNameUpper.'_CAT_IMAGES_PATH', XOOPS_UPLOAD_PATH.'/'.constant($moduleDirNameUpper.'_DIRNAME').' / images / category');
57
+    define($moduleDirNameUpper.'_CACHE_PATH', XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/');
58
+    define($moduleDirNameUpper.'_CONSTANTS_DEFINED', 1);
59 59
 }
60 60
 
61 61
 $pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16);
@@ -64,15 +64,15 @@  discard block
 block discarded – undo
64 64
 //$pathModIcon32 = $helper->getModule()->getInfo('modicons32');
65 65
 
66 66
 $icons = [
67
-    'edit'    => "<img src='" . $pathIcon16 . "/edit.png'  alt=" . _EDIT . "' align='middle'>",
68
-    'delete'  => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>",
69
-    'clone'   => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>",
70
-    'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>",
71
-    'print'   => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>",
72
-    'pdf'     => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>",
73
-    'add'     => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>",
74
-    '0'       => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>",
75
-    '1'       => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>",
67
+    'edit'    => "<img src='".$pathIcon16."/edit.png'  alt="._EDIT."' align='middle'>",
68
+    'delete'  => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>",
69
+    'clone'   => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>",
70
+    'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>",
71
+    'print'   => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>",
72
+    'pdf'     => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>",
73
+    'add'     => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>",
74
+    '0'       => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>",
75
+    '1'       => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>",
76 76
 ];
77 77
 
78 78
 $debug = false;
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
     $GLOBALS['xoopsTpl'] = new \XoopsTpl();
86 86
 }
87 87
 
88
-$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL . '/modules/' . $moduleDirName);
88
+$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL.'/modules/'.$moduleDirName);
89 89
 // Local icons path
90 90
 if (is_object($helper->getModule())) {
91 91
     $pathModIcon16 = $helper->getModule()->getInfo('modicons16');
92 92
     $pathModIcon32 = $helper->getModule()->getInfo('modicons32');
93 93
 
94
-    $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL . '/modules/' . $moduleDirName . '/' . $pathModIcon16);
94
+    $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL.'/modules/'.$moduleDirName.'/'.$pathModIcon16);
95 95
     $GLOBALS['xoopsTpl']->assign('pathModIcon32', $pathModIcon32);
96 96
 }
Please login to merge, or discard this patch.
include/oninstall.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 function xoops_module_pre_install_extcal(\XoopsModule $module)
31 31
 {
32 32
     $moduleDirName = basename(dirname(__DIR__));
33
-    $utility     = new Extcal\Utility();
33
+    $utility = new Extcal\Utility();
34 34
 
35 35
     //check for minimum XOOPS version
36 36
     if (!$utility::checkVerXoops($module)) {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     $mod_tables = $module->getInfo('tables');
46 46
     foreach ($mod_tables as $table) {
47
-        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';');
47
+        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';');
48 48
     }
49 49
 
50 50
     return true;
@@ -73,18 +73,18 @@  discard block
 block discarded – undo
73 73
      */
74 74
 
75 75
     // Access right
76
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
77
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
78
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
76
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
77
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
78
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
79 79
 
80 80
     // Can submit
81
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
81
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
82 82
 
83 83
     // Auto approve
84
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
84
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
85 85
 
86 86
     //    $moduleDirName = $xoopsModule->getVar('dirname');
87
-    $configurator = require_once $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php');
87
+    $configurator = require_once $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php');
88 88
 
89 89
     /** @var Extcal\Utility $utility */
90 90
     $utility = new \XoopsModules\Extcal\Utility();
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
         }
97 97
     }
98 98
     if (count($configurator['copyFiles']) > 0) {
99
-        $file =  dirname(__DIR__) . '/assets/images/blank.png';
99
+        $file = dirname(__DIR__).'/assets/images/blank.png';
100 100
         foreach (array_keys($configurator['copyFiles']) as $i) {
101
-            $dest = $configurator['copyFiles'][$i] . '/blank.png';
101
+            $dest = $configurator['copyFiles'][$i].'/blank.png';
102 102
             $utility::copyFile($file, $dest);
103 103
         }
104 104
     }
Please login to merge, or discard this patch.
view_year.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
 
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_YEAR, 'file' => _EXTCAL_FILE_YEAR];
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();
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     'cat'          => $cat,
60 60
     'externalKeys' => 'cat_id',
61 61
 ];
62
-$events   = $eventHandler->getEventsOnPeriode($criteres);
62
+$events = $eventHandler->getEventsOnPeriode($criteres);
63 63
 /**********************************************************************/
64 64
 $eventsArray = $events;
65 65
 // Formating date
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 // Making navig data
104 104
 $navig = [
105 105
     'prev' => [
106
-        'uri'  => 'year=' . $prevYear,
106
+        'uri'  => 'year='.$prevYear,
107 107
         'name' => $prevYear,
108 108
     ],
109 109
     'this' => [
110
-        'uri'  => 'year=' . $year,
110
+        'uri'  => 'year='.$year,
111 111
         'name' => $year,
112 112
     ],
113 113
     'next' => [
114
-        'uri'  => 'year=' . $nexYear,
114
+        'uri'  => 'year='.$nexYear,
115 115
         'name' => $nexYear,
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);
@@ -171,4 +171,4 @@  discard block
 block discarded – undo
171 171
 $xoopsTpl->assign('lang', $lang);
172 172
 $xoopsTpl->assign('view', 'year');
173 173
 
174
-require_once XOOPS_ROOT_PATH . '/footer.php';
174
+require_once XOOPS_ROOT_PATH.'/footer.php';
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
@@ -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_WEEK, 'file' => _EXTCAL_FILE_AGENDA_WEEK];
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
 /** @var Extcal\Helper $helper */
11 11
 $helper = Extcal\Helper::getInstance();
12 12
 
@@ -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
-require_once XOOPS_ROOT_PATH . '/footer.php';
165
+require_once XOOPS_ROOT_PATH.'/footer.php';
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
@@ -2,8 +2,8 @@  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();
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 //require_once __DIR__   . '/preloads/autoloader.php';
16 16
 //$catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
17 17
 
18
-require_once __DIR__ . '/header.php';
18
+require_once __DIR__.'/header.php';
19 19
 
20 20
 /* ========================================================================== */
21 21
 $year  = \Xmf\Request::getInt('year', date('Y'), 'GET');
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     'cat'          => $cat,
43 43
     'externalKeys' => 'cat_id',
44 44
 ];
45
-$events   = $eventHandler->getEventsOnPeriode($criteres);
45
+$events = $eventHandler->getEventsOnPeriode($criteres);
46 46
 /**********************************************************************/
47 47
 
48 48
 // Calculating timestamp for the begin and the end of the month
@@ -138,21 +138,21 @@  discard block
 block discarded – undo
138 138
 // Making navig data
139 139
 $navig = [
140 140
     'prev' => [
141
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
141
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
142 142
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $pMonthCalObj->getTimestamp()),
143 143
     ],
144 144
     'this' => [
145
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
145
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
146 146
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $monthCalObj->getTimestamp()),
147 147
     ],
148 148
     'next' => [
149
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
149
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
150 150
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $nMonthCalObj->getTimestamp()),
151 151
     ],
152 152
 ];
153 153
 
154 154
 // Title of the page
155
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
155
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
156 156
 
157 157
 // Assigning navig data to the template
158 158
 $xoopsTpl->assign('navig', $navig);
@@ -192,4 +192,4 @@  discard block
 block discarded – undo
192 192
 $xoopsTpl->assign('lang', $lang);
193 193
 $xoopsTpl->assign('view', 'calmonth');
194 194
 
195
-require_once XOOPS_ROOT_PATH . '/footer.php';
195
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_edit.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_edit.php';
20
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_edit.php';
Please login to merge, or discard this patch.
class/Location.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 //Kraven 30
22 22
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
23 23
 
24
-require_once XOOPS_ROOT_PATH . '/kernel/object.php';
24
+require_once XOOPS_ROOT_PATH.'/kernel/object.php';
25 25
 
26 26
 //class Event extends \XoopsObject
27 27
 //class extcal_location extends \XoopsObject
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $title = $this->isNew() ? sprintf(_MD_EXTCAL_LOCATION_ADD) : sprintf(_MD_EXTCAL_LOCATION_EDIT);
73 73
 
74
-        require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
74
+        require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
75 75
 
76 76
         $form = new \XoopsThemeForm($title, 'form', $action, 'post', true);
77 77
         $form->setExtra('enctype="multipart/form-data"');
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $form->addElement(new \XoopsFormTextArea(_MD_EXTCAL_LOCATION_HORAIRES, 'horaires', $this->getVar('horaires'), 3, 40));
91 91
         $form->addElement(new \XoopsFormTextArea(_MD_EXTCAL_LOCATION_DIVERS, 'divers', $this->getVar('divers'), 5, 40));
92 92
         //$form->addElement( new \XoopsFormTextArea(_MD_EXTCAL_LOCATION_TARIFS, 'tarifs', $this->getVar("tarifs"), 5, 40));
93
-        $form->addElement(new \XoopsFormText(_MD_EXTCAL_LOCATION_TARIFS . ' ( ' . _MD_EXTCAL_DEVISE2 . ' )', 'tarifs', 20, 20, $this->getVar('tarifs')), false);
93
+        $form->addElement(new \XoopsFormText(_MD_EXTCAL_LOCATION_TARIFS.' ( '._MD_EXTCAL_DEVISE2.' )', 'tarifs', 20, 20, $this->getVar('tarifs')), false);
94 94
 
95 95
         //$form->addElement( new \XoopsFormTextArea(_MD_EXTCAL_LOCATION_MAP, 'map', $this->getVar("map"), 5, 40));
96 96
         $form->addElement(new \XoopsFormText(_MD_EXTCAL_LOCATION_MAP, 'map', 150, 255, $this->getVar('map')), false);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         //Logo
99 99
         $file_tray = new \XoopsFormElementTray(sprintf(_MD_EXTCAL_FORM_IMG, 2), '');
100 100
         if ('' != $this->getVar('logo')) {
101
-            $file_tray->addElement(new \XoopsFormLabel('', "<img src='" . XOOPS_URL . '/uploads/extcal/location/' . $this->getVar('logo') . "' name='image' id='image' alt=''><br><br>"));
101
+            $file_tray->addElement(new \XoopsFormLabel('', "<img src='".XOOPS_URL.'/uploads/extcal/location/'.$this->getVar('logo')."' name='image' id='image' alt=''><br><br>"));
102 102
             $check_del_img = new \XoopsFormCheckBox('', 'delimg');
103 103
             $check_del_img->addOption(1, _MD_EXTCAL_DEL_IMG);
104 104
             $file_tray->addElement($check_del_img);
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
         }
110 110
         $file_img->setExtra("size ='40'");
111 111
         $file_tray->addElement($file_img);
112
-        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int)(3145728 / 1000), 500, 500);
113
-        $file_label = new \XoopsFormLabel('', '<br>' . $msg);
112
+        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int) (3145728 / 1000), 500, 500);
113
+        $file_label = new \XoopsFormLabel('', '<br>'.$msg);
114 114
         $file_tray->addElement($file_label);
115 115
         $form->addElement($file_tray);
116 116
         $form->addElement(new \XoopsFormHidden('file', $this->getVar('logo')));
Please login to merge, or discard this patch.