Passed
Pull Request — master (#2)
by tsms
02:11
created
Calendar/Month/Weekdays.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * @access public
115 115
      */
116
-    function __construct($y, $m, $firstDay=null)
116
+    function __construct($y, $m, $firstDay = null)
117 117
     {
118 118
         parent::__construct($y, $m, $firstDay);
119 119
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     function buildEmptyDaysBefore()
152 152
     {
153 153
         $eBefore = $this->tableHelper->getEmptyDaysBefore();
154
-        for ($i=0; $i < $eBefore; $i++) {
154
+        for ($i = 0; $i < $eBefore; $i++) {
155 155
             $stamp = $this->cE->dateToStamp($this->year, $this->month, -$i);
156 156
             $Day = new Day(
157 157
                                 $this->cE->stampToYear($stamp),
@@ -187,8 +187,8 @@  discard block
 block discarded – undo
187 187
     {
188 188
         $eAfter = $this->tableHelper->getEmptyDaysAfter();
189 189
         $sDOM   = $this->tableHelper->getNumTableDaysInMonth();
190
-        for ($i=1; $i <= $sDOM-$eAfter; $i++) {
191
-            $Day = new Day($this->year, $this->month+1, $i);
190
+        for ($i = 1; $i <= $sDOM - $eAfter; $i++) {
191
+            $Day = new Day($this->year, $this->month + 1, $i);
192 192
             $Day->setEmpty();
193 193
             $Day->adjust();
194 194
             array_push($this->children, $Day);
@@ -210,9 +210,9 @@  discard block
 block discarded – undo
210 210
             $this->thisDay()
211 211
         );
212 212
         $sDOM = $this->tableHelper->getNumTableDaysInMonth();
213
-        for ($i=1; $i <= $sDOM; $i+= $dIW) {
213
+        for ($i = 1; $i <= $sDOM; $i += $dIW) {
214 214
             $this->children[$i]->setFirst();
215
-            $this->children[$i+($dIW-1)]->setLast();
215
+            $this->children[$i + ($dIW - 1)]->setLast();
216 216
         }
217 217
     }
218 218
 }
Please login to merge, or discard this patch.