@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | * @param int $m month (9) |
| 382 | 382 | * @param int $d day (4) |
| 383 | 383 | * |
| 384 | - * @return array (0,1,2,3,4,5,6) 1 = Monday |
|
| 384 | + * @return integer[] (0,1,2,3,4,5,6) 1 = Monday |
|
| 385 | 385 | * @access protected |
| 386 | 386 | */ |
| 387 | 387 | function getWeekDays($y=null, $m=null, $d=null) |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | /** |
| 456 | 456 | * Checks if the given day is the current day |
| 457 | 457 | * |
| 458 | - * @param mixed $stamp Any timestamp format recognized by Pear::Date |
|
| 458 | + * @param integer $stamp Any timestamp format recognized by Pear::Date |
|
| 459 | 459 | * |
| 460 | 460 | * @return boolean |
| 461 | 461 | * @access protected |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | /** |
| 198 | 198 | * Returns the first day of the month |
| 199 | 199 | * |
| 200 | - * @return int |
|
| 200 | + * @return string |
|
| 201 | 201 | * @access protected |
| 202 | 202 | * @see Calendar_Engine_Interface::getFirstDayOfWeek() |
| 203 | 203 | */ |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * Gets the URI string for the previous calendar unit |
| 131 | 131 | * |
| 132 | - * @param object $Calendar subclassed from Calendar e.g. Calendar_Month |
|
| 132 | + * @param Calendar_Decorator_Uri $Calendar subclassed from Calendar e.g. Calendar_Month |
|
| 133 | 133 | * @param string $unit calendar unit (year|month|week|day|hour|minute|second) |
| 134 | 134 | * |
| 135 | 135 | * @return string |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | /** |
| 164 | 164 | * Gets the URI string for the next calendar unit |
| 165 | 165 | * |
| 166 | - * @param object $Calendar subclassed from Calendar e.g. Calendar_Month |
|
| 166 | + * @param Calendar_Decorator_Uri $Calendar subclassed from Calendar e.g. Calendar_Month |
|
| 167 | 167 | * @param string $unit calendar unit (year|month|week|day|hour|minute|second) |
| 168 | 168 | * |
| 169 | 169 | * @return string |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * @param $id |
|
| 46 | + * @param integer $id |
|
| 47 | 47 | * |
| 48 | 48 | * @return mixed |
| 49 | 49 | */ |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * @param $format |
| 92 | 92 | * @param $timestamp |
| 93 | 93 | * |
| 94 | - * @return mixed |
|
| 94 | + * @return string |
|
| 95 | 95 | */ |
| 96 | 96 | function getFormatedDate($format, $timestamp) |
| 97 | 97 | { |
@@ -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)) { |
@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | * @return array |
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | +/** |
|
| 41 | + * @param string $formatDate |
|
| 42 | + */ |
|
| 40 | 43 | function agenda_getCanevas( |
| 41 | 44 | $ts, |
| 42 | 45 | $hStart, |
@@ -294,6 +297,9 @@ discard block |
||
| 294 | 297 | ****************************************************************** |
| 295 | 298 | * @param $name |
| 296 | 299 | */ |
| 300 | +/** |
|
| 301 | + * @param string $name |
|
| 302 | + */ |
|
| 297 | 303 | function ext_loadLanguage($name) |
| 298 | 304 | { |
| 299 | 305 | global $xoopsConfig; |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | define('_EXTCAL_FORMAT_AGENDA_KEYD', 'Y-m-d'); |
| 19 | 19 | define('_EXTCAL_FORMAT_AGENDA_KEYT', 'H:i'); |
| 20 | 20 | |
| 21 | -include_once __DIR__ . '/constantes.php'; |
|
| 22 | -include_once __DIR__ . '/../class/utilities.php'; |
|
| 21 | +include_once __DIR__.'/constantes.php'; |
|
| 22 | +include_once __DIR__.'/../class/utilities.php'; |
|
| 23 | 23 | |
| 24 | 24 | $moduleDirName = basename(dirname(__DIR__)); |
| 25 | 25 | xoops_loadLanguage('main', $moduleDirName); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $tj[$kj]['dayWeek'] = date('w', $tsj); |
| 72 | 72 | $tj[$kj]['jour'] = $jName[$tj[$kj]['dayWeek']]; //date('l', $tsj); |
| 73 | 73 | if ($tj[$kj]['dayWeek'] == 0) { |
| 74 | - $tj[$kj]['bg'] = "background='" . XOOPS_URL . "/modules/extcal/assets/images/trame.png'"; |
|
| 74 | + $tj[$kj]['bg'] = "background='".XOOPS_URL."/modules/extcal/assets/images/trame.png'"; |
|
| 75 | 75 | } else { |
| 76 | 76 | $tj[$kj]['bg'] = ''; |
| 77 | 77 | } |
@@ -151,16 +151,16 @@ discard block |
||
| 151 | 151 | $kd = date(_EXTCAL_FORMAT_AGENDA_KEYD, $ts); |
| 152 | 152 | $hour = date('H', $ts); |
| 153 | 153 | $minute = date('i', $ts); |
| 154 | - $m = (int)($minute / $mPlage) * $mPlage; |
|
| 154 | + $m = (int) ($minute / $mPlage) * $mPlage; |
|
| 155 | 155 | // echo "--->{$minute} / {$mPlage} = {$m}<br>"; |
| 156 | - $sMinute = (($m < 10) ? '0' . $m : $m); |
|
| 156 | + $sMinute = (($m < 10) ? '0'.$m : $m); |
|
| 157 | 157 | //$kt = date(_EXTCAL_FORMAT_AGENDA_KEYT, $ts); |
| 158 | 158 | if ($hour < $hStart) { |
| 159 | 159 | $kt = $tk0; |
| 160 | 160 | } elseif ($hour >= ($hEnd + 1)) { |
| 161 | 161 | $kt = $tk1; |
| 162 | 162 | } else { |
| 163 | - $kt = $hour . ':' . $sMinute; |
|
| 163 | + $kt = $hour.':'.$sMinute; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | $tAgenda[$kt]['jours'][$kd]['events'][] = $e; |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | return false; |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | - $file = XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/' . $f; |
|
| 312 | + $file = XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/'.$f; |
|
| 313 | 313 | $prefix = (defined($name) ? '_MI' : '_MD'); |
| 314 | 314 | include_once $file; |
| 315 | 315 | } |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | $ordre = array(); |
| 448 | 448 | while (list($k, $v) = each($tNavBar)) { |
| 449 | 449 | if (isset($tWeight[$k])) { |
| 450 | - $ordre[] = (int)$tWeight[$k]; //ordre defini dans les option du module |
|
| 450 | + $ordre[] = (int) $tWeight[$k]; //ordre defini dans les option du module |
|
| 451 | 451 | } else { |
| 452 | 452 | $ordre[] = $v['weight']; // ordre par defaut ddefini dans le tableau $tNavBar |
| 453 | 453 | } |
@@ -211,6 +211,9 @@ discard block |
||
| 211 | 211 | * @param int $mode |
| 212 | 212 | * @param string $sep |
| 213 | 213 | */ |
| 214 | +/** |
|
| 215 | + * @param string $mail_subject |
|
| 216 | + */ |
|
| 214 | 217 | function extcal_SendMail( |
| 215 | 218 | $destinataires, |
| 216 | 219 | $mail_fromname, |
@@ -300,6 +303,9 @@ discard block |
||
| 300 | 303 | * |
| 301 | 304 | * @return string |
| 302 | 305 | */ |
| 306 | +/** |
|
| 307 | + * @param integer $mode |
|
| 308 | + */ |
|
| 303 | 309 | function extcal_getHeader($mode, $emailSender) |
| 304 | 310 | { |
| 305 | 311 | //mode = 0 pas d'entete |
@@ -15,11 +15,11 @@ discard block |
||
| 15 | 15 | * L'utilisation de ce formulaire d'adminitration suppose |
| 16 | 16 | * que la classe correspondante de la table a été générées avec classGenerator |
| 17 | 17 | **/ |
| 18 | -include_once __DIR__ . '/../../../class/uploader.php'; |
|
| 19 | -require __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
| 20 | -include_once __DIR__ . '/../class/utilities.php'; |
|
| 21 | -include_once __DIR__ . '/constantes.php'; |
|
| 22 | -include_once __DIR__ . '/../../../class/template.php'; |
|
| 18 | +include_once __DIR__.'/../../../class/uploader.php'; |
|
| 19 | +require __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
| 20 | +include_once __DIR__.'/../class/utilities.php'; |
|
| 21 | +include_once __DIR__.'/constantes.php'; |
|
| 22 | +include_once __DIR__.'/../../../class/template.php'; |
|
| 23 | 23 | |
| 24 | 24 | /******************************************************************** |
| 25 | 25 | * |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | $action = ''; //a voir JJD |
| 134 | 134 | $message = sprintf($tplMessage, $acteur['name']); |
| 135 | 135 | //$subject .= ' (' . rand(1, 100) . ')'; |
| 136 | - $subject .= ' - ' . $acteur['name']; |
|
| 136 | + $subject .= ' - '.$acteur['name']; |
|
| 137 | 137 | //-------------------------------------------------------------- |
| 138 | 138 | //Chargement du template dans le dossier de langue |
| 139 | 139 | //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html'; |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | if ($mode == _EXTCAL_HEADER_HTML) { |
| 175 | 175 | $template = 'extcal_mail_member_html.tpl'; |
| 176 | 176 | } |
| 177 | - $mail_body = $tpl->fetch('db:' . $template); |
|
| 177 | + $mail_body = $tpl->fetch('db:'.$template); |
|
| 178 | 178 | |
| 179 | 179 | extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|'); |
| 180 | 180 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | //----------------------------- |
| 227 | 227 | $myts = MyTextSanitizer::getInstance(); |
| 228 | 228 | //$xoopsMailer = getMailer(); |
| 229 | - $xoopsMailer =& xoops_getMailer(); |
|
| 229 | + $xoopsMailer = & xoops_getMailer(); |
|
| 230 | 230 | |
| 231 | 231 | //$xoopsMailer->setToUsers($destinataires[$i]); |
| 232 | 232 | |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | $header = array(); |
| 307 | 307 | $header[] = "From: {$emailSender}"; |
| 308 | 308 | $header[] = "Reply-To: {$emailSender}"; |
| 309 | - $header[] = 'X-Mailer: PHP/' . phpversion(); |
|
| 309 | + $header[] = 'X-Mailer: PHP/'.phpversion(); |
|
| 310 | 310 | |
| 311 | 311 | if ($mode == _EXTCAL_HEADER_HTML) { |
| 312 | 312 | $header[] = 'MIME-Version: 1.0'; |
@@ -29,7 +29,7 @@ |
||
| 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 | |
@@ -56,13 +56,13 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function insertBreak($extra = '', $class = '') |
| 58 | 58 | { |
| 59 | - $class = ($class != '') ? " class='" . preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class) . "'" : ''; |
|
| 59 | + $class = ($class != '') ? " class='".preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class)."'" : ''; |
|
| 60 | 60 | // Fix for $extra tag not showing |
| 61 | 61 | if ($extra) { |
| 62 | - $extra = '<tr><td colspan="2" ' . $class . '>' . $extra . '</td></tr>'; |
|
| 62 | + $extra = '<tr><td colspan="2" '.$class.'>'.$extra.'</td></tr>'; |
|
| 63 | 63 | $this->addElement($extra); |
| 64 | 64 | } else { |
| 65 | - $extra = '<tr><td colspan="2" ' . $class . '> </td></tr>'; |
|
| 65 | + $extra = '<tr><td colspan="2" '.$class.'> </td></tr>'; |
|
| 66 | 66 | $this->addElement($extra); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | if ($title <> '') { |
| 95 | - $ret .= '<tr><th colspan="2">' . $title . '</th></tr>'; |
|
| 95 | + $ret .= '<tr><th colspan="2">'.$title.'</th></tr>'; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | $hidden = ''; |
@@ -104,24 +104,24 @@ discard block |
||
| 104 | 104 | if (!$ele->getNocolspan()) { |
| 105 | 105 | $ret .= '<tr valign="top" align="left"><td class="head">'; |
| 106 | 106 | if (($caption = $ele->getCaption()) != '') { |
| 107 | - $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
|
| 108 | - $ret .= '<span class="caption-text">' . $caption . '</span>'; |
|
| 107 | + $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">'; |
|
| 108 | + $ret .= '<span class="caption-text">'.$caption.'</span>'; |
|
| 109 | 109 | $ret .= '<span class="caption-marker">*</span>'; |
| 110 | 110 | $ret .= '</div>'; |
| 111 | 111 | } |
| 112 | 112 | if (($desc = $ele->getDescription()) != '') { |
| 113 | - $ret .= '<div class="xoops-form-element-help">' . $desc . '</div>'; |
|
| 113 | + $ret .= '<div class="xoops-form-element-help">'.$desc.'</div>'; |
|
| 114 | 114 | } |
| 115 | - $ret .= '</td><td class="' . $class . '">' . $ele->render() . '</td></tr>' . NWLINE; |
|
| 115 | + $ret .= '</td><td class="'.$class.'">'.$ele->render().'</td></tr>'.NWLINE; |
|
| 116 | 116 | } else { |
| 117 | 117 | $ret .= '<tr valign="top" align="left"><td class="head" colspan="2">'; |
| 118 | 118 | if (($caption = $ele->getCaption()) != '') { |
| 119 | - $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
|
| 120 | - $ret .= '<span class="caption-text">' . $caption . '</span>'; |
|
| 119 | + $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">'; |
|
| 120 | + $ret .= '<span class="caption-text">'.$caption.'</span>'; |
|
| 121 | 121 | $ret .= '<span class="caption-marker">*</span>'; |
| 122 | 122 | $ret .= '</div>'; |
| 123 | 123 | } |
| 124 | - $ret .= '</td></tr><tr valign="top" align="left"><td class="' . $class . '" colspan="2">' . $ele->render() . '</td></tr>'; |
|
| 124 | + $ret .= '</td></tr><tr valign="top" align="left"><td class="'.$class.'" colspan="2">'.$ele->render().'</td></tr>'; |
|
| 125 | 125 | } |
| 126 | 126 | } else { |
| 127 | 127 | $hidden .= $ele->render(); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $ret .= '</table>'; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - $ret .= NWLINE . ' ' . $hidden . NWLINE; |
|
| 135 | + $ret .= NWLINE.' '.$hidden.NWLINE; |
|
| 136 | 136 | |
| 137 | 137 | return $ret; |
| 138 | 138 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * |
| 41 | 41 | * @internal param bool $encode To sanitizer the text? |
| 42 | 42 | * |
| 43 | - * @return array array of name/value pairs assigned to form elements |
|
| 43 | + * @return boolean|string array of name/value pairs assigned to form elements |
|
| 44 | 44 | */ |
| 45 | 45 | public function getAddBaliseTable() |
| 46 | 46 | { |
@@ -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); |