Passed
Pull Request — master (#2)
by tsms
01:31
created
src/Minute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Year.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Calendar.php 1 patch
Switch Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Month/Weeks.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @access public
89 89
      */
90
-    function __construct($y, $m, $firstDay=null)
90
+    function __construct($y, $m, $firstDay = null)
91 91
     {
92 92
         parent::__construct($y, $m, $firstDay);
93 93
     }
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $this->tableHelper = new Helper($this, $this->firstDay);
107 107
         $numWeeks = $this->tableHelper->getNumWeeks();
108
-        for ($i=1, $d=1; $i<=$numWeeks; $i++,
109
-            $d+=$this->cE->getDaysInWeek(
108
+        for ($i = 1, $d = 1; $i <= $numWeeks; $i++,
109
+            $d += $this->cE->getDaysInWeek(
110 110
                 $this->thisYear(),
111 111
                 $this->thisMonth(),
112 112
                 $this->thisDay()
Please login to merge, or discard this patch.