Passed
Pull Request — master (#2)
by tsms
01:48
created
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/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.