@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | include_once CALENDAR_ROOT.'Hour.php'; |
120 | 120 | |
121 | 121 | $hID = $this->cE->getHoursInDay($this->year, $this->month, $this->day); |
122 | - for ($i=0; $i < $hID; $i++) { |
|
122 | + for ($i = 0; $i < $hID; $i++) { |
|
123 | 123 | $this->children[$i] = |
124 | 124 | new Hour($this->year, $this->month, $this->day, $i); |
125 | 125 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * @return void |
215 | 215 | * @access private |
216 | 216 | */ |
217 | - function setEmpty ($state = true) |
|
217 | + function setEmpty($state = true) |
|
218 | 218 | { |
219 | 219 | $this->empty = $state; |
220 | 220 | } |
@@ -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,19 +341,19 @@ 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 | - include_once CALENDAR_ROOT.'Factory.php'; |
|
351 | - return Factory::createByTimestamp($returnType, $stamp); |
|
352 | - break; |
|
353 | - case 'timestamp': |
|
354 | - default: |
|
355 | - return $stamp; |
|
356 | - break; |
|
344 | + case 'int': |
|
345 | + return $default; |
|
346 | + case 'array': |
|
347 | + return $this->toArray($stamp); |
|
348 | + break; |
|
349 | + case 'object': |
|
350 | + include_once CALENDAR_ROOT.'Factory.php'; |
|
351 | + return Factory::createByTimestamp($returnType, $stamp); |
|
352 | + break; |
|
353 | + case 'timestamp': |
|
354 | + default: |
|
355 | + return $stamp; |
|
356 | + break; |
|
357 | 357 | } |
358 | 358 | } |
359 | 359 |
@@ -108,7 +108,7 @@ |
||
108 | 108 | include_once CALENDAR_ROOT.'Factory.php'; |
109 | 109 | $this->firstDay = $this->defineFirstDayOfWeek($firstDay); |
110 | 110 | $monthsInYear = $this->cE->getMonthsInYear($this->thisYear()); |
111 | - for ($i=1; $i <= $monthsInYear; $i++) { |
|
111 | + for ($i = 1; $i <= $monthsInYear; $i++) { |
|
112 | 112 | $this->children[$i] = Factory::create('Month', $this->year, $i); |
113 | 113 | } |
114 | 114 | if (count($sDates) > 0) { |