Completed
Push — master ( ec1681...68c045 )
by Michael
02:41
created
class/pear/Calendar/Decorator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * Returns the date as an associative array (helper method).
138 138
      *
139
-     * @param mixed $stamp timestamp (leave empty for current timestamp)
139
+     * @param integer $stamp timestamp (leave empty for current timestamp)
140 140
      *
141 141
      * @return array
142 142
      */
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      *
243 243
      * @param array $sDates array containing Calendar objects to select (optional)
244 244
      *
245
-     * @return bool
245
+     * @return boolean|null
246 246
      * @abstract
247 247
      */
248 248
     public function build($sDates = [])
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/20.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public $entries = [];
26 26
 
27 27
     /**
28
-     * @param $calendar
28
+     * @param Calendar_Day $calendar
29 29
      */
30 30
     public function __construct($calendar)
31 31
     {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     define('CALENDAR_ROOT', '../../');
12 12
 }
13 13
 
14
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
15
-require_once CALENDAR_ROOT . 'Day.php';
16
-require_once CALENDAR_ROOT . 'Decorator.php';
14
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
15
+require_once CALENDAR_ROOT.'Day.php';
16
+require_once CALENDAR_ROOT.'Decorator.php';
17 17
 
18 18
 // accepts multiple entries
19 19
 
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function build($events = [])
78 78
     {
79
-        require_once CALENDAR_ROOT . 'Day.php';
80
-        require_once CALENDAR_ROOT . 'Table/Helper.php';
79
+        require_once CALENDAR_ROOT.'Day.php';
80
+        require_once CALENDAR_ROOT.'Table/Helper.php';
81 81
 
82 82
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
83 83
         $this->cE          = $this->getEngine();
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 <h2>Sample Calendar Payload Decorator (using <?php echo CALENDAR_ENGINE; ?> engine)</h2>
231 231
 <table class="calendar" width="98%" cellspacing="0" cellpadding="0">
232 232
     <caption>
233
-        <?php echo $MonthDecorator->thisMonth() . ' / ' . $MonthDecorator->thisYear(); ?>
233
+        <?php echo $MonthDecorator->thisMonth().' / '.$MonthDecorator->thisYear(); ?>
234 234
     </caption>
235 235
     <tr>
236 236
         <th>Monday</th>
@@ -254,14 +254,14 @@  discard block
 block discarded – undo
254 254
             echo ' calCellEmpty';
255 255
         }
256 256
         echo '">';
257
-        echo '<div class="dayNumber">' . $Day->thisDay() . '</div>';
257
+        echo '<div class="dayNumber">'.$Day->thisDay().'</div>';
258 258
 
259 259
         if ($Day->isEmpty()) {
260 260
             echo '&nbsp;';
261 261
         } else {
262 262
             echo '<div class="dayContents"><ul>';
263 263
             while ($entry = $Day->getEntry()) {
264
-                echo '<li>' . $entry['desc'] . '</li>';
264
+                echo '<li>'.$entry['desc'].'</li>';
265 265
                 //you can print the time range as well
266 266
             }
267 267
             echo '</ul></div>';
Please login to merge, or discard this patch.
view_calendar-month.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = ['view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH];
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
13 13
 /* ========================================================================== */
14 14
 
15 15
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     'cat'          => $cat,
32 32
     'externalKeys' => 'cat_id',
33 33
 ];
34
-$events   = $eventHandler->getEventsOnPeriode($criteres);
34
+$events = $eventHandler->getEventsOnPeriode($criteres);
35 35
 /**********************************************************************/
36 36
 
37 37
 // Calculating timestamp for the begin and the end of the month
@@ -126,21 +126,21 @@  discard block
 block discarded – undo
126 126
 // Making navig data
127 127
 $navig = [
128 128
     'prev' => [
129
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
129
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
130 130
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
131 131
     ],
132 132
     'this' => [
133
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
133
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
134 134
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
135 135
     ],
136 136
     'next' => [
137
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
137
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
138 138
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
139 139
     ],
140 140
 ];
141 141
 
142 142
 // Title of the page
143
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
143
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
144 144
 
145 145
 // Assigning navig data to the template
146 146
 $xoopsTpl->assign('navig', $navig);
@@ -180,4 +180,4 @@  discard block
 block discarded – undo
180 180
 $xoopsTpl->assign('lang', $lang);
181 181
 $xoopsTpl->assign('view', 'calmonth');
182 182
 
183
-include XOOPS_ROOT_PATH . '/footer.php';
183
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
include/onupdate.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser)
22 22
     || !$GLOBALS['xoopsUser']->IsAdmin()) {
23
-    exit('Restricted access' . PHP_EOL);
23
+    exit('Restricted access'.PHP_EOL);
24 24
 }
25 25
 
26 26
 /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 function xoops_module_pre_update_extcal(XoopsModule $xoopsModule)
46 46
 {
47 47
     $moduleDirName = basename(dirname(__DIR__));
48
-    $utilityClass  = ucfirst($moduleDirName) . 'Utility';
48
+    $utilityClass  = ucfirst($moduleDirName).'Utility';
49 49
     if (!class_exists($utilityClass)) {
50 50
         xoops_load('utility', $moduleDirName);
51 51
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         return true;
82 82
     }
83 83
 
84
-    $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/';
84
+    $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/';
85 85
     $cls = 'extcal_%1$s';
86 86
 
87 87
     $version = [
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     foreach ($version as $key => $val) {
101 101
         if ($previousVersion < $val) {
102 102
             $name = sprintf($cls, $key);
103
-            $f    = $fld . $name . '.php';
103
+            $f    = $fld.$name.'.php';
104 104
             //ext_echo ("<hr>{$f}<hr>");
105 105
             if (is_readable($f)) {
106 106
                 echo "mise à jour version : {$key} = {$val}<br>";
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     if ($previousVersion < 240) {
114
-        $configurator = include __DIR__ . '/config.php';
114
+        $configurator = include __DIR__.'/config.php';
115 115
         /** @var ExtcalUtility $utilityClass */
116
-        $utilityClass = ucfirst($moduleDirName) . 'Utility';
116
+        $utilityClass = ucfirst($moduleDirName).'Utility';
117 117
         if (!class_exists($utilityClass)) {
118 118
             xoops_load('utility', $moduleDirName);
119 119
         }
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
         //delete old HTML templates
122 122
         if (count($configurator['templateFolders']) > 0) {
123 123
             foreach ($configurator['templateFolders'] as $folder) {
124
-                $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder);
124
+                $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder);
125 125
                 if (is_dir($templateFolder)) {
126 126
                     $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), ['..', '.']);
127 127
                     foreach ($templateList as $k => $v) {
128
-                        $fileInfo = new SplFileInfo($templateFolder . $v);
128
+                        $fileInfo = new SplFileInfo($templateFolder.$v);
129 129
                         if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') {
130
-                            if (file_exists($templateFolder . $v)) {
131
-                                unlink($templateFolder . $v);
130
+                            if (file_exists($templateFolder.$v)) {
131
+                                unlink($templateFolder.$v);
132 132
                             }
133 133
                         }
134 134
                     }
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
 
139 139
         //  ---  COPY blank.png FILES ---------------
140 140
         if (count($configurator['copyFiles']) > 0) {
141
-            $file = __DIR__ . '/../assets/images/blank.png';
141
+            $file = __DIR__.'/../assets/images/blank.png';
142 142
             foreach (array_keys($configurator['copyFiles']) as $i) {
143
-                $dest = $configurator['copyFiles'][$i] . '/blank.png';
143
+                $dest = $configurator['copyFiles'][$i].'/blank.png';
144 144
                 $utilityClass::copyFile($file, $dest);
145 145
             }
146 146
         }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         if (count($configurator['oldFiles']) > 0) {
150 150
             //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
151 151
             foreach (array_keys($configurator['oldFiles']) as $i) {
152
-                $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]);
152
+                $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]);
153 153
                 if (is_file($tempFile)) {
154 154
                     unlink($tempFile);
155 155
                 }
@@ -159,14 +159,14 @@  discard block
 block discarded – undo
159 159
         //---------------------
160 160
 
161 161
         //delete .html entries from the tpl table
162
-        $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $xoopsModule->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
162
+        $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$xoopsModule->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'";
163 163
         $xoopsDB->queryF($sql);
164 164
 
165 165
         // Load class XoopsFile ====================
166 166
         xoops_load('XoopsFile');
167 167
 
168 168
         //delete /images directory ============
169
-        $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname', 'n') . '/images/');
169
+        $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$xoopsModule->getVar('dirname', 'n').'/images/');
170 170
         $folderHandler   = XoopsFile::getHandler('folder', $imagesDirectory);
171 171
         $folderHandler->delete($imagesDirectory);
172 172
     }
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/etablissement';
44
+    $dir = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement';
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/config.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,18 +17,18 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../mainfile.php';
20
+require_once __DIR__.'/../../../mainfile.php';
21 21
 $moduleDirName = basename(dirname(__DIR__));
22 22
 
23 23
 if (!defined('EXTCAL_DIRNAME')) {
24 24
     define('EXTCAL_DIRNAME', $moduleDirName);
25
-    define('EXTCAL_PATH', XOOPS_ROOT_PATH . '/modules/' . EXTCAL_DIRNAME);
26
-    define('EXTCAL_URL', XOOPS_URL . '/modules/' . EXTCAL_DIRNAME);
27
-    define('EXTCAL_ADMIN', EXTCAL_URL . '/admin/index.php');
28
-    define('EXTCAL_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . EXTCAL_DIRNAME);
29
-    define('EXTCAL_AUTHOR_LOGOIMG', EXTCAL_URL . '/assets/images/logoModule.png');
30
-    define('EXTCAL_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . EXTCAL_DIRNAME); // WITHOUT Trailing slash
31
-    define('EXTCAL_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . EXTCAL_DIRNAME); // WITHOUT Trailing slash
25
+    define('EXTCAL_PATH', XOOPS_ROOT_PATH.'/modules/'.EXTCAL_DIRNAME);
26
+    define('EXTCAL_URL', XOOPS_URL.'/modules/'.EXTCAL_DIRNAME);
27
+    define('EXTCAL_ADMIN', EXTCAL_URL.'/admin/index.php');
28
+    define('EXTCAL_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.EXTCAL_DIRNAME);
29
+    define('EXTCAL_AUTHOR_LOGOIMG', EXTCAL_URL.'/assets/images/logoModule.png');
30
+    define('EXTCAL_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.EXTCAL_DIRNAME); // WITHOUT Trailing slash
31
+    define('EXTCAL_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.EXTCAL_DIRNAME); // WITHOUT Trailing slash
32 32
 }
33 33
 
34 34
 //Configurator
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     'name'          => 'Module Configurator',
37 37
     'uploadFolders' => [
38 38
         EXTCAL_UPLOAD_PATH,
39
-        EXTCAL_UPLOAD_PATH . '/etablissement'
39
+        EXTCAL_UPLOAD_PATH.'/etablissement'
40 40
     ],
41 41
     //    'copyFiles'     => array(
42 42
     //        EXTCAL_UPLOAD_PATH,
@@ -57,4 +57,4 @@  discard block
 block discarded – undo
57 57
 
58 58
 // module information
59 59
 $mod_copyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
60
-                     <img src='" . EXTCAL_AUTHOR_LOGOIMG . "' alt='XOOPS Project'></a>";
60
+                     <img src='" . EXTCAL_AUTHOR_LOGOIMG."' alt='XOOPS Project'></a>";
Please login to merge, or discard this patch.
include/mail_fnc.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
  * que la classe correspondante de la table a été générées avec classGenerator
21 21
  **/
22 22
 
23
-require_once __DIR__ . '/../../../class/uploader.php';
24
-require_once __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
25
-require_once __DIR__ . '/../class/utility.php';
26
-require_once __DIR__ . '/constantes.php';
27
-require_once __DIR__ . '/../../../class/template.php';
23
+require_once __DIR__.'/../../../class/uploader.php';
24
+require_once __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
25
+require_once __DIR__.'/../class/utility.php';
26
+require_once __DIR__.'/constantes.php';
27
+require_once __DIR__.'/../../../class/template.php';
28 28
 
29 29
 /********************************************************************
30 30
  *
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     $action  = ''; //a voir   JJD
139 139
     $message = sprintf($tplMessage, $acteur['name']);
140 140
     //$subject .= ' (' . rand(1, 100) . ')';
141
-    $subject .= ' - ' . $acteur['name'];
141
+    $subject .= ' - '.$acteur['name'];
142 142
     //--------------------------------------------------------------
143 143
     //Chargement du template dans le dossier de langue
144 144
     //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html';
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     if ($mode == _EXTCAL_HEADER_HTML) {
181 181
         $template = 'extcal_mail_member_html.tpl';
182 182
     }
183
-    $mail_body = $tpl->fetch('db:' . $template);
183
+    $mail_body = $tpl->fetch('db:'.$template);
184 184
 
185 185
     extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|');
186 186
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     $header   = [];
314 314
     $header[] = "From: {$emailSender}";
315 315
     $header[] = "Reply-To: {$emailSender}";
316
-    $header[] = 'X-Mailer: PHP/' . PHP_VERSION;
316
+    $header[] = 'X-Mailer: PHP/'.PHP_VERSION;
317 317
 
318 318
     if ($mode == _EXTCAL_HEADER_HTML) {
319 319
         $header[] = 'MIME-Version: 1.0';
Please login to merge, or discard this patch.
include/oninstall.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 function xoops_module_pre_install_extcal(XoopsModule $module)
29 29
 {
30 30
     $moduleDirName = basename(dirname(__DIR__));
31
-    $className     = ucfirst($moduleDirName) . 'Utility';
31
+    $className     = ucfirst($moduleDirName).'Utility';
32 32
     if (!class_exists($className)) {
33 33
         xoops_load('utility', $moduleDirName);
34 34
     }
@@ -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,21 +73,21 @@  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 = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php');
87
+    $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php');
88 88
 
89 89
     /** @var ExtcalUtility $utilityClass */
90
-    $utilityClass = ucfirst($moduleDirName) . 'Utility';
90
+    $utilityClass = ucfirst($moduleDirName).'Utility';
91 91
     if (!class_exists($utilityClass)) {
92 92
         xoops_load('utility', $moduleDirName);
93 93
     }
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
         }
100 100
     }
101 101
     if (count($configurator['copyFiles']) > 0) {
102
-        $file = __DIR__ . '/../assets/images/blank.png';
102
+        $file = __DIR__.'/../assets/images/blank.png';
103 103
         foreach (array_keys($configurator['copyFiles']) as $i) {
104
-            $dest = $configurator['copyFiles'][$i] . '/blank.png';
104
+            $dest = $configurator['copyFiles'][$i].'/blank.png';
105 105
             $utilityClass::copyFile($file, $dest);
106 106
         }
107 107
     }
Please login to merge, or discard this patch.
include/constantes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 
109 109
 define(
110 110
     '_EXTCAL_NAV_LIST',
111
-       _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT
111
+        _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT
112 112
 );
113 113
 
114 114
 define('_EXTCAL_PREFIX_VIEW', 'view_');
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 define('_EXTCAL_CLN_EVENT', 'ExtcalEvent');
42 42
 
43 43
 //-------------------------------------------------------------------
44
-define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear');
44
+define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear');
45 45
 //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' );
46 46
 
47 47
 $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT;
@@ -76,22 +76,22 @@  discard block
 block discarded – undo
76 76
 //}
77 77
 define('_EXTCAL_PEAR_ROOT', $pear_path);
78 78
 
79
-define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar');
80
-define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/');
79
+define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar');
80
+define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/');
81 81
 
82 82
 //-------------------------------------------------------------------
83 83
 define('_EXTCAL_SHOW_NO_PICTURE', false);
84 84
 
85 85
 define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/');
86
-define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/');
87
-define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/');
88
-define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/');
89
-define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/');
90
-define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/');
86
+define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/');
87
+define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/');
88
+define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/');
89
+define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/');
90
+define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/');
91 91
 
92 92
 define('_EXTCAL_IMG_INTERVAL', 'interval04.png');
93
-define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL);
94
-define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL);
93
+define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL);
94
+define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL);
95 95
 
96 96
 //define('_EXTCAL_DIRNAME',    $xoopsModule->getVar('dirname'));
97 97
 
@@ -108,22 +108,22 @@  discard block
 block discarded – undo
108 108
 
109 109
 define(
110 110
     '_EXTCAL_NAV_LIST',
111
-       _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT
111
+       _EXTCAL_NAV_CALMONTH."\n"._EXTCAL_NAV_CALWEEK."\n"._EXTCAL_NAV_YEAR."\n"._EXTCAL_NAV_MONTH."\n"._EXTCAL_NAV_WEEK."\n"._EXTCAL_NAV_DAY."\n"._EXTCAL_NAV_AGENDA_WEEK."\n"._EXTCAL_NAV_AGENDA_DAY."\n"._EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT
112 112
 );
113 113
 
114 114
 define('_EXTCAL_PREFIX_VIEW', 'view_');
115 115
 define('_EXTCAL_SUFFIX_VIEW', '.php');
116 116
 
117
-define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW);
118
-define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW);
119
-define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW);
120
-define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW);
121
-define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW);
122
-define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW);
123
-define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW);
124
-define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW);
125
-define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW);
126
-define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW);
117
+define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW);
118
+define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW);
119
+define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW);
120
+define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW);
121
+define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW);
122
+define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW);
123
+define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW);
124
+define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW);
125
+define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW);
126
+define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW);
127 127
 
128 128
 define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php');
129 129
 
Please login to merge, or discard this patch.