Completed
Push — master ( 67f8ad...5f5d60 )
by Michael
03:39
created
versions/extcal_2_04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         global $xoopsDB;
31 31
 
32
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
32
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
33 33
         $xoopsDB->query($sql);
34 34
     }
35 35
 
Please login to merge, or discard this patch.
class/colorTools.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,9 +159,9 @@
 block discarded – undo
159 159
         $tHex = array('', '', '', '');
160 160
 
161 161
         $tHex[0] = $aColors[0];
162
-        $tHex[1] = substr('00' . dechex($aColors[1]), -2);
163
-        $tHex[2] = substr('00' . dechex($aColors[2]), -2);
164
-        $tHex[3] = substr('00' . dechex($aColors[3]), -2);
162
+        $tHex[1] = substr('00'.dechex($aColors[1]), -2);
163
+        $tHex[2] = substr('00'.dechex($aColors[2]), -2);
164
+        $tHex[3] = substr('00'.dechex($aColors[3]), -2);
165 165
 
166 166
         $colorHexa = implode('', $tHex);
167 167
 
Please login to merge, or discard this patch.
class/form/spin/formspin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function setMin($min)
205 205
     {
206
-        $this->_min = (int)$min;
206
+        $this->_min = (int) $min;
207 207
     }
208 208
     /*-----------------------------------------------------------------*/
209 209
     /**
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function setMax($max)
223 223
     {
224
-        $this->_max = (int)$max;
224
+        $this->_max = (int) $max;
225 225
     }
226 226
 
227 227
     /*-----------------------------------------------------------------*/
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function setSmallIncrement($smallIncrement)
244 244
     {
245
-        $this->_smallIncrement = (int)$smallIncrement;
245
+        $this->_smallIncrement = (int) $smallIncrement;
246 246
         if ($this->_smallIncrement == 0) {
247 247
             $this->_smallIncrement = 1;
248 248
         }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function setLargeIncrement($largeIncrement)
266 266
     {
267
-        $this->_largeIncrement = (int)$largeIncrement;
267
+        $this->_largeIncrement = (int) $largeIncrement;
268 268
         if ($this->_largeIncrement == 0) {
269 269
             $this->_largeIncrement = 10;
270 270
         }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
406 406
 
407 407
         $prefixe  = $this->getName();
408
-        $prefixe2 = 'spin' . $prefixe;
408
+        $prefixe2 = 'spin'.$prefixe;
409 409
 
410 410
         $smallIncrement = $this->getSmallIncrement();
411 411
         $largeIncrement = $this->getLargeIncrement();
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         $t = array();
425 425
 
426 426
         if ($this->_loadJS) {
427
-            $js  = $sSpinFolder . '/js/spin.js';
427
+            $js  = $sSpinFolder.'/js/spin.js';
428 428
             $t[] = "<script src='{$js}' type='text/javascript'></script>";
429 429
         }
430 430
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         //-------------------------------------------------------
470 470
 
471 471
         $t[] = '  </tr>';
472
-        $t[] = '</table>' . "\n";
472
+        $t[] = '</table>'."\n";
473 473
         $t[] = '</div>';
474 474
         //-------------------------------------------
475 475
         $html = implode("\n", $t);
Please login to merge, or discard this patch.
include/notification.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
22 22
         $event        = $eventHandler->getEvent($itemId, 0, true);
23 23
         $item['name'] = $event->getVar('event_title');
24
-        $item['url']  = XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id');
24
+        $item['url']  = XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id');
25 25
 
26 26
         return $item;
27 27
     }
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,34 +1,34 @@  discard block
 block discarded – undo
1 1
 <?php
2
-include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
2
+include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
3 3
 define('_MD_CLEAR_CRITERIA', 'clear criteria');
4
-define('_MD_EXTCAL_1_FR', '1st ' . _CAL_FRIDAY);
5
-define('_MD_EXTCAL_1_MO', '1st ' . _CAL_MONDAY);
6
-define('_MD_EXTCAL_1_SA', '1st ' . _CAL_SATURDAY);
7
-define('_MD_EXTCAL_1_SU', '1st ' . _CAL_SUNDAY);
8
-define('_MD_EXTCAL_1_TH', '1st ' . _CAL_THURSDAY);
9
-define('_MD_EXTCAL_1_TU', '1st ' . _CAL_TUESDAY);
10
-define('_MD_EXTCAL_1_WE', '1st ' . _CAL_WEDNESDAY);
11
-define('_MD_EXTCAL_2_FR', '2nd ' . _CAL_FRIDAY);
12
-define('_MD_EXTCAL_2_MO', '2nd ' . _CAL_MONDAY);
13
-define('_MD_EXTCAL_2_SA', '2nd ' . _CAL_SATURDAY);
14
-define('_MD_EXTCAL_2_SU', '2nd ' . _CAL_SUNDAY);
15
-define('_MD_EXTCAL_2_TH', '2nd ' . _CAL_THURSDAY);
16
-define('_MD_EXTCAL_2_TU', '2nd ' . _CAL_TUESDAY);
17
-define('_MD_EXTCAL_2_WE', '2nd ' . _CAL_WEDNESDAY);
18
-define('_MD_EXTCAL_3_FR', '3rd ' . _CAL_FRIDAY);
19
-define('_MD_EXTCAL_3_MO', '3rd ' . _CAL_MONDAY);
20
-define('_MD_EXTCAL_3_SA', '3rd ' . _CAL_SATURDAY);
21
-define('_MD_EXTCAL_3_SU', '3rd ' . _CAL_SUNDAY);
22
-define('_MD_EXTCAL_3_TH', '3rd ' . _CAL_THURSDAY);
23
-define('_MD_EXTCAL_3_TU', '3rd ' . _CAL_TUESDAY);
24
-define('_MD_EXTCAL_3_WE', '3rd ' . _CAL_WEDNESDAY);
25
-define('_MD_EXTCAL_4_FR', '4th ' . _CAL_FRIDAY);
26
-define('_MD_EXTCAL_4_MO', '4th ' . _CAL_MONDAY);
27
-define('_MD_EXTCAL_4_SA', '4th ' . _CAL_SATURDAY);
28
-define('_MD_EXTCAL_4_SU', '4th ' . _CAL_SUNDAY);
29
-define('_MD_EXTCAL_4_TH', '4th ' . _CAL_THURSDAY);
30
-define('_MD_EXTCAL_4_TU', '4th ' . _CAL_TUESDAY);
31
-define('_MD_EXTCAL_4_WE', '4th ' . _CAL_WEDNESDAY);
4
+define('_MD_EXTCAL_1_FR', '1st '._CAL_FRIDAY);
5
+define('_MD_EXTCAL_1_MO', '1st '._CAL_MONDAY);
6
+define('_MD_EXTCAL_1_SA', '1st '._CAL_SATURDAY);
7
+define('_MD_EXTCAL_1_SU', '1st '._CAL_SUNDAY);
8
+define('_MD_EXTCAL_1_TH', '1st '._CAL_THURSDAY);
9
+define('_MD_EXTCAL_1_TU', '1st '._CAL_TUESDAY);
10
+define('_MD_EXTCAL_1_WE', '1st '._CAL_WEDNESDAY);
11
+define('_MD_EXTCAL_2_FR', '2nd '._CAL_FRIDAY);
12
+define('_MD_EXTCAL_2_MO', '2nd '._CAL_MONDAY);
13
+define('_MD_EXTCAL_2_SA', '2nd '._CAL_SATURDAY);
14
+define('_MD_EXTCAL_2_SU', '2nd '._CAL_SUNDAY);
15
+define('_MD_EXTCAL_2_TH', '2nd '._CAL_THURSDAY);
16
+define('_MD_EXTCAL_2_TU', '2nd '._CAL_TUESDAY);
17
+define('_MD_EXTCAL_2_WE', '2nd '._CAL_WEDNESDAY);
18
+define('_MD_EXTCAL_3_FR', '3rd '._CAL_FRIDAY);
19
+define('_MD_EXTCAL_3_MO', '3rd '._CAL_MONDAY);
20
+define('_MD_EXTCAL_3_SA', '3rd '._CAL_SATURDAY);
21
+define('_MD_EXTCAL_3_SU', '3rd '._CAL_SUNDAY);
22
+define('_MD_EXTCAL_3_TH', '3rd '._CAL_THURSDAY);
23
+define('_MD_EXTCAL_3_TU', '3rd '._CAL_TUESDAY);
24
+define('_MD_EXTCAL_3_WE', '3rd '._CAL_WEDNESDAY);
25
+define('_MD_EXTCAL_4_FR', '4th '._CAL_FRIDAY);
26
+define('_MD_EXTCAL_4_MO', '4th '._CAL_MONDAY);
27
+define('_MD_EXTCAL_4_SA', '4th '._CAL_SATURDAY);
28
+define('_MD_EXTCAL_4_SU', '4th '._CAL_SUNDAY);
29
+define('_MD_EXTCAL_4_TH', '4th '._CAL_THURSDAY);
30
+define('_MD_EXTCAL_4_TU', '4th '._CAL_TUESDAY);
31
+define('_MD_EXTCAL_4_WE', '4th '._CAL_WEDNESDAY);
32 32
 define('_MD_EXTCAL_ABSENT', 'Absent');
33 33
 define('_MD_EXTCAL_ACTION_COME', 'Register');
34 34
 define('_MD_EXTCAL_ACTION_DELEGATION', 'Delegate');
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
 define('_MD_EXTCAL_JAN', 'Jan');
110 110
 define('_MD_EXTCAL_JUL', 'Jul');
111 111
 define('_MD_EXTCAL_JUN', 'Jun');
112
-define('_MD_EXTCAL_LAST_FR', 'Last ' . _CAL_FRIDAY);
113
-define('_MD_EXTCAL_LAST_MO', 'Last ' . _CAL_MONDAY);
114
-define('_MD_EXTCAL_LAST_SA', 'Last ' . _CAL_SATURDAY);
115
-define('_MD_EXTCAL_LAST_SU', 'Last ' . _CAL_SUNDAY);
116
-define('_MD_EXTCAL_LAST_TH', 'Last ' . _CAL_THURSDAY);
117
-define('_MD_EXTCAL_LAST_TU', 'Last ' . _CAL_TUESDAY);
118
-define('_MD_EXTCAL_LAST_WE', 'Last ' . _CAL_WEDNESDAY);
112
+define('_MD_EXTCAL_LAST_FR', 'Last '._CAL_FRIDAY);
113
+define('_MD_EXTCAL_LAST_MO', 'Last '._CAL_MONDAY);
114
+define('_MD_EXTCAL_LAST_SA', 'Last '._CAL_SATURDAY);
115
+define('_MD_EXTCAL_LAST_SU', 'Last '._CAL_SUNDAY);
116
+define('_MD_EXTCAL_LAST_TH', 'Last '._CAL_THURSDAY);
117
+define('_MD_EXTCAL_LAST_TU', 'Last '._CAL_TUESDAY);
118
+define('_MD_EXTCAL_LAST_WE', 'Last '._CAL_WEDNESDAY);
119 119
 define('_MD_EXTCAL_LIB_COME', 'Register');
120 120
 define('_MD_EXTCAL_LIB_NONE', 'None');
121 121
 define('_MD_EXTCAL_LIB_NOTCOME', 'Unsubscribe');
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/1.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -35,32 +35,32 @@
 block discarded – undo
35 35
 }
36 36
 
37 37
 switch (@$_GET['view']) {
38
-    default:
39
-        $_GET['view'] = 'calendar_year';
40
-    case 'calendar_year':
41
-        require_once CALENDAR_ROOT.'Year.php';
42
-        $c = new Calendar_Year($_GET['y']);
43
-        break;
44
-    case 'calendar_month':
45
-        require_once CALENDAR_ROOT.'Month.php';
46
-        $c = new Calendar_Month($_GET['y'], $_GET['m']);
47
-        break;
48
-    case 'calendar_day':
49
-        require_once CALENDAR_ROOT.'Day.php';
50
-        $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
51
-        break;
52
-    case 'calendar_hour':
53
-        require_once CALENDAR_ROOT.'Hour.php';
54
-        $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
55
-        break;
56
-    case 'calendar_minute':
57
-        require_once CALENDAR_ROOT.'Minute.php';
58
-        $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
59
-        break;
60
-    case 'calendar_second':
61
-        require_once CALENDAR_ROOT.'Second.php';
62
-        $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
63
-        break;
38
+        default:
39
+            $_GET['view'] = 'calendar_year';
40
+        case 'calendar_year':
41
+            require_once CALENDAR_ROOT.'Year.php';
42
+            $c = new Calendar_Year($_GET['y']);
43
+            break;
44
+        case 'calendar_month':
45
+            require_once CALENDAR_ROOT.'Month.php';
46
+            $c = new Calendar_Month($_GET['y'], $_GET['m']);
47
+            break;
48
+        case 'calendar_day':
49
+            require_once CALENDAR_ROOT.'Day.php';
50
+            $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
51
+            break;
52
+        case 'calendar_hour':
53
+            require_once CALENDAR_ROOT.'Hour.php';
54
+            $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
55
+            break;
56
+        case 'calendar_minute':
57
+            require_once CALENDAR_ROOT.'Minute.php';
58
+            $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
59
+            break;
60
+        case 'calendar_second':
61
+            require_once CALENDAR_ROOT.'Second.php';
62
+            $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
63
+            break;
64 64
 }
65 65
 
66 66
 echo 'Viewing: '.@$_GET['view'].'<br>';
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/13.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -39,32 +39,32 @@
 block discarded – undo
39 39
 }
40 40
 
41 41
 switch (@$_GET['view']) {
42
-    default:
43
-        $_GET['view'] = 'calendar_year';
44
-    case 'calendar_year':
45
-        require_once CALENDAR_ROOT.'Year.php';
46
-        $c = new Calendar_Year($_GET['y']);
47
-        break;
48
-    case 'calendar_month':
49
-        require_once CALENDAR_ROOT.'Month.php';
50
-        $c = new Calendar_Month($_GET['y'], $_GET['m']);
51
-        break;
52
-    case 'calendar_day':
53
-        require_once CALENDAR_ROOT.'Day.php';
54
-        $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
55
-        break;
56
-    case 'calendar_hour':
57
-        require_once CALENDAR_ROOT.'Hour.php';
58
-        $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
59
-        break;
60
-    case 'calendar_minute':
61
-        require_once CALENDAR_ROOT.'Minute.php';
62
-        $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
63
-        break;
64
-    case 'calendar_second':
65
-        require_once CALENDAR_ROOT.'Second.php';
66
-        $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
67
-        break;
42
+        default:
43
+            $_GET['view'] = 'calendar_year';
44
+        case 'calendar_year':
45
+            require_once CALENDAR_ROOT.'Year.php';
46
+            $c = new Calendar_Year($_GET['y']);
47
+            break;
48
+        case 'calendar_month':
49
+            require_once CALENDAR_ROOT.'Month.php';
50
+            $c = new Calendar_Month($_GET['y'], $_GET['m']);
51
+            break;
52
+        case 'calendar_day':
53
+            require_once CALENDAR_ROOT.'Day.php';
54
+            $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
55
+            break;
56
+        case 'calendar_hour':
57
+            require_once CALENDAR_ROOT.'Hour.php';
58
+            $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
59
+            break;
60
+        case 'calendar_minute':
61
+            require_once CALENDAR_ROOT.'Minute.php';
62
+            $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
63
+            break;
64
+        case 'calendar_second':
65
+            require_once CALENDAR_ROOT.'Second.php';
66
+            $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
67
+            break;
68 68
 }
69 69
 
70 70
 // Convert timestamp to human readable date
Please login to merge, or discard this patch.
language/english/modinfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once __DIR__ . '/../../include/constantes.php';
3
+include_once __DIR__.'/../../include/constantes.php';
4 4
 define('_MI_EXTCAL_NAME', 'eXtCal');
5 5
 define('_MI_EXTCAL_ABOUT', 'About');
6 6
 define('_MI_EXTCAL_AFTER', 'After');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 define('_MI_EXTCAL_START_PAGE', 'Module home page');
136 136
 define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event');
137 137
 define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs');
138
-define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line');
138
+define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line');
139 139
 define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.');
140 140
 define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab');
141 141
 define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day');
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include XOOPS_ROOT_PATH . '/header.php';
3
+include XOOPS_ROOT_PATH.'/header.php';
4 4
 
5
-include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
5
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
6 6
 
7
-include_once __DIR__ . '/include/agenda_fnc.php';
8
-include_once __DIR__ . '/class/utilities.php';
7
+include_once __DIR__.'/include/agenda_fnc.php';
8
+include_once __DIR__.'/class/utilities.php';
9 9
 
10
-include_once __DIR__ . '/class/perm.php';
11
-include_once __DIR__ . '/class/form/extcalform.php';
10
+include_once __DIR__.'/class/perm.php';
11
+include_once __DIR__.'/class/form/extcalform.php';
12 12
 
13 13
 xoops_loadLanguage('modinfo', _EXTCAL_MODULE);
14 14
 
15 15
 //------------------------------------------------------
16
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
17
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
18
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php';
19
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php';
20
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
16
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
17
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
18
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php';
19
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php';
20
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
21 21
 
22 22
 //------------------------------------------------------
23 23
 // Getting eXtCal object's handler
Please login to merge, or discard this patch.