@@ -15,11 +15,11 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public function __construct(&$form, $startTS = 0, $endTS = 0) |
17 | 17 | { |
18 | - $startTS = (int)$startTS; |
|
18 | + $startTS = (int) $startTS; |
|
19 | 19 | $startTS = ($startTS > 0) ? $startTS : time(); |
20 | 20 | $startDatetime = getdate($startTS); |
21 | 21 | |
22 | - $endTS = (int)$endTS; |
|
22 | + $endTS = (int) $endTS; |
|
23 | 23 | $endTS = ($endTS > 0) ? $endTS : time(); |
24 | 24 | $endDatetime = getdate($endTS); |
25 | 25 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | for ($i = 0; $i < 24; ++$i) { |
28 | 28 | for ($j = 0; $j < _EXTCAL_TS_MINUTE; $j += 15) { |
29 | 29 | $key = ($i * _EXTCAL_TS_HOUR) + ($j * _EXTCAL_TS_MINUTE); |
30 | - $timearray[$key] = ($j != 0) ? $i . ':' . $j : $i . ':0' . $j; |
|
30 | + $timearray[$key] = ($j != 0) ? $i.':'.$j : $i.':0'.$j; |
|
31 | 31 | } |
32 | 32 | } |
33 | 33 | ksort($timearray); |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
4 | 4 | |
5 | -include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; |
|
5 | +include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php'; |
|
6 | 6 | |
7 | 7 | $moduleDirName = basename(dirname(__DIR__)); |
8 | 8 | xoops_loadLanguage('main', $moduleDirName); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function getFormatedDate($format, $timestamp) |
92 | 92 | { |
93 | - $patterns = array( |
|
93 | + $patterns = array( |
|
94 | 94 | '/January/', |
95 | 95 | '/February/', |
96 | 96 | '/March/', |
@@ -143,18 +143,18 @@ discard block |
||
143 | 143 | _CAL_OCTOBER, |
144 | 144 | _CAL_NOVEMBER, |
145 | 145 | _CAL_DECEMBER, |
146 | - substr(_CAL_JANUARY, 0, 3) . ' ', |
|
147 | - substr(_CAL_FEBRUARY, 0, 3) . ' ', |
|
148 | - substr(_CAL_MARCH, 0, 3) . ' ', |
|
149 | - substr(_CAL_APRIL, 0, 3) . ' ', |
|
150 | - substr(_CAL_MAY, 0, 3) . ' ', |
|
151 | - substr(_CAL_JUNE, 0, 3) . ' ', |
|
152 | - substr(_CAL_JULY, 0, 3) . ' ', |
|
153 | - substr(_CAL_AUGUST, 0, 3) . ' ', |
|
154 | - substr(_CAL_SEPTEMBER, 0, 3) . ' ', |
|
155 | - substr(_CAL_OCTOBER, 0, 3) . ' ', |
|
156 | - substr(_CAL_NOVEMBER, 0, 3) . ' ', |
|
157 | - substr(_CAL_DECEMBER, 0, 3) . ' ', |
|
146 | + substr(_CAL_JANUARY, 0, 3).' ', |
|
147 | + substr(_CAL_FEBRUARY, 0, 3).' ', |
|
148 | + substr(_CAL_MARCH, 0, 3).' ', |
|
149 | + substr(_CAL_APRIL, 0, 3).' ', |
|
150 | + substr(_CAL_MAY, 0, 3).' ', |
|
151 | + substr(_CAL_JUNE, 0, 3).' ', |
|
152 | + substr(_CAL_JULY, 0, 3).' ', |
|
153 | + substr(_CAL_AUGUST, 0, 3).' ', |
|
154 | + substr(_CAL_SEPTEMBER, 0, 3).' ', |
|
155 | + substr(_CAL_OCTOBER, 0, 3).' ', |
|
156 | + substr(_CAL_NOVEMBER, 0, 3).' ', |
|
157 | + substr(_CAL_DECEMBER, 0, 3).' ', |
|
158 | 158 | _CAL_SUNDAY, |
159 | 159 | _CAL_MONDAY, |
160 | 160 | _CAL_TUESDAY, |
@@ -162,13 +162,13 @@ discard block |
||
162 | 162 | _CAL_THURSDAY, |
163 | 163 | _CAL_FRIDAY, |
164 | 164 | _CAL_SATURDAY, |
165 | - substr(_CAL_SUNDAY, 0, 3) . ' ', |
|
166 | - substr(_CAL_MONDAY, 0, 3) . ' ', |
|
167 | - substr(_CAL_TUESDAY, 0, 3) . ' ', |
|
168 | - substr(_CAL_WEDNESDAY, 0, 3) . ' ', |
|
169 | - substr(_CAL_THURSDAY, 0, 3) . ' ', |
|
170 | - substr(_CAL_FRIDAY, 0, 3) . ' ', |
|
171 | - substr(_CAL_SATURDAY, 0, 3) . ' ', |
|
165 | + substr(_CAL_SUNDAY, 0, 3).' ', |
|
166 | + substr(_CAL_MONDAY, 0, 3).' ', |
|
167 | + substr(_CAL_TUESDAY, 0, 3).' ', |
|
168 | + substr(_CAL_WEDNESDAY, 0, 3).' ', |
|
169 | + substr(_CAL_THURSDAY, 0, 3).' ', |
|
170 | + substr(_CAL_FRIDAY, 0, 3).' ', |
|
171 | + substr(_CAL_SATURDAY, 0, 3).' ', |
|
172 | 172 | ); |
173 | 173 | |
174 | 174 | return preg_replace($patterns, $replacements, date($format, $timestamp)); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | array_shift($eventOptions); |
211 | 211 | $day = ''; |
212 | 212 | foreach ($eventOptions as $option) { |
213 | - $day .= ' ' . $daysName[$option] . ', '; |
|
213 | + $day .= ' '.$daysName[$option].', '; |
|
214 | 214 | } |
215 | 215 | $ret = sprintf(_MD_EXTCAL_RR_WEEKLY, $day, $interval); |
216 | 216 | |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | array_shift($eventOptions); |
330 | 330 | $month = ''; |
331 | 331 | foreach ($eventOptions as $option) { |
332 | - $month .= ' ' . $monthName[$option] . ', '; |
|
332 | + $month .= ' '.$monthName[$option].', '; |
|
333 | 333 | } |
334 | 334 | $dayString = $day; |
335 | 335 | if (array_key_exists($day, $monthDays)) { |