@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | function build($sDates = array()) |
| 112 | 112 | { |
| 113 | 113 | $hID = $this->cE->getHoursInDay($this->year, $this->month, $this->day); |
| 114 | - for ($i=0; $i < $hID; $i++) { |
|
| 114 | + for ($i = 0; $i < $hID; $i++) { |
|
| 115 | 115 | $this->children[$i] = |
| 116 | 116 | new Hour($this->year, $this->month, $this->day, $i); |
| 117 | 117 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | * @return void |
| 207 | 207 | * @access private |
| 208 | 208 | */ |
| 209 | - function setEmpty ($state = true) |
|
| 209 | + function setEmpty($state = true) |
|
| 210 | 210 | { |
| 211 | 211 | $this->empty = $state; |
| 212 | 212 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | { |
| 86 | 86 | $sIM = $this->cE->getSecondsInMinute($this->year, $this->month, |
| 87 | 87 | $this->day, $this->hour, $this->minute); |
| 88 | - for ($i=0; $i < $sIM; $i++) { |
|
| 88 | + for ($i = 0; $i < $sIM; $i++) { |
|
| 89 | 89 | $this->children[$i] = new Second($this->year, $this->month, |
| 90 | 90 | $this->day, $this->hour, $this->minute, $i); |
| 91 | 91 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | { |
| 94 | 94 | $this->firstDay = $this->defineFirstDayOfWeek($firstDay); |
| 95 | 95 | $monthsInYear = $this->cE->getMonthsInYear($this->thisYear()); |
| 96 | - for ($i=1; $i <= $monthsInYear; $i++) { |
|
| 96 | + for ($i = 1; $i <= $monthsInYear; $i++) { |
|
| 97 | 97 | $this->children[$i] = Factory::create('Month', $this->year, $i); |
| 98 | 98 | } |
| 99 | 99 | if (count($sDates) > 0) { |
@@ -88,13 +88,13 @@ discard block |
||
| 88 | 88 | { |
| 89 | 89 | static $engine = false; |
| 90 | 90 | switch (CALENDAR_ENGINE) { |
| 91 | - case 'PearDate': |
|
| 92 | - $class = 'Calendar_Engine_PearDate'; |
|
| 93 | - break; |
|
| 94 | - case 'UnixTS': |
|
| 95 | - default: |
|
| 96 | - $class = 'PEAR\Calendar\Engine\UnixTS'; |
|
| 97 | - break; |
|
| 91 | + case 'PearDate': |
|
| 92 | + $class = 'Calendar_Engine_PearDate'; |
|
| 93 | + break; |
|
| 94 | + case 'UnixTS': |
|
| 95 | + default: |
|
| 96 | + $class = 'PEAR\Calendar\Engine\UnixTS'; |
|
| 97 | + break; |
|
| 98 | 98 | } |
| 99 | 99 | if (!$engine) { |
| 100 | 100 | if (!class_exists($class)) { |
@@ -341,18 +341,18 @@ discard block |
||
| 341 | 341 | function returnValue($returnType, $format, $stamp, $default) |
| 342 | 342 | { |
| 343 | 343 | switch (strtolower($format)) { |
| 344 | - case 'int': |
|
| 345 | - return $default; |
|
| 346 | - case 'array': |
|
| 347 | - return $this->toArray($stamp); |
|
| 348 | - break; |
|
| 349 | - case 'object': |
|
| 350 | - return Factory::createByTimestamp($returnType, $stamp); |
|
| 351 | - break; |
|
| 352 | - case 'timestamp': |
|
| 353 | - default: |
|
| 354 | - return $stamp; |
|
| 355 | - break; |
|
| 344 | + case 'int': |
|
| 345 | + return $default; |
|
| 346 | + case 'array': |
|
| 347 | + return $this->toArray($stamp); |
|
| 348 | + break; |
|
| 349 | + case 'object': |
|
| 350 | + return Factory::createByTimestamp($returnType, $stamp); |
|
| 351 | + break; |
|
| 352 | + case 'timestamp': |
|
| 353 | + default: |
|
| 354 | + return $stamp; |
|
| 355 | + break; |
|
| 356 | 356 | } |
| 357 | 357 | } |
| 358 | 358 | |