Completed
Branch master (838035)
by Michael
03:45
created
htdocs/modules/extcal/class/pear/Calendar/Month/Weekdays.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 /**
48 48
  * Load Calendar base class
49 49
  */
50
-require_once CALENDAR_ROOT.'Calendar.php';
50
+require_once CALENDAR_ROOT . 'Calendar.php';
51 51
 
52 52
 /**
53 53
  * Load base month
54 54
  */
55
-require_once CALENDAR_ROOT.'Month.php';
55
+require_once CALENDAR_ROOT . 'Month.php';
56 56
 
57 57
 /**
58 58
  * Represents a Month and builds Days in tabular form<br>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *
109 109
      * @access public
110 110
      */
111
-    function Calendar_Month_Weekdays($y, $m, $firstDay=null)
111
+    function Calendar_Month_Weekdays($y, $m, $firstDay = null)
112 112
     {
113 113
         parent::Calendar_Month($y, $m, $firstDay);
114 114
     }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     function build($sDates = array())
130 130
     {
131
-        include_once CALENDAR_ROOT.'Table/Helper.php';
131
+        include_once CALENDAR_ROOT . 'Table/Helper.php';
132 132
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
133 133
         Calendar_Month::build($sDates);
134 134
         $this->buildEmptyDaysBefore();
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     static function buildEmptyDaysBefore()
149 149
     {
150 150
         $eBefore = $this->tableHelper->getEmptyDaysBefore();
151
-        for ($i=0; $i < $eBefore; ++$i) {
151
+        for ($i = 0; $i < $eBefore; ++$i) {
152 152
             $stamp = $this->cE->dateToStamp($this->year, $this->month, -$i);
153 153
             $Day = new Calendar_Day(
154 154
                                 $this->cE->stampToYear($stamp),
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $eAfter = $this->tableHelper->getEmptyDaysAfter();
186 186
         $sDOM   = $this->tableHelper->getNumTableDaysInMonth();
187
-        for ($i=1; $i <= $sDOM-$eAfter; ++$i) {
188
-            $Day = new Calendar_Day($this->year, $this->month+1, $i);
187
+        for ($i = 1; $i <= $sDOM - $eAfter; ++$i) {
188
+            $Day = new Calendar_Day($this->year, $this->month + 1, $i);
189 189
             $Day->setEmpty();
190 190
             $Day->adjust();
191 191
             array_push($this->children, $Day);
@@ -207,9 +207,9 @@  discard block
 block discarded – undo
207 207
             $this->thisDay()
208 208
         );
209 209
         $sDOM = $this->tableHelper->getNumTableDaysInMonth();
210
-        for ($i=1; $i <= $sDOM; $i+= $dIW) {
210
+        for ($i = 1; $i <= $sDOM; $i += $dIW) {
211 211
             $this->children[$i]->setFirst();
212
-            $this->children[$i+($dIW-1)]->setLast();
212
+            $this->children[$i + ($dIW - 1)]->setLast();
213 213
         }
214 214
     }
215 215
 }
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Util/Uri.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @access public
100 100
      */
101
-    function Calendar_Util_Uri($y, $m=null, $d=null, $h=null, $i=null, $s=null)
101
+    function Calendar_Util_Uri($y, $m = null, $d = null, $h = null, $i = null, $s = null)
102 102
     {
103 103
         $this->setFragments($y, $m, $d, $h, $i, $s);
104 104
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * @return void
117 117
      * @access public
118 118
      */
119
-    function setFragments($y, $m=null, $d=null, $h=null, $i=null, $s=null)
119
+    function setFragments($y, $m = null, $d = null, $h = null, $i = null, $s = null)
120 120
     {
121 121
         if (!is_null($y)) $this->uris['Year']   = $y;
122 122
         if (!is_null($m)) $this->uris['Month']  = $m;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     function prev($Calendar, $unit)
139 139
     {
140
-        $method = 'prev'.$unit;
140
+        $method = 'prev' . $unit;
141 141
         $stamp  = $Calendar->{$method}('timestamp');
142 142
 
143 143
         return $this->buildUriString($Calendar, $method, $stamp);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     function this($Calendar, $unit)
156 156
     {
157
-        $method = 'this'.$unit;
157
+        $method = 'this' . $unit;
158 158
         $stamp  = $Calendar->{$method}('timestamp');
159 159
 
160 160
         return $this->buildUriString($Calendar, $method, $stamp);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     function next($Calendar, $unit)
173 173
     {
174
-        $method = 'next'.$unit;
174
+        $method = 'next' . $unit;
175 175
         $stamp  = $Calendar->{$method}('timestamp');
176 176
 
177 177
         return $this->buildUriString($Calendar, $method, $stamp);
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
         $cE = & $Calendar->getEngine();
194 194
         $separator = '';
195 195
         foreach ($this->uris as $unit => $uri) {
196
-            $call = 'stampTo'.$unit;
196
+            $call = 'stampTo' . $unit;
197 197
             $uriString .= $separator;
198 198
             if (!$this->scalar) {
199
-                $uriString .= $uri.'=';
199
+                $uriString .= $uri . '=';
200 200
             }
201 201
             $uriString .= $cE->{$call}($stamp);
202 202
             $separator = $this->separator;
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Util/Textual.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 /**
54 54
  * Load Calendar decorator base class
55 55
  */
56
-require_once CALENDAR_ROOT.'Decorator.php';
56
+require_once CALENDAR_ROOT . 'Decorator.php';
57 57
 
58 58
 /**
59 59
  * Static utlities to help with fetching textual representations of months and
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             $format = 'long';
93 93
         }
94 94
         $months = array();
95
-        for ($i=1; $i<=12; ++$i) {
95
+        for ($i = 1; $i <= 12; ++$i) {
96 96
             $stamp = mktime(0, 0, 0, $i, 1, 2003);
97 97
             $month = strftime($formats[$format], $stamp);
98 98
             switch ($format) {
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
             $format = 'long';
131 131
         }
132 132
         $days = array();
133
-        for ($i=0; $i<=6; ++$i) {
134
-            $stamp = mktime(0, 0, 0, 11, $i+2, 2003);
133
+        for ($i = 0; $i <= 6; ++$i) {
134
+            $stamp = mktime(0, 0, 0, 11, $i + 2, 2003);
135 135
             $day = strftime($formats[$format], $stamp);
136 136
             switch ($format) {
137 137
             case 'one':
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      * @access public
233 233
      * @static
234 234
      */
235
-    static function thisDayName($Calendar, $format='long')
235
+    static function thisDayName($Calendar, $format = 'long')
236 236
     {
237 237
         $days = Calendar_Util_Textual::weekdayNames($format);
238 238
         include_once 'Date/Calc.php';
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      * @access public
252 252
      * @static
253 253
      */
254
-    static function nextDayName($Calendar, $format='long')
254
+    static function nextDayName($Calendar, $format = 'long')
255 255
     {
256 256
         $days = Calendar_Util_Textual::weekdayNames($format);
257 257
         $stamp = $Calendar->nextDay('timestamp');
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Hour.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 /**
48 48
  * Load Calendar base class
49 49
  */
50
-require_once CALENDAR_ROOT.'Calendar.php';
50
+require_once CALENDAR_ROOT . 'Calendar.php';
51 51
 
52 52
 /**
53 53
  * Represents an Hour and builds Minutes
@@ -95,10 +95,10 @@  discard block
 block discarded – undo
95 95
      */
96 96
     function build($sDates = array())
97 97
     {
98
-        include_once CALENDAR_ROOT.'Minute.php';
98
+        include_once CALENDAR_ROOT . 'Minute.php';
99 99
         $mIH = $this->cE->getMinutesInHour($this->year, $this->month, $this->day,
100 100
                            $this->hour);
101
-        for ($i=0; $i < $mIH; ++$i) {
101
+        for ($i = 0; $i < $mIH; ++$i) {
102 102
             $this->children[$i] =
103 103
                 new Calendar_Minute($this->year, $this->month, $this->day,
104 104
                            $this->hour, $i);
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Week.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 /**
49 49
  * Load Calendar base class
50 50
  */
51
-require_once CALENDAR_ROOT.'Calendar.php';
51
+require_once CALENDAR_ROOT . 'Calendar.php';
52 52
 
53 53
 /**
54 54
  * Represents a Week and builds Days in tabular format<br>
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     function Calendar_Week($y, $m, $d, $firstDay = null)
139 139
     {
140
-        include_once CALENDAR_ROOT.'Table/Helper.php';
140
+        include_once CALENDAR_ROOT . 'Table/Helper.php';
141 141
         parent::Calendar($y, $m, $d);
142 142
         $this->firstDay    = $this->defineFirstDayOfWeek($firstDay);
143 143
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     function build($sDates = array())
213 213
     {
214
-        include_once CALENDAR_ROOT.'Day.php';
214
+        include_once CALENDAR_ROOT . 'Day.php';
215 215
         $year  = $this->cE->stampToYear($this->thisWeek);
216 216
         $month = $this->cE->stampToMonth($this->thisWeek);
217 217
         $day   = $this->cE->stampToDay($this->thisWeek);
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             $this->thisDay()
222 222
         );
223 223
 
224
-        for ($i=1; $i <= $end; ++$i) {
224
+        for ($i = 1; $i <= $end; ++$i) {
225 225
             $stamp = $this->cE->dateToStamp($year, $month, $day++);
226 226
             $this->children[$i] = new Calendar_Day(
227 227
                 $this->cE->stampToYear($stamp),
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
         //set empty days (@see Calendar_Month_Weeks::build())
234 234
         if ($this->firstWeek) {
235 235
             $eBefore = $this->tableHelper->getEmptyDaysBefore();
236
-            for ($i=1; $i <= $eBefore; ++$i) {
236
+            for ($i = 1; $i <= $eBefore; ++$i) {
237 237
                 $this->children[$i]->setEmpty();
238 238
             }
239 239
         }
240 240
         if ($this->lastWeek) {
241 241
             $eAfter = $this->tableHelper->getEmptyDaysAfterOffset();
242
-            for ($i = $eAfter+1; $i <= $end; ++$i) {
242
+            for ($i = $eAfter + 1; $i <= $end; ++$i) {
243 243
                 $this->children[$i]->setEmpty();
244 244
             }
245 245
         }
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         switch (strtolower($format)) {
350 350
         case 'int':
351 351
         case 'n_in_month':
352
-            return ($this->firstWeek) ? null : $this->thisWeek('n_in_month') -1;
352
+            return ($this->firstWeek) ? null : $this->thisWeek('n_in_month') - 1;
353 353
         case 'n_in_year':
354 354
             return $this->cE->getWeekNInYear(
355 355
                 $this->cE->stampToYear($this->prevWeek),
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
         case 'array':
359 359
             return $this->toArray($this->prevWeek);
360 360
         case 'object':
361
-            include_once CALENDAR_ROOT.'Factory.php';
361
+            include_once CALENDAR_ROOT . 'Factory.php';
362 362
 
363 363
             return Calendar_Factory::createByTimestamp('Week', $this->prevWeek);
364 364
         case 'timestamp':
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
         case 'array':
404 404
             return $this->toArray($this->thisWeek);
405 405
         case 'object':
406
-            include_once CALENDAR_ROOT.'Factory.php';
406
+            include_once CALENDAR_ROOT . 'Factory.php';
407 407
 
408 408
             return Calendar_Factory::createByTimestamp('Week', $this->thisWeek);
409 409
         case 'timestamp':
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         switch (strtolower($format)) {
426 426
         case 'int':
427 427
         case 'n_in_month':
428
-            return ($this->lastWeek) ? null : $this->thisWeek('n_in_month') +1;
428
+            return ($this->lastWeek) ? null : $this->thisWeek('n_in_month') + 1;
429 429
         case 'n_in_year':
430 430
             return $this->cE->getWeekNInYear(
431 431
                 $this->cE->stampToYear($this->nextWeek),
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         case 'array':
435 435
             return $this->toArray($this->nextWeek);
436 436
         case 'object':
437
-            include_once CALENDAR_ROOT.'Factory.php';
437
+            include_once CALENDAR_ROOT . 'Factory.php';
438 438
 
439 439
             return Calendar_Factory::createByTimestamp('Week', $this->nextWeek);
440 440
         case 'timestamp':
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Month.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 /**
48 48
  * Load Calendar base class
49 49
  */
50
-require_once CALENDAR_ROOT.'Calendar.php';
50
+require_once CALENDAR_ROOT . 'Calendar.php';
51 51
 
52 52
 /**
53 53
  * Represents a Month and builds Days
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      *
80 80
      * @access public
81 81
      */
82
-    function Calendar_Month($y, $m, $firstDay=null)
82
+    function Calendar_Month($y, $m, $firstDay = null)
83 83
     {
84 84
         parent::Calendar($y, $m);
85 85
         $this->firstDay = $this->defineFirstDayOfWeek($firstDay);
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
      */
97 97
     function build($sDates = array())
98 98
     {
99
-        include_once CALENDAR_ROOT.'Day.php';
99
+        include_once CALENDAR_ROOT . 'Day.php';
100 100
         $daysInMonth = $this->cE->getDaysInMonth($this->year, $this->month);
101
-        for ($i=1; $i<=$daysInMonth; ++$i) {
101
+        for ($i = 1; $i <= $daysInMonth; ++$i) {
102 102
             $this->children[$i] = new Calendar_Day($this->year, $this->month, $i);
103 103
         }
104 104
         if (count($sDates) > 0) {
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Day.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 /**
48 48
  * Load Calendar base class
49 49
  */
50
-require_once CALENDAR_ROOT.'Calendar.php';
50
+require_once CALENDAR_ROOT . 'Calendar.php';
51 51
 
52 52
 /**
53 53
  * Represents a Day and builds Hours.
@@ -114,10 +114,10 @@  discard block
 block discarded – undo
114 114
      */
115 115
     function build($sDates = array())
116 116
     {
117
-        include_once CALENDAR_ROOT.'Hour.php';
117
+        include_once CALENDAR_ROOT . 'Hour.php';
118 118
 
119 119
         $hID = $this->cE->getHoursInDay($this->year, $this->month, $this->day);
120
-        for ($i=0; $i < $hID; ++$i) {
120
+        for ($i = 0; $i < $hID; ++$i) {
121 121
             $this->children[$i] =
122 122
                 new Calendar_Hour($this->year, $this->month, $this->day, $i);
123 123
         }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @return void
214 214
      * @access private
215 215
      */
216
-    function setEmpty ($state = true)
216
+    function setEmpty($state = true)
217 217
     {
218 218
         $this->empty = $state;
219 219
     }
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Engine/Interface.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * @return int (e.g. 12)
187 187
      * @access protected
188 188
      */
189
-    function getMonthsInYear($y=null)
189
+    function getMonthsInYear($y = null)
190 190
     {
191 191
     }
192 192
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @return int
214 214
      * @access protected
215 215
      */
216
-    function getFirstDayInMonth ($y, $m)
216
+    function getFirstDayInMonth($y, $m)
217 217
     {
218 218
     }
219 219
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      * @return int (e.g. 7)
228 228
      * @access protected
229 229
      */
230
-    function getDaysInWeek($y=null, $m=null, $d=null)
230
+    function getDaysInWeek($y = null, $m = null, $d = null)
231 231
     {
232 232
     }
233 233
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * @return int week number
257 257
      * @access protected
258 258
      */
259
-    function getWeekNInMonth($y, $m, $d, $firstDay=1)
259
+    function getWeekNInMonth($y, $m, $d, $firstDay = 1)
260 260
     {
261 261
     }
262 262
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      * @return array list of numeric values of days in week, beginning 0
298 298
      * @access protected
299 299
      */
300
-    function getWeekDays($y=null, $m=null, $d=null)
300
+    function getWeekDays($y = null, $m = null, $d = null)
301 301
     {
302 302
     }
303 303
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      * @see getWeekDays
314 314
      * @access protected
315 315
      */
316
-    function getFirstDayOfWeek($y=null, $m=null, $d=null)
316
+    function getFirstDayOfWeek($y = null, $m = null, $d = null)
317 317
     {
318 318
     }
319 319
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
      * @return int (e.g. 24)
328 328
      * @access protected
329 329
      */
330
-    function getHoursInDay($y=null,$m=null,$d=null)
330
+    function getHoursInDay($y = null, $m = null, $d = null)
331 331
     {
332 332
     }
333 333
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      * @return int
343 343
      * @access protected
344 344
      */
345
-    function getMinutesInHour($y=null,$m=null,$d=null,$h=null)
345
+    function getMinutesInHour($y = null, $m = null, $d = null, $h = null)
346 346
     {
347 347
     }
348 348
 
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      * @return int
359 359
      * @access protected
360 360
      */
361
-    function getSecondsInMinute($y=null,$m=null,$d=null,$h=null,$i=null)
361
+    function getSecondsInMinute($y = null, $m = null, $d = null, $h = null, $i = null)
362 362
     {
363 363
     }
364 364
 
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/Engine/UnixTS.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     function stampCollection($stamp)
77 77
     {
78 78
         static $stamps = array();
79
-        if ( !isset($stamps[$stamp]) ) {
79
+        if (!isset($stamps[$stamp])) {
80 80
             $date = @date('Y n j H i s t W w', $stamp);
81 81
             $stamps[$stamp] = sscanf($date, "%d %d %d %d %d %d %d %d %d");
82 82
         }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * @return int Unix timestamp
188 188
      * @access protected
189 189
      */
190
-    function dateToStamp($y, $m, $d, $h=0, $i=0, $s=0)
190
+    function dateToStamp($y, $m, $d, $h = 0, $i = 0, $s = 0)
191 191
     {
192 192
         static $dates = array();
193 193
         if (!isset($dates[$y][$m][$d][$h][$i][$s])) {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      * @return int (12)
228 228
      * @access protected
229 229
      */
230
-    function getMonthsInYear($y=null)
230
+    function getMonthsInYear($y = null)
231 231
     {
232 232
         return 12;
233 233
     }
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * @return int (7)
278 278
      * @access protected
279 279
      */
280
-    function getDaysInWeek($y=null, $m=null, $d=null)
280
+    function getDaysInWeek($y = null, $m = null, $d = null)
281 281
     {
282 282
         return 7;
283 283
     }
@@ -311,9 +311,9 @@  discard block
 block discarded – undo
311 311
      * @return int week number
312 312
      * @access protected
313 313
      */
314
-    function getWeekNInMonth($y, $m, $d, $firstDay=1)
314
+    function getWeekNInMonth($y, $m, $d, $firstDay = 1)
315 315
     {
316
-        $weekEnd = (0 == $firstDay) ? $this->getDaysInWeek()-1 : $firstDay-1;
316
+        $weekEnd = (0 == $firstDay) ? $this->getDaysInWeek() - 1 : $firstDay - 1;
317 317
         $end_of_week = 1;
318 318
         while (@date('w', @mktime(0, 0, 0, $m, $end_of_week, $y)) != $weekEnd) {
319 319
             ++$end_of_week; //find first weekend of the month
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
      * @return array (0,1,2,3,4,5,6) 1 = Monday
385 385
      * @access protected
386 386
      */
387
-    function getWeekDays($y=null, $m=null, $d=null)
387
+    function getWeekDays($y = null, $m = null, $d = null)
388 388
     {
389 389
         return array(0, 1, 2, 3, 4, 5, 6);
390 390
     }
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
      * @return int (default 1 = Monday)
400 400
      * @access protected
401 401
      */
402
-    function getFirstDayOfWeek($y=null, $m=null, $d=null)
402
+    function getFirstDayOfWeek($y = null, $m = null, $d = null)
403 403
     {
404 404
         return 1;
405 405
     }
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
      * @return int (24)
415 415
      * @access protected
416 416
      */
417
-    function getHoursInDay($y=null, $m=null, $d=null)
417
+    function getHoursInDay($y = null, $m = null, $d = null)
418 418
     {
419 419
         return 24;
420 420
     }
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
      * @return int (_EXTCAL_TS_MINUTE)
431 431
      * @access protected
432 432
      */
433
-    function getMinutesInHour($y=null, $m=null, $d=null, $h=null)
433
+    function getMinutesInHour($y = null, $m = null, $d = null, $h = null)
434 434
     {
435 435
         return _EXTCAL_TS_MINUTE;
436 436
     }
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      * @return int (_EXTCAL_TS_MINUTE)
448 448
      * @access protected
449 449
      */
450
-    function getSecondsInMinute($y=null, $m=null, $d=null, $h=null, $i=null)
450
+    function getSecondsInMinute($y = null, $m = null, $d = null, $h = null, $i = null)
451 451
     {
452 452
         return _EXTCAL_TS_MINUTE;
453 453
     }
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         }
470 470
         $date = Calendar_Engine_UnixTS::stampCollection($stamp);
471 471
 
472
-        return (   $date[2] == $today[2]
472
+        return ($date[2] == $today[2]
473 473
                 && $date[1] == $today[1]
474 474
                 && $date[0] == $today[0]
475 475
         );
Please login to merge, or discard this patch.