Completed
Push — master ( 5f5d60...a9decc )
by Michael
03:36
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/tests/day_test.php 1 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(array(
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
     public function testPrevHour()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/minute_test.php 1 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(array(
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
     public function testPrevSecond()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/hour_test.php 1 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(array(
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
     public function testPrevMinute()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/year_test.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
     public function testPrevMonth_Array()
43 43
     {
44 44
         $this->assertEqual(array(
45
-                               'year' => 2002,
46
-                               'month' => 12,
47
-                               'day' => 1,
48
-                               'hour' => 0,
49
-                               'minute' => 0,
50
-                               'second' => 0,
51
-                           ), $this->cal->prevMonth('array'));
45
+                                'year' => 2002,
46
+                                'month' => 12,
47
+                                'day' => 1,
48
+                                'hour' => 0,
49
+                                'minute' => 0,
50
+                                'second' => 0,
51
+                            ), $this->cal->prevMonth('array'));
52 52
     }
53 53
 
54 54
     public function testThisMonth()
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
     public function testPrevDay_Array()
70 70
     {
71 71
         $this->assertEqual(array(
72
-                               'year' => 2002,
73
-                               'month' => 12,
74
-                               'day' => 31,
75
-                               'hour' => 0,
76
-                               'minute' => 0,
77
-                               'second' => 0,
78
-                           ), $this->cal->prevDay('array'));
72
+                                'year' => 2002,
73
+                                'month' => 12,
74
+                                'day' => 31,
75
+                                'hour' => 0,
76
+                                'minute' => 0,
77
+                                'second' => 0,
78
+                            ), $this->cal->prevDay('array'));
79 79
     }
80 80
 
81 81
     public function testThisDay()
Please login to merge, or discard this patch.