Completed
Push — master ( 3f8ec2...f62223 )
by Michael
03:23 queued 14s
created
class/pear/Calendar/docs/examples/6.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     list($usec, $sec) = explode(' ', microtime());
10 10
 
11
-    return (float)$usec + (float)$sec;
11
+    return (float) $usec + (float) $sec;
12 12
 }
13 13
 
14 14
 $start = getmicrotime();
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
 if (!@include 'Calendar/Calendar.php') {
17 17
     define('CALENDAR_ROOT', '../../');
18 18
 }
19
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
20
-require_once CALENDAR_ROOT . 'Day.php';
19
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
20
+require_once CALENDAR_ROOT.'Day.php';
21 21
 
22 22
 if (!isset($_GET['y'])) {
23 23
     $_GET['y'] = date('Y');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 <anchor>
49 49
                     Back to Month View
50 50
                     <go href="<?php
51
-                    echo '?y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . '&amp;mime=wml'; ?>">
51
+                    echo '?y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay().'&amp;mime=wml'; ?>">
52 52
                 </anchor>
53 53
             </p>
54 54
             <table>
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 $Day->build();
57 57
             while ($Hour = $Day->fetch()) {
58 58
                 echo "<tr>\n";
59
-                echo '<td>' . date('g a', $Hour->getTimestamp()) . "</td><td>Free time!</td>\n";
59
+                echo '<td>'.date('g a', $Hour->getTimestamp())."</td><td>Free time!</td>\n";
60 60
                 echo "</tr>\n";
61 61
             } ?>
62 62
             </table>
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
                 if ($Day->isEmpty()) {
84 84
                     echo "<td></td>\n";
85 85
                 } elseif ($Day->isSelected()) {
86
-                    echo '<td><anchor><strong><u>' . $Day->thisDay() . "</u></strong>\n<go href=\"" . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "&amp;mime=wml\">\n</anchor></td>\n";
86
+                    echo '<td><anchor><strong><u>'.$Day->thisDay()."</u></strong>\n<go href=\"".$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."&amp;mime=wml\">\n</anchor></td>\n";
87 87
                 } else {
88
-                    echo '<td><anchor>' . $Day->thisDay() . "\n<go href=\"?viewday=true&amp;y=" . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "&amp;mime=wml\"></anchor></td>\n";
88
+                    echo '<td><anchor>'.$Day->thisDay()."\n<go href=\"?viewday=true&amp;y=".$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."&amp;mime=wml\"></anchor></td>\n";
89 89
                 }
90 90
                 if ($Day->isLast()) {
91 91
                     echo "</tr>\n";
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                         <anchor>
97 97
                             &lt;&lt;
98 98
                             <go href="<?php
99
-                            echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->prevMonth() . '&amp;d=' . $Month->thisDay() . '&amp;mime=wml'; ?>">
99
+                            echo '?y='.$Month->thisYear().'&amp;m='.$Month->prevMonth().'&amp;d='.$Month->thisDay().'&amp;mime=wml'; ?>">
100 100
                         </anchor>
101 101
                     </td>
102 102
                     <td></td>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                         <anchor>
109 109
                             &gt;&gt;
110 110
                             <go href="<?php
111
-                            echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->nextMonth() . '&amp;d=' . $Month->thisDay() . '&amp;mime=wml'; ?>">
111
+                            echo '?y='.$Month->thisYear().'&amp;m='.$Month->nextMonth().'&amp;d='.$Month->thisDay().'&amp;mime=wml'; ?>">
112 112
                         </anchor>
113 113
                     </td>
114 114
                 </tr>
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             <?php
118 118
         } ?>
119 119
         <p><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Back to HTML</a></p>
120
-        <?php echo '<p>Took: ' . (getmicrotime() - $start) . ' seconds</p>'; ?>
120
+        <?php echo '<p>Took: '.(getmicrotime() - $start).' seconds</p>'; ?>
121 121
     </wml>
122 122
     <?php
123 123
     #-----------------------------------------------------------------------------#
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
         <p>
142 142
             <anchor>
143 143
                 <a href="<?php
144
-                echo '?y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay(); ?>">Back to Month View</a>
144
+                echo '?y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay(); ?>">Back to Month View</a>
145 145
         </p>
146 146
         <table>
147 147
             <?php
148 148
             $Day->build();
149 149
         while ($Hour = $Day->fetch()) {
150 150
             echo "<tr>\n";
151
-            echo '<td>' . date('g a', $Hour->getTimestamp()) . "</td><td>Free time!</td>\n";
151
+            echo '<td>'.date('g a', $Hour->getTimestamp())."</td><td>Free time!</td>\n";
152 152
             echo "</tr>\n";
153 153
         } ?>
154 154
         </table>
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
             if ($Day->isEmpty()) {
176 176
                 echo "<td></td>\n";
177 177
             } elseif ($Day->isSelected()) {
178
-                echo '<td><a href="' . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . '&amp;wml"><strong><u>' . $Day->thisDay() . "</u></strong></a></td>\n";
178
+                echo '<td><a href="'.$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay().'&amp;wml"><strong><u>'.$Day->thisDay()."</u></strong></a></td>\n";
179 179
             } else {
180
-                echo '<td><a href="' . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . '">' . $Day->thisDay() . "</a></td>\n";
180
+                echo '<td><a href="'.$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay().'">'.$Day->thisDay()."</a></td>\n";
181 181
             }
182 182
             if ($Day->isLast()) {
183 183
                 echo "</tr>\n";
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             <tr>
187 187
                 <td>
188 188
                     <a href="<?php
189
-                    echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->prevMonth() . '&amp;d=' . $Month->thisDay(); ?>">
189
+                    echo '?y='.$Month->thisYear().'&amp;m='.$Month->prevMonth().'&amp;d='.$Month->thisDay(); ?>">
190 190
                         &lt;&lt;</a>
191 191
                 </td>
192 192
                 <td></td>
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                 <td></td>
197 197
                 <td>
198 198
                     <a href="<?php
199
-                    echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->nextMonth() . '&amp;d=' . $Month->thisDay(); ?>">&gt;&gt;</a>
199
+                    echo '?y='.$Month->thisYear().'&amp;m='.$Month->nextMonth().'&amp;d='.$Month->thisDay(); ?>">&gt;&gt;</a>
200 200
                 </td>
201 201
             </tr>
202 202
         </table>
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         <?php
205 205
     } ?>
206 206
 
207
-    <?php echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>'; ?>
207
+    <?php echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>'; ?>
208 208
     </body>
209 209
     </html>
210 210
     <?php
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/5.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 {
8 8
     list($usec, $sec) = explode(' ', microtime());
9 9
 
10
-    return (float)$usec + (float)$sec;
10
+    return (float) $usec + (float) $sec;
11 11
 }
12 12
 
13 13
 $start = getmicrotime();
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
 if (!@include 'Calendar/Calendar.php') {
16 16
     define('CALENDAR_ROOT', '../../');
17 17
 }
18
-require_once CALENDAR_ROOT . 'Year.php';
19
-require_once CALENDAR_ROOT . 'Month.php';
20
-require_once CALENDAR_ROOT . 'Day.php';
21
-require_once CALENDAR_ROOT . 'Hour.php';
22
-require_once CALENDAR_ROOT . 'Minute.php';
23
-require_once CALENDAR_ROOT . 'Second.php';
18
+require_once CALENDAR_ROOT.'Year.php';
19
+require_once CALENDAR_ROOT.'Month.php';
20
+require_once CALENDAR_ROOT.'Day.php';
21
+require_once CALENDAR_ROOT.'Hour.php';
22
+require_once CALENDAR_ROOT.'Minute.php';
23
+require_once CALENDAR_ROOT.'Second.php';
24 24
 
25 25
 // Initialize if not set
26 26
 if (!isset($_POST['y'])) {
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
 if (isset($_POST['update'])) {
54 54
     $Second = new Calendar_Second($_POST['y'], $_POST['m'], $_POST['d'], $_POST['h'], $_POST['i'], $_POST['s']);
55 55
     if (!$Second->isValid()) {
56
-        $V =& $Second->getValidator();
56
+        $V = & $Second->getValidator();
57 57
         echo '<p>Validation failed:</p>';
58 58
         while ($error = $V->fetch()) {
59
-            echo $error->toString() . '<br>';
59
+            echo $error->toString().'<br>';
60 60
         }
61 61
     } else {
62 62
         echo '<p>Validation success.</p>';
63
-        echo '<p>New timestamp is: ' . $Second->getTimestamp() . ' which could be used to update a database, for example';
63
+        echo '<p>New timestamp is: '.$Second->getTimestamp().' which could be used to update a database, for example';
64 64
     }
65 65
 } else {
66 66
     $Year   = new Calendar_Year($_POST['y']);
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
     $Year->build($selection);
79 79
     while ($Child = $Year->fetch()) {
80 80
         if ($Child->isSelected()) {
81
-            echo '<option value="' . $Child->thisMonth() . '" selected>' . $Child->thisMonth() . "\n";
81
+            echo '<option value="'.$Child->thisMonth().'" selected>'.$Child->thisMonth()."\n";
82 82
         } else {
83
-            echo '<option value="' . $Child->thisMonth() . '">' . $Child->thisMonth() . "\n";
83
+            echo '<option value="'.$Child->thisMonth().'">'.$Child->thisMonth()."\n";
84 84
         }
85 85
     } ?>
86 86
     </select>&nbsp;
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
     $Month->build($selection);
91 91
     while ($Child = $Month->fetch()) {
92 92
         if ($Child->isSelected()) {
93
-            echo '<option value="' . $Child->thisDay() . '" selected>' . $Child->thisDay() . "\n";
93
+            echo '<option value="'.$Child->thisDay().'" selected>'.$Child->thisDay()."\n";
94 94
         } else {
95
-            echo '<option value="' . $Child->thisDay() . '">' . $Child->thisDay() . "\n";
95
+            echo '<option value="'.$Child->thisDay().'">'.$Child->thisDay()."\n";
96 96
         }
97 97
     } ?>
98 98
     </select>&nbsp;
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
     $Day->build($selection);
103 103
     while ($Child = $Day->fetch()) {
104 104
         if ($Child->isSelected()) {
105
-            echo '<option value="' . $Child->thisHour() . '" selected>' . $Child->thisHour() . "\n";
105
+            echo '<option value="'.$Child->thisHour().'" selected>'.$Child->thisHour()."\n";
106 106
         } else {
107
-            echo '<option value="' . $Child->thisHour() . '">' . $Child->thisHour() . "\n";
107
+            echo '<option value="'.$Child->thisHour().'">'.$Child->thisHour()."\n";
108 108
         }
109 109
     } ?>
110 110
     </select>&nbsp;
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
     $Hour->build($selection);
115 115
     while ($Child = $Hour->fetch()) {
116 116
         if ($Child->isSelected()) {
117
-            echo '<option value="' . $Child->thisMinute() . '" selected>' . $Child->thisMinute() . "\n";
117
+            echo '<option value="'.$Child->thisMinute().'" selected>'.$Child->thisMinute()."\n";
118 118
         } else {
119
-            echo '<option value="' . $Child->thisMinute() . '">' . $Child->thisMinute() . "\n";
119
+            echo '<option value="'.$Child->thisMinute().'">'.$Child->thisMinute()."\n";
120 120
         }
121 121
     } ?>
122 122
     </select>&nbsp;
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
     $Minute->build($selection);
127 127
     while ($Child = $Minute->fetch()) {
128 128
         if ($Child->isSelected()) {
129
-            echo '<option value="' . $Child->thisSecond() . '" selected>' . $Child->thisSecond() . "\n";
129
+            echo '<option value="'.$Child->thisSecond().'" selected>'.$Child->thisSecond()."\n";
130 130
         } else {
131
-            echo '<option value="' . $Child->thisSecond() . '">' . $Child->thisSecond() . "\n";
131
+            echo '<option value="'.$Child->thisSecond().'">'.$Child->thisSecond()."\n";
132 132
         }
133 133
     } ?>
134 134
     </select>&nbsp;
@@ -136,6 +136,6 @@  discard block
 block discarded – undo
136 136
     <?php
137 137
 }
138 138
     ?>
139
-    <?php echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>'; ?>
139
+    <?php echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>'; ?>
140 140
 </body>
141 141
 </html>
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', 'Event');
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.
event_notmember.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-include __DIR__ . '/../../mainfile.php';
7
+include __DIR__.'/../../mainfile.php';
8 8
 
9
-require_once __DIR__ . '/include/constantes.php';
10
-require_once __DIR__ . '/include/mail_fnc.php';
9
+require_once __DIR__.'/include/constantes.php';
10
+require_once __DIR__.'/include/mail_fnc.php';
11 11
 
12 12
 /*
13 13
 Extcal\Utility::echoArray($_POST);
@@ -24,20 +24,20 @@  discard block
 block discarded – undo
24 24
 $member_uid = $xoopsUser->getVar('uid');
25 25
 
26 26
 if (!$GLOBALS['xoopsSecurity']->check()) {
27
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
27
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
28 28
 }
29 29
 
30 30
 if ($xoopsUser && $helper->getConfig('whosnot_going')) {
31 31
     // If param are right
32
-    if ((int)$_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) {
32
+    if ((int) $_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) {
33 33
         $eventHandler          = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
34 34
         $eventNotMemberHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_NOT_MEMBER);
35 35
 
36 36
         // If the user have to be added
37 37
         if ('add' === $_POST['mode']) {
38
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
38
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
39 39
             $eventNotMemberHandler->createEventNotMember([
40
-                                                             'event_id' => (int)$_POST['event'],
40
+                                                             'event_id' => (int) $_POST['event'],
41 41
                                                              'uid'      => $xoopsUser->getVar('uid'),
42 42
                                                          ]);
43 43
             sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3);
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
         // If the user have to be remove
47 47
         } else {
48 48
             if ('remove' === $_POST['mode']) {
49
-                $eventNotMemberHandler->deleteEventNotMember([(int)$_POST['event'], $xoopsUser->getVar('uid')]);
49
+                $eventNotMemberHandler->deleteEventNotMember([(int) $_POST['event'], $xoopsUser->getVar('uid')]);
50 50
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_4, _MD_EXTCAL_MSG_4);
51 51
                 $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT;
52 52
             }
53 53
         }
54
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
54
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
55 55
     } else {
56 56
         redirect_header('index.php', 3, _NOPERM, false);
57 57
     }
Please login to merge, or discard this patch.
view_month.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -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_MONTH, 'file' => _EXTCAL_FILE_MONTH];
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');
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     'cat'          => $cat,
36 36
     'externalKeys' => 'cat_id',
37 37
 ];
38
-$events   = $eventHandler->getEventsOnPeriode($criteres);
38
+$events = $eventHandler->getEventsOnPeriode($criteres);
39 39
 /**********************************************************************/
40 40
 $eventsArray = $events;
41 41
 
@@ -92,21 +92,21 @@  discard block
 block discarded – undo
92 92
 $nMonthCalObj = $monthCalObj->nextMonth('object');
93 93
 $navig        = [
94 94
     'prev' => [
95
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
95
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
96 96
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $pMonthCalObj->getTimestamp()),
97 97
     ],
98 98
     'this' => [
99
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
99
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
100 100
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $monthCalObj->getTimestamp()),
101 101
     ],
102 102
     'next' => [
103
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
103
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
104 104
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_month'), $nMonthCalObj->getTimestamp()),
105 105
     ],
106 106
 ];
107 107
 
108 108
 // Title of the page
109
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
109
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
110 110
 
111 111
 // Assigning navig data to the template
112 112
 $xoopsTpl->assign('navig', $navig);
@@ -163,4 +163,4 @@  discard block
 block discarded – undo
163 163
 $xoopsTpl->assign('lang', $lang);
164 164
 $xoopsTpl->assign('view', 'month');
165 165
 
166
-include XOOPS_ROOT_PATH . '/footer.php';
166
+include XOOPS_ROOT_PATH.'/footer.php';
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
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 /** @var Extcal\Helper $helper */
22 22
 $helper = Extcal\Helper::getInstance();
23 23
 
24
-include __DIR__ . '/../../mainfile.php';
25
-require_once __DIR__ . '/include/constantes.php';
24
+include __DIR__.'/../../mainfile.php';
25
+require_once __DIR__.'/include/constantes.php';
26 26
 $params                                  = ['view' => _EXTCAL_NAV_YEAR, 'file' => _EXTCAL_FILE_YEAR];
27 27
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
28
-require_once __DIR__ . '/header.php';
28
+require_once __DIR__.'/header.php';
29 29
 
30 30
 /* ========================================================================== */
31 31
 $year = \Xmf\Request::getInt('year', date('Y'), 'GET');
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     'cat'          => $cat,
59 59
     'externalKeys' => 'cat_id',
60 60
 ];
61
-$events   = $eventHandler->getEventsOnPeriode($criteres);
61
+$events = $eventHandler->getEventsOnPeriode($criteres);
62 62
 /**********************************************************************/
63 63
 $eventsArray = $events;
64 64
 // Formating date
@@ -102,21 +102,21 @@  discard block
 block discarded – undo
102 102
 // Making navig data
103 103
 $navig = [
104 104
     'prev' => [
105
-        'uri'  => 'year=' . $prevYear,
105
+        'uri'  => 'year='.$prevYear,
106 106
         'name' => $prevYear,
107 107
     ],
108 108
     'this' => [
109
-        'uri'  => 'year=' . $year,
109
+        'uri'  => 'year='.$year,
110 110
         'name' => $year,
111 111
     ],
112 112
     'next' => [
113
-        'uri'  => 'year=' . $nexYear,
113
+        'uri'  => 'year='.$nexYear,
114 114
         'name' => $nexYear,
115 115
     ],
116 116
 ];
117 117
 
118 118
 // Title of the page
119
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
119
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
120 120
 
121 121
 // Assigning navig data to the template
122 122
 $xoopsTpl->assign('navig', $navig);
@@ -170,4 +170,4 @@  discard block
 block discarded – undo
170 170
 $xoopsTpl->assign('lang', $lang);
171 171
 $xoopsTpl->assign('view', 'year');
172 172
 
173
-include XOOPS_ROOT_PATH . '/footer.php';
173
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_new.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
20
+include __DIR__.'/../../mainfile.php';
21 21
 $com_itemid = \Xmf\Request::getInt('com_itemid', 0, 'GET');
22 22
 if ($com_itemid > 0) {
23 23
     // Get link title
24
-    $sql            = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . ' ';
24
+    $sql            = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.' ';
25 25
     $result         = $xoopsDB->query($sql);
26 26
     $row            = $xoopsDB->fetchArray($result);
27 27
     $com_replytitle = $row['event_title'];
28 28
     $com_replytext  = $row['event_desc'];
29
-    include XOOPS_ROOT_PATH . '/include/comment_new.php';
29
+    include XOOPS_ROOT_PATH.'/include/comment_new.php';
30 30
 }
Please login to merge, or discard this patch.
view_week.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
  * @author       XOOPS Development Team,
22 22
  */
23 23
 
24
-include __DIR__ . '/../../mainfile.php';
25
-require_once __DIR__ . '/include/constantes.php';
24
+include __DIR__.'/../../mainfile.php';
25
+require_once __DIR__.'/include/constantes.php';
26 26
 $params                                  = ['view' => _EXTCAL_NAV_WEEK, 'file' => _EXTCAL_FILE_WEEK];
27 27
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
28
-require_once __DIR__ . '/header.php';
28
+require_once __DIR__.'/header.php';
29 29
 
30 30
 /* ========================================================================== */
31 31
 $year  = \Xmf\Request::getInt('year', date('Y'), 'GET');
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     'cat'          => $cat,
67 67
     'externalKeys' => 'cat_id',
68 68
 ];
69
-$events   = $eventHandler->getEventsOnPeriode($criteres);
69
+$events = $eventHandler->getEventsOnPeriode($criteres);
70 70
 /**********************************************************************/
71 71
 $eventsArray = $events;
72 72
 // Formating date
@@ -107,21 +107,21 @@  discard block
 block discarded – undo
107 107
 $nWeekCalObj = $weekCalObj->nextWeek('object');
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($extcalConfig['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($extcalConfig['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($extcalConfig['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);
@@ -181,4 +181,4 @@  discard block
 block discarded – undo
181 181
 $xoopsTpl->assign('lang', $lang);
182 182
 $xoopsTpl->assign('view', 'week');
183 183
 
184
-include XOOPS_ROOT_PATH . '/footer.php';
184
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
post.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -21,20 +21,20 @@  discard block
 block discarded – undo
21 21
 /** @var Extcal\Helper $helper */
22 22
 $helper = Extcal\Helper::getInstance();
23 23
 
24
-include __DIR__ . '/../../mainfile.php';
24
+include __DIR__.'/../../mainfile.php';
25 25
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_post.tpl';
26 26
 
27
-include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
27
+include XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
28 28
 //include __DIR__ . '/class/form/extcalform.php';
29 29
 //include __DIR__ . '/class/perm.php';
30 30
 
31
-require_once __DIR__ . '/class/Utility.php';
32
-require_once __DIR__ . '/include/constantes.php';
31
+require_once __DIR__.'/class/Utility.php';
32
+require_once __DIR__.'/include/constantes.php';
33 33
 
34 34
 $permHandler = Extcal\Perm::getHandler();
35 35
 $xoopsUser   = $xoopsUser ?: null;
36 36
 
37
-if (!$permHandler->isAllowed($xoopsUser, 'extcal_cat_submit', (int)$_POST['cat_id'])) {
37
+if (!$permHandler->isAllowed($xoopsUser, 'extcal_cat_submit', (int) $_POST['cat_id'])) {
38 38
     redirect_header('index.php', 3);
39 39
 }
40 40
 
@@ -43,16 +43,16 @@  discard block
 block discarded – undo
43 43
 $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
44 44
 
45 45
 if (isset($_POST['form_preview'])) {
46
-    include XOOPS_ROOT_PATH . '/header.php';
46
+    include XOOPS_ROOT_PATH.'/header.php';
47 47
 
48 48
     // Title of the page
49 49
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
50 50
 
51 51
     $data = [
52 52
         'event_title'        => $_POST['event_title'],
53
-        'cat_id'             => (int)$_POST['cat_id'],
53
+        'cat_id'             => (int) $_POST['cat_id'],
54 54
         'event_desc'         => $_POST['event_desc'],
55
-        'event_nbmember'     => (int)$_POST['event_nbmember'],
55
+        'event_nbmember'     => (int) $_POST['event_nbmember'],
56 56
         'event_contact'      => $_POST['event_contact'],
57 57
         'event_url'          => $_POST['event_url'],
58 58
         'event_email'        => $_POST['event_email'],
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
         'event_start'        => $_POST['event_start'],
62 62
         'have_end'           => $_POST['have_end'],
63 63
         'event_end'          => $_POST['event_end'],
64
-        'dohtml'             => (int)$helper->getConfig('allow_html'),
64
+        'dohtml'             => (int) $helper->getConfig('allow_html'),
65 65
         'event_price'        => $_POST['event_price'],
66 66
         'event_organisateur' => $_POST['event_organisateur'],
67 67
         'event_icone'        => $_POST['event_icone'],
68 68
     ];
69 69
 
70 70
     if (isset($_POST['event_id'])) {
71
-        $data['event_id'] = (int)$_POST['event_id'];
71
+        $data['event_id'] = (int) $_POST['event_id'];
72 72
     }
73 73
 
74 74
     // Creating tempory event object to apply Object data filtering
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     //     // Assigning language data to the template
88 88
     //     $xoopsTpl->assign('lang', $lang);
89 89
 
90
-    $event['cat_id']   = (int)$_POST['cat_id'];
90
+    $event['cat_id']   = (int) $_POST['cat_id'];
91 91
     $event['have_end'] = $_POST['have_end'];
92 92
 
93 93
     // Display the submit form
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     $xoopsTpl->assign('preview', true);
98 98
     $xoopsTpl->assign('formBody', $formBody);
99 99
 
100
-    include XOOPS_ROOT_PATH . '/footer.php';
100
+    include XOOPS_ROOT_PATH.'/footer.php';
101 101
 } elseif (isset($_POST['form_submit'])) {
102 102
     if (!isset($_POST['rrule_weekly_interval'])) {
103 103
         $_POST['rrule_weekly_interval'] = 0;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /** @var Extcal\FileHandler $fileHandler */
127 127
     $fileHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_FILE);
128 128
     $permHandler = Extcal\Perm::getHandler();
129
-    $approve     = $permHandler->isAllowed($xoopsUser, 'extcal_cat_autoapprove', (int)$_POST['cat_id']);
129
+    $approve     = $permHandler->isAllowed($xoopsUser, 'extcal_cat_autoapprove', (int) $_POST['cat_id']);
130 130
 
131 131
     $data = [
132 132
         'event_title'         => $_POST['event_title'],
@@ -152,11 +152,11 @@  discard block
 block discarded – undo
152 152
     ];
153 153
 
154 154
     if (isset($_POST['event_id'])) {
155
-        $eventHandler->modifyEvent((int)$_POST['event_id'], $data);
156
-        $fileHandler->updateEventFile((int)$_POST['event_id']);
157
-        $fileHandler->createFile((int)$_POST['event_id']);
155
+        $eventHandler->modifyEvent((int) $_POST['event_id'], $data);
156
+        $fileHandler->updateEventFile((int) $_POST['event_id']);
157
+        $fileHandler->createFile((int) $_POST['event_id']);
158 158
 
159
-        redirect_header('event.php?event=' . $_POST['event_id'], 3, _MD_EXTCAL_EVENT_UPDATED, false);
159
+        redirect_header('event.php?event='.$_POST['event_id'], 3, _MD_EXTCAL_EVENT_UPDATED, false);
160 160
     } else {
161 161
         $data['event_submitter']  = $xoopsUser ? $xoopsUser->getVar('uid') : 0;
162 162
         $data['event_submitdate'] = time();
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
         if (1 == $approve) {
176 176
             //            $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
177 177
             $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
178
-            $cat        = $catHandler->getCat((int)$_POST['cat_id'], $xoopsUser, 'all');
179
-            $notificationHandler->triggerEvent('cat', (int)$_POST['cat_id'], 'new_event_cat', [
178
+            $cat        = $catHandler->getCat((int) $_POST['cat_id'], $xoopsUser, 'all');
179
+            $notificationHandler->triggerEvent('cat', (int) $_POST['cat_id'], 'new_event_cat', [
180 180
                 'EVENT_TITLE' => $_POST['event_title'],
181 181
                 'CAT_NAME'    => $cat->getVar('cat_name'),
182 182
             ]);
Please login to merge, or discard this patch.