@@ -159,9 +159,9 @@ |
||
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 |
@@ -203,7 +203,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | if (!@include 'Calendar/Calendar.php') { |
6 | 6 | define('CALENDAR_ROOT', '../../'); |
7 | 7 | } |
8 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
8 | +require_once CALENDAR_ROOT.'Day.php'; |
|
9 | 9 | |
10 | 10 | $Day = new Calendar_Day(2003, 10, 23); |
11 | 11 |
@@ -21,7 +21,7 @@ |
||
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 | } |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -include XOOPS_ROOT_PATH . '/include/notification_update.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +include XOOPS_ROOT_PATH.'/include/notification_update.php'; |
@@ -16,11 +16,11 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function __construct($form, $startTS = 0, $endTS = 0) |
18 | 18 | { |
19 | - $startTS = (int)$startTS; |
|
19 | + $startTS = (int) $startTS; |
|
20 | 20 | $startTS = ($startTS > 0) ? $startTS : time(); |
21 | 21 | $startDatetime = getdate($startTS); |
22 | 22 | |
23 | - $endTS = (int)$endTS; |
|
23 | + $endTS = (int) $endTS; |
|
24 | 24 | $endTS = ($endTS > 0) ? $endTS : time(); |
25 | 25 | $endDatetime = getdate($endTS); |
26 | 26 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | for ($i = 0; $i < 24; ++$i) { |
29 | 29 | for ($j = 0; $j < _EXTCAL_TS_MINUTE; $j += 15) { |
30 | 30 | $key = ($i * _EXTCAL_TS_HOUR) + ($j * _EXTCAL_TS_MINUTE); |
31 | - $timearray[$key] = ($j != 0) ? $i . ':' . $j : $i . ':0' . $j; |
|
31 | + $timearray[$key] = ($j != 0) ? $i.':'.$j : $i.':0'.$j; |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 | ksort($timearray); |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function insertBreak($extra = '', $class = '') |
57 | 57 | { |
58 | - $class = ($class != '') ? " class='" . preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class) . "'" : ''; |
|
58 | + $class = ($class != '') ? " class='".preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class)."'" : ''; |
|
59 | 59 | // Fix for $extra tag not showing |
60 | 60 | if ($extra) { |
61 | - $extra = '<tr><td colspan="2" ' . $class . '>' . $extra . '</td></tr>'; |
|
61 | + $extra = '<tr><td colspan="2" '.$class.'>'.$extra.'</td></tr>'; |
|
62 | 62 | $this->addElement($extra); |
63 | 63 | } else { |
64 | - $extra = '<tr><td colspan="2" ' . $class . '> </td></tr>'; |
|
64 | + $extra = '<tr><td colspan="2" '.$class.'> </td></tr>'; |
|
65 | 65 | $this->addElement($extra); |
66 | 66 | } |
67 | 67 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | if ($title != '') { |
93 | - $ret .= '<tr><th colspan="2">' . $title . '</th></tr>'; |
|
93 | + $ret .= '<tr><th colspan="2">'.$title.'</th></tr>'; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | $hidden = ''; |
@@ -102,24 +102,24 @@ discard block |
||
102 | 102 | if (!$ele->getNocolspan()) { |
103 | 103 | $ret .= '<tr valign="top" align="left"><td class="head">'; |
104 | 104 | if (($caption = $ele->getCaption()) != '') { |
105 | - $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
|
106 | - $ret .= '<span class="caption-text">' . $caption . '</span>'; |
|
105 | + $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">'; |
|
106 | + $ret .= '<span class="caption-text">'.$caption.'</span>'; |
|
107 | 107 | $ret .= '<span class="caption-marker">*</span>'; |
108 | 108 | $ret .= '</div>'; |
109 | 109 | } |
110 | 110 | if (($desc = $ele->getDescription()) != '') { |
111 | - $ret .= '<div class="xoops-form-element-help">' . $desc . '</div>'; |
|
111 | + $ret .= '<div class="xoops-form-element-help">'.$desc.'</div>'; |
|
112 | 112 | } |
113 | - $ret .= '</td><td class="' . $class . '">' . $ele->render() . '</td></tr>' . NWLINE; |
|
113 | + $ret .= '</td><td class="'.$class.'">'.$ele->render().'</td></tr>'.NWLINE; |
|
114 | 114 | } else { |
115 | 115 | $ret .= '<tr valign="top" align="left"><td class="head" colspan="2">'; |
116 | 116 | if (($caption = $ele->getCaption()) != '') { |
117 | - $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
|
118 | - $ret .= '<span class="caption-text">' . $caption . '</span>'; |
|
117 | + $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">'; |
|
118 | + $ret .= '<span class="caption-text">'.$caption.'</span>'; |
|
119 | 119 | $ret .= '<span class="caption-marker">*</span>'; |
120 | 120 | $ret .= '</div>'; |
121 | 121 | } |
122 | - $ret .= '</td></tr><tr valign="top" align="left"><td class="' . $class . '" colspan="2">' . $ele->render() . '</td></tr>'; |
|
122 | + $ret .= '</td></tr><tr valign="top" align="left"><td class="'.$class.'" colspan="2">'.$ele->render().'</td></tr>'; |
|
123 | 123 | } |
124 | 124 | } else { |
125 | 125 | $hidden .= $ele->render(); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $ret .= '</table>'; |
131 | 131 | } |
132 | 132 | |
133 | - $ret .= NWLINE . ' ' . $hidden . NWLINE; |
|
133 | + $ret .= NWLINE.' '.$hidden.NWLINE; |
|
134 | 134 | |
135 | 135 | return $ret; |
136 | 136 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | if (!isset($g_pcl_trace_name)) { |
171 | 171 | $g_pcl_trace_name = $p_name; |
172 | 172 | } else { |
173 | - $g_pcl_trace_name .= ',' . $p_name; |
|
173 | + $g_pcl_trace_name .= ','.$p_name; |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | // ----- Update the function entry |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | echo '<tr>'; |
399 | 399 | echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><tr>'; |
400 | 400 | $n = ($g_pcl_trace_entries[$i]['index'] + 1) * 10; |
401 | - echo '<td width=' . $n . '><table width=100% border=0 cellspacing=0 cellpadding=0><tr>'; |
|
401 | + echo '<td width='.$n.'><table width=100% border=0 cellspacing=0 cellpadding=0><tr>'; |
|
402 | 402 | |
403 | 403 | for ($j = 0; $j <= $g_pcl_trace_entries[$i]['index']; ++$j) { |
404 | 404 | if ($j == $g_pcl_trace_entries[$i]['index']) { |
@@ -415,25 +415,25 @@ discard block |
||
415 | 415 | echo '<td width=2></td>'; |
416 | 416 | switch ($g_pcl_trace_entries[$i]['type']) { |
417 | 417 | case 1: |
418 | - echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>'; |
|
418 | + echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>'; |
|
419 | 419 | break; |
420 | 420 | case 2: |
421 | - echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '()=' . $g_pcl_trace_entries[$i]['param'] . '</span></td>'; |
|
421 | + echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'()='.$g_pcl_trace_entries[$i]['param'].'</span></td>'; |
|
422 | 422 | break; |
423 | 423 | case 3: |
424 | 424 | case 4: |
425 | 425 | echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><td width=20></td><td>'; |
426 | - echo "<span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['message'] . '</span>'; |
|
426 | + echo "<span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['message'].'</span>'; |
|
427 | 427 | echo '</td></table></td>'; |
428 | 428 | break; |
429 | 429 | default: |
430 | - echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>'; |
|
430 | + echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>'; |
|
431 | 431 | } |
432 | 432 | echo '</tr></table></td>'; |
433 | 433 | echo '<td width=5></td>'; |
434 | - echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . basename($g_pcl_trace_entries[$i]['file']) . '</span></td>'; |
|
434 | + echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.basename($g_pcl_trace_entries[$i]['file']).'</span></td>'; |
|
435 | 435 | echo '<td width=5></td>'; |
436 | - echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . $g_pcl_trace_entries[$i]['line'] . '</span></td>'; |
|
436 | + echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.$g_pcl_trace_entries[$i]['line'].'</span></td>'; |
|
437 | 437 | echo '</tr>'; |
438 | 438 | } |
439 | 439 | |
@@ -477,12 +477,12 @@ discard block |
||
477 | 477 | echo '---'; |
478 | 478 | } |
479 | 479 | if ($p_entry['type'] == 1) { |
480 | - echo '<b>' . $p_entry['name'] . '</b>(' . $p_entry['param'] . ') : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>'; |
|
480 | + echo '<b>'.$p_entry['name'].'</b>('.$p_entry['param'].') : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>'; |
|
481 | 481 | } else { |
482 | 482 | if ($p_entry['type'] == 2) { |
483 | - echo '<b>' . $p_entry['name'] . '</b>()=' . $p_entry['param'] . ' : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>'; |
|
483 | + echo '<b>'.$p_entry['name'].'</b>()='.$p_entry['param'].' : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>'; |
|
484 | 484 | } else { |
485 | - echo $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>'; |
|
485 | + echo $p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>'; |
|
486 | 486 | } |
487 | 487 | } |
488 | 488 | } |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
4 | 4 | |
5 | -require_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; |
|
5 | +require_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)) { |