Passed
Push — master ( f62223...75b16c )
by Michael
02:33
created
admin/permissions.php 2 patches
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
          * Public category permission mask
94 94
          */
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96
-             . _AM_EXTCAL_PUBLIC_PERM_MASK
97
-             . '</a></legend><div id="default">';
96
+                . _AM_EXTCAL_PUBLIC_PERM_MASK
97
+                . '</a></legend><div id="default">';
98 98
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         echo '<fieldset id="'
147
-             . $permName
148
-             . 'Bookmark"><legend><a href="#'
149
-             . $permName
150
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
-             . $permName
152
-             . '\'); toggleIcon(\''
153
-             . $permName
154
-             . 'Icon\');"><img id="'
155
-             . $permName
156
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
-             . $titleOfForm
158
-             . '</a></legend><div id="'
159
-             . $permName
160
-             . '">';
147
+                . $permName
148
+                . 'Bookmark"><legend><a href="#'
149
+                . $permName
150
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
+                . $permName
152
+                . '\'); toggleIcon(\''
153
+                . $permName
154
+                . 'Icon\');"><img id="'
155
+                . $permName
156
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
+                . $titleOfForm
158
+                . '</a></legend><div id="'
159
+                . $permName
160
+                . '">';
161 161
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
@@ -182,20 +182,20 @@  discard block
 block discarded – undo
182 182
         }
183 183
 
184 184
         echo '<fieldset id="'
185
-             . $permName
186
-             . 'Bookmark"><legend><a href="#'
187
-             . $permName
188
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
-             . $permName
190
-             . '\'); toggleIcon(\''
191
-             . $permName
192
-             . 'Icon\');"><img id="'
193
-             . $permName
194
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
-             . $titleOfForm
196
-             . '</a></legend><div id="'
197
-             . $permName
198
-             . '">';
185
+                . $permName
186
+                . 'Bookmark"><legend><a href="#'
187
+                . $permName
188
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
+                . $permName
190
+                . '\'); toggleIcon(\''
191
+                . $permName
192
+                . 'Icon\');"><img id="'
193
+                . $permName
194
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
+                . $titleOfForm
196
+                . '</a></legend><div id="'
197
+                . $permName
198
+                . '">';
199 199
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
@@ -219,20 +219,20 @@  discard block
 block discarded – undo
219 219
         }
220 220
 
221 221
         echo '<fieldset id="'
222
-             . $permName
223
-             . 'Bookmark"><legend><a href="#'
224
-             . $permName
225
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
-             . $permName
227
-             . '\'); toggleIcon(\''
228
-             . $permName
229
-             . 'Icon\');"><img id="'
230
-             . $permName
231
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
-             . $titleOfForm
233
-             . '</a></legend><div id="'
234
-             . $permName
235
-             . '">';
222
+                . $permName
223
+                . 'Bookmark"><legend><a href="#'
224
+                . $permName
225
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
+                . $permName
227
+                . '\'); toggleIcon(\''
228
+                . $permName
229
+                . 'Icon\');"><img id="'
230
+                . $permName
231
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
+                . $titleOfForm
233
+                . '</a></legend><div id="'
234
+                . $permName
235
+                . '">';
236 236
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
@@ -256,20 +256,20 @@  discard block
 block discarded – undo
256 256
         }
257 257
 
258 258
         echo '<fieldset id="'
259
-             . $permName
260
-             . 'Bookmark"><legend><a href="#'
261
-             . $permName
262
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
-             . $permName
264
-             . '\'); toggleIcon(\''
265
-             . $permName
266
-             . 'Icon\');"><img id="'
267
-             . $permName
268
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
-             . $titleOfForm
270
-             . '</a></legend><div id="'
271
-             . $permName
272
-             . '">';
259
+                . $permName
260
+                . 'Bookmark"><legend><a href="#'
261
+                . $permName
262
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
+                . $permName
264
+                . '\'); toggleIcon(\''
265
+                . $permName
266
+                . 'Icon\');"><img id="'
267
+                . $permName
268
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
+                . $titleOfForm
270
+                . '</a></legend><div id="'
271
+                . $permName
272
+                . '">';
273 273
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
21
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
22
-require_once __DIR__ . '/admin_header.php';
20
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
21
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
22
+require_once __DIR__.'/admin_header.php';
23 23
 
24 24
 $step = 'default';
25 25
 if (\Xmf\Request::hasVar('step', 'POST')) {
@@ -95,35 +95,35 @@  discard block
 block discarded – undo
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96 96
              . _AM_EXTCAL_PUBLIC_PERM_MASK
97 97
              . '</a></legend><div id="default">';
98
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
98
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
101 101
         echo '<table class="outer" style="width:100%;">';
102 102
         echo '<form method="post" action="permissions.php">';
103 103
         echo '<tr>';
104
-        echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>';
104
+        echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>';
105 105
         echo '</tr>';
106 106
         echo '<tr>';
107
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>';
108
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>';
109
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>';
110
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>';
111
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>';
107
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>';
108
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>';
109
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>';
110
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>';
111
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>';
112 112
         echo '</tr>';
113 113
         $i = 0;
114 114
         foreach ($glist as $k => $v) {
115 115
             $style = (0 == ++$i % 2) ? 'odd' : 'even';
116 116
             echo '<tr>';
117
-            echo '<td class="' . $style . '">' . $v . '</td>';
118
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . '></td>';
119
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . '></td>';
120
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . '></td>';
121
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . '></td>';
117
+            echo '<td class="'.$style.'">'.$v.'</td>';
118
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).'></td>';
119
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).'></td>';
120
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).'></td>';
121
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).'></td>';
122 122
             echo '</tr>';
123 123
         }
124 124
         echo '<input type="hidden" name="type" value="public">';
125 125
         echo '<input type="hidden" name="step" value="enreg">';
126
-        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '"></td></tr></form>';
126
+        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'"></td></tr></form>';
127 127
         echo '</table><br>';
128 128
 
129 129
         echo '</div></fieldset><br>';
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
              . '</a></legend><div id="'
159 159
              . $permName
160 160
              . '">';
161
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
161
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
164 164
 
165 165
         if ($catHandler->getCount()) {
166
-            echo $form->render() . '<br>';
166
+            echo $form->render().'<br>';
167 167
         } else {
168 168
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
169 169
         }
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
              . '</a></legend><div id="'
197 197
              . $permName
198 198
              . '">';
199
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
199
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
202 202
         if ($catHandler->getCount()) {
203
-            echo $form->render() . '<br>';
203
+            echo $form->render().'<br>';
204 204
         } else {
205 205
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
206 206
         }
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
              . '</a></legend><div id="'
234 234
              . $permName
235 235
              . '">';
236
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
236
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
239 239
         if ($catHandler->getCount()) {
240
-            echo $form->render() . '<br>';
240
+            echo $form->render().'<br>';
241 241
         } else {
242 242
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
243 243
         }
@@ -270,11 +270,11 @@  discard block
 block discarded – undo
270 270
              . '</a></legend><div id="'
271 271
              . $permName
272 272
              . '">';
273
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
273
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
276 276
         if ($catHandler->getCount()) {
277
-            echo $form->render() . '<br>';
277
+            echo $form->render().'<br>';
278 278
         } else {
279 279
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
280 280
         }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');';
292 292
         echo '</script>';
293 293
 
294
-        require_once __DIR__ . '/admin_footer.php';
294
+        require_once __DIR__.'/admin_footer.php';
295 295
 
296 296
         break;
297 297
 
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  *
17 17
  * @author       Mage, Mamba
18 18
  **/
19
-require_once __DIR__ . '/admin_header.php';
19
+require_once __DIR__.'/admin_header.php';
20 20
 xoops_cp_header();
21 21
 
22 22
 $adminObject->displayNavigation(basename(__FILE__));
23 23
 $adminObject->displayAbout('[email protected]', false);
24 24
 
25
-require_once __DIR__ . '/admin_footer.php';
25
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
language/english/main.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
3
+require_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
4 4
 define('_MD_CLEAR_CRITERIA', 'clear criteria');
5
-define('_MD_EXTCAL_1_FR', '1st ' . _CAL_FRIDAY);
6
-define('_MD_EXTCAL_1_MO', '1st ' . _CAL_MONDAY);
7
-define('_MD_EXTCAL_1_SA', '1st ' . _CAL_SATURDAY);
8
-define('_MD_EXTCAL_1_SU', '1st ' . _CAL_SUNDAY);
9
-define('_MD_EXTCAL_1_TH', '1st ' . _CAL_THURSDAY);
10
-define('_MD_EXTCAL_1_TU', '1st ' . _CAL_TUESDAY);
11
-define('_MD_EXTCAL_1_WE', '1st ' . _CAL_WEDNESDAY);
12
-define('_MD_EXTCAL_2_FR', '2nd ' . _CAL_FRIDAY);
13
-define('_MD_EXTCAL_2_MO', '2nd ' . _CAL_MONDAY);
14
-define('_MD_EXTCAL_2_SA', '2nd ' . _CAL_SATURDAY);
15
-define('_MD_EXTCAL_2_SU', '2nd ' . _CAL_SUNDAY);
16
-define('_MD_EXTCAL_2_TH', '2nd ' . _CAL_THURSDAY);
17
-define('_MD_EXTCAL_2_TU', '2nd ' . _CAL_TUESDAY);
18
-define('_MD_EXTCAL_2_WE', '2nd ' . _CAL_WEDNESDAY);
19
-define('_MD_EXTCAL_3_FR', '3rd ' . _CAL_FRIDAY);
20
-define('_MD_EXTCAL_3_MO', '3rd ' . _CAL_MONDAY);
21
-define('_MD_EXTCAL_3_SA', '3rd ' . _CAL_SATURDAY);
22
-define('_MD_EXTCAL_3_SU', '3rd ' . _CAL_SUNDAY);
23
-define('_MD_EXTCAL_3_TH', '3rd ' . _CAL_THURSDAY);
24
-define('_MD_EXTCAL_3_TU', '3rd ' . _CAL_TUESDAY);
25
-define('_MD_EXTCAL_3_WE', '3rd ' . _CAL_WEDNESDAY);
26
-define('_MD_EXTCAL_4_FR', '4th ' . _CAL_FRIDAY);
27
-define('_MD_EXTCAL_4_MO', '4th ' . _CAL_MONDAY);
28
-define('_MD_EXTCAL_4_SA', '4th ' . _CAL_SATURDAY);
29
-define('_MD_EXTCAL_4_SU', '4th ' . _CAL_SUNDAY);
30
-define('_MD_EXTCAL_4_TH', '4th ' . _CAL_THURSDAY);
31
-define('_MD_EXTCAL_4_TU', '4th ' . _CAL_TUESDAY);
32
-define('_MD_EXTCAL_4_WE', '4th ' . _CAL_WEDNESDAY);
5
+define('_MD_EXTCAL_1_FR', '1st '._CAL_FRIDAY);
6
+define('_MD_EXTCAL_1_MO', '1st '._CAL_MONDAY);
7
+define('_MD_EXTCAL_1_SA', '1st '._CAL_SATURDAY);
8
+define('_MD_EXTCAL_1_SU', '1st '._CAL_SUNDAY);
9
+define('_MD_EXTCAL_1_TH', '1st '._CAL_THURSDAY);
10
+define('_MD_EXTCAL_1_TU', '1st '._CAL_TUESDAY);
11
+define('_MD_EXTCAL_1_WE', '1st '._CAL_WEDNESDAY);
12
+define('_MD_EXTCAL_2_FR', '2nd '._CAL_FRIDAY);
13
+define('_MD_EXTCAL_2_MO', '2nd '._CAL_MONDAY);
14
+define('_MD_EXTCAL_2_SA', '2nd '._CAL_SATURDAY);
15
+define('_MD_EXTCAL_2_SU', '2nd '._CAL_SUNDAY);
16
+define('_MD_EXTCAL_2_TH', '2nd '._CAL_THURSDAY);
17
+define('_MD_EXTCAL_2_TU', '2nd '._CAL_TUESDAY);
18
+define('_MD_EXTCAL_2_WE', '2nd '._CAL_WEDNESDAY);
19
+define('_MD_EXTCAL_3_FR', '3rd '._CAL_FRIDAY);
20
+define('_MD_EXTCAL_3_MO', '3rd '._CAL_MONDAY);
21
+define('_MD_EXTCAL_3_SA', '3rd '._CAL_SATURDAY);
22
+define('_MD_EXTCAL_3_SU', '3rd '._CAL_SUNDAY);
23
+define('_MD_EXTCAL_3_TH', '3rd '._CAL_THURSDAY);
24
+define('_MD_EXTCAL_3_TU', '3rd '._CAL_TUESDAY);
25
+define('_MD_EXTCAL_3_WE', '3rd '._CAL_WEDNESDAY);
26
+define('_MD_EXTCAL_4_FR', '4th '._CAL_FRIDAY);
27
+define('_MD_EXTCAL_4_MO', '4th '._CAL_MONDAY);
28
+define('_MD_EXTCAL_4_SA', '4th '._CAL_SATURDAY);
29
+define('_MD_EXTCAL_4_SU', '4th '._CAL_SUNDAY);
30
+define('_MD_EXTCAL_4_TH', '4th '._CAL_THURSDAY);
31
+define('_MD_EXTCAL_4_TU', '4th '._CAL_TUESDAY);
32
+define('_MD_EXTCAL_4_WE', '4th '._CAL_WEDNESDAY);
33 33
 define('_MD_EXTCAL_ABSENT', 'Absent');
34 34
 define('_MD_EXTCAL_ACTION_COME', 'Register');
35 35
 define('_MD_EXTCAL_ACTION_DELEGATION', 'Delegate');
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
 define('_MD_EXTCAL_JAN', 'Jan');
111 111
 define('_MD_EXTCAL_JUL', 'Jul');
112 112
 define('_MD_EXTCAL_JUN', 'Jun');
113
-define('_MD_EXTCAL_LAST_FR', 'Last ' . _CAL_FRIDAY);
114
-define('_MD_EXTCAL_LAST_MO', 'Last ' . _CAL_MONDAY);
115
-define('_MD_EXTCAL_LAST_SA', 'Last ' . _CAL_SATURDAY);
116
-define('_MD_EXTCAL_LAST_SU', 'Last ' . _CAL_SUNDAY);
117
-define('_MD_EXTCAL_LAST_TH', 'Last ' . _CAL_THURSDAY);
118
-define('_MD_EXTCAL_LAST_TU', 'Last ' . _CAL_TUESDAY);
119
-define('_MD_EXTCAL_LAST_WE', 'Last ' . _CAL_WEDNESDAY);
113
+define('_MD_EXTCAL_LAST_FR', 'Last '._CAL_FRIDAY);
114
+define('_MD_EXTCAL_LAST_MO', 'Last '._CAL_MONDAY);
115
+define('_MD_EXTCAL_LAST_SA', 'Last '._CAL_SATURDAY);
116
+define('_MD_EXTCAL_LAST_SU', 'Last '._CAL_SUNDAY);
117
+define('_MD_EXTCAL_LAST_TH', 'Last '._CAL_THURSDAY);
118
+define('_MD_EXTCAL_LAST_TU', 'Last '._CAL_TUESDAY);
119
+define('_MD_EXTCAL_LAST_WE', 'Last '._CAL_WEDNESDAY);
120 120
 define('_MD_EXTCAL_LIB_COME', 'Register');
121 121
 define('_MD_EXTCAL_LIB_NONE', 'None');
122 122
 define('_MD_EXTCAL_LIB_NOTCOME', 'Unsubscribe');
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
  **/
20 20
 
21 21
 $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
22
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
22
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
23 23
 
24 24
 xoops_cp_footer();
Please login to merge, or discard this patch.
class/pclerror.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         global $g_pcl_error_string;
139 139
         global $g_pcl_error_code;
140 140
 
141
-        return $g_pcl_error_string . " [code $g_pcl_error_code]";
141
+        return $g_pcl_error_string." [code $g_pcl_error_code]";
142 142
     }
143 143
 
144 144
     // --------------------------------------------------------------------------------
Please login to merge, or discard this patch.
class/pear/Calendar/Factory.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Calendar.php';
53
+require_once CALENDAR_ROOT.'Calendar.php';
54 54
 
55 55
 /**
56 56
  * Contains a factory method to return a Singleton instance of a class
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $firstDay = defined('CALENDAR_FIRST_DAY_OF_WEEK') ? CALENDAR_FIRST_DAY_OF_WEEK : 1;
98 98
         switch ($type) {
99 99
             case 'Day':
100
-                require_once CALENDAR_ROOT . 'Day.php';
100
+                require_once CALENDAR_ROOT.'Day.php';
101 101
 
102 102
                 return new Calendar_Day($y, $m, $d);
103 103
             case 'Month':
@@ -107,44 +107,44 @@  discard block
 block discarded – undo
107 107
                 }
108 108
                 switch (CALENDAR_MONTH_STATE) {
109 109
                     case CALENDAR_USE_MONTH_WEEKDAYS:
110
-                        require_once CALENDAR_ROOT . 'Month/Weekdays.php';
110
+                        require_once CALENDAR_ROOT.'Month/Weekdays.php';
111 111
                         $class = 'Calendar_Month_Weekdays';
112 112
                         break;
113 113
                     case CALENDAR_USE_MONTH_WEEKS:
114
-                        require_once CALENDAR_ROOT . 'Month/Weeks.php';
114
+                        require_once CALENDAR_ROOT.'Month/Weeks.php';
115 115
                         $class = 'Calendar_Month_Weeks';
116 116
                         break;
117 117
                     case CALENDAR_USE_MONTH:
118 118
                     default:
119
-                        require_once CALENDAR_ROOT . 'Month.php';
119
+                        require_once CALENDAR_ROOT.'Month.php';
120 120
                         $class = 'Calendar_Month';
121 121
                         break;
122 122
                 }
123 123
 
124 124
                 return new $class($y, $m, $firstDay);
125 125
             case 'Week':
126
-                require_once CALENDAR_ROOT . 'Week.php';
126
+                require_once CALENDAR_ROOT.'Week.php';
127 127
 
128 128
                 return new Calendar_Week($y, $m, $d, $firstDay);
129 129
             case 'Hour':
130
-                require_once CALENDAR_ROOT . 'Hour.php';
130
+                require_once CALENDAR_ROOT.'Hour.php';
131 131
 
132 132
                 return new Calendar_Hour($y, $m, $d, $h);
133 133
             case 'Minute':
134
-                require_once CALENDAR_ROOT . 'Minute.php';
134
+                require_once CALENDAR_ROOT.'Minute.php';
135 135
 
136 136
                 return new Calendar_Minute($y, $m, $d, $h, $i);
137 137
             case 'Second':
138
-                require_once CALENDAR_ROOT . 'Second.php';
138
+                require_once CALENDAR_ROOT.'Second.php';
139 139
 
140 140
                 return new Calendar_Second($y, $m, $d, $h, $i, $s);
141 141
             case 'Year':
142
-                require_once CALENDAR_ROOT . 'Year.php';
142
+                require_once CALENDAR_ROOT.'Year.php';
143 143
 
144 144
                 return new Calendar_Year($y);
145 145
             default:
146
-                require_once __DIR__ . '/PEAR.php';
147
-                PEAR::raiseError('Calendar_Factory::create() unrecognised type: ' . $type, null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Factory::create()');
146
+                require_once __DIR__.'/PEAR.php';
147
+                PEAR::raiseError('Calendar_Factory::create() unrecognised type: '.$type, null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Factory::create()');
148 148
 
149 149
                 return false;
150 150
         }
Please login to merge, or discard this patch.
class/pear/Calendar/Engine/UnixTS.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $date = self::stampCollection($stamp);
97 97
 
98
-        return (int)$date[0];
98
+        return (int) $date[0];
99 99
     }
100 100
 
101 101
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $date = self::stampCollection($stamp);
111 111
 
112
-        return (int)$date[1];
112
+        return (int) $date[1];
113 113
     }
114 114
 
115 115
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $date = self::stampCollection($stamp);
125 125
 
126
-        return (int)$date[2];
126
+        return (int) $date[2];
127 127
     }
128 128
 
129 129
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $date = self::stampCollection($stamp);
139 139
 
140
-        return (int)$date[3];
140
+        return (int) $date[3];
141 141
     }
142 142
 
143 143
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         $date = self::stampCollection($stamp);
153 153
 
154
-        return (int)$date[4];
154
+        return (int) $date[4];
155 155
     }
156 156
 
157 157
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     {
166 166
         $date = self::stampCollection($stamp);
167 167
 
168
-        return (int)$date[5];
168
+        return (int) $date[5];
169 169
     }
170 170
 
171 171
     /**
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         }
337 337
         $daysInTheFirstWeek %= $this->getDaysInWeek();
338 338
 
339
-        return (int)(ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
339
+        return (int) (ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
340 340
     }
341 341
 
342 342
     /**
Please login to merge, or discard this patch.
class/pear/Calendar/tests/decorator_test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 //
3 3
 
4
-require_once __DIR__ . '/simple_include.php';
5
-require_once __DIR__ . '/calendar_include.php';
4
+require_once __DIR__.'/simple_include.php';
5
+require_once __DIR__.'/calendar_include.php';
6 6
 
7 7
 Mock::generate('Calendar_Engine_Interface', 'Mock_Calendar_Engine');
8 8
 Mock::generate('Calendar_Second', 'Mock_Calendar_Second');
Please login to merge, or discard this patch.
class/pear/Calendar/tests/second_test.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 //
3 3
 
4
-require_once __DIR__ . '/simple_include.php';
5
-require_once __DIR__ . '/calendar_include.php';
4
+require_once __DIR__.'/simple_include.php';
5
+require_once __DIR__.'/calendar_include.php';
6 6
 
7
-require_once __DIR__ . '/./calendar_test.php';
7
+require_once __DIR__.'/./calendar_test.php';
8 8
 
9 9
 /**
10 10
  * Class TestOfSecond.
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
     public function testPrevDay_Array()
28 28
     {
29 29
         $this->assertEqual([
30
-                               'year'   => 2003,
31
-                               'month'  => 10,
32
-                               'day'    => 24,
33
-                               'hour'   => 0,
34
-                               'minute' => 0,
35
-                               'second' => 0,
36
-                           ], $this->cal->prevDay('array'));
30
+                                'year'   => 2003,
31
+                                'month'  => 10,
32
+                                'day'    => 24,
33
+                                'hour'   => 0,
34
+                                'minute' => 0,
35
+                                'second' => 0,
36
+                            ], $this->cal->prevDay('array'));
37 37
     }
38 38
 }
39 39
 
Please login to merge, or discard this patch.