Passed
Pull Request — master (#2)
by tsms
03:23 queued 01:20
created
src/Year.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/ValidationError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      * @return string
138 138
      * @access public
139 139
      */
140
-    function toString ()
140
+    function toString()
141 141
     {
142 142
         return $this->unit.' = '.$this->value.' ['.$this->message.']';
143 143
     }
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 'Hour', $h, CALENDAR_VALUE_TOOSMALL.$min);
206 206
             return false;
207 207
         }
208
-        $max = ($this->cE->getHoursInDay($this->calendar->thisDay())-1);
208
+        $max = ($this->cE->getHoursInDay($this->calendar->thisDay()) - 1);
209 209
         if ($h > $max) {
210 210
             $this->errors[] = new ValidationError(
211 211
                 'Hour', $h, CALENDAR_VALUE_TOOLARGE.$max);
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                 'Minute', $i, CALENDAR_VALUE_TOOSMALL.$min);
230 230
             return false;
231 231
         }
232
-        $max = ($this->cE->getMinutesInHour($this->calendar->thisHour())-1);
232
+        $max = ($this->cE->getMinutesInHour($this->calendar->thisHour()) - 1);
233 233
         if ($i > $max) {
234 234
             $this->errors[] = new ValidationError(
235 235
                 'Minute', $i, CALENDAR_VALUE_TOOLARGE.$max);
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 'Second', $s, CALENDAR_VALUE_TOOSMALL.$min);
254 254
             return false;
255 255
         }
256
-        $max = ($this->cE->getSecondsInMinute($this->calendar->thisMinute())-1);
256
+        $max = ($this->cE->getSecondsInMinute($this->calendar->thisMinute()) - 1);
257 257
         if ($s > $max) {
258 258
             $this->errors[] = new ValidationError(
259 259
                 'Second', $s, CALENDAR_VALUE_TOOLARGE.$max);
Please login to merge, or discard this patch.
src/Hour.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,11 +83,11 @@
 block discarded – undo
83 83
     function build($sDates = array())
84 84
     {
85 85
         $mIH = $this->cE->getMinutesInHour($this->year, $this->month, $this->day,
86
-                           $this->hour);
86
+                            $this->hour);
87 87
         for ($i=0; $i < $mIH; $i++) {
88 88
             $this->children[$i] =
89 89
                 new Minute($this->year, $this->month, $this->day,
90
-                           $this->hour, $i);
90
+                            $this->hour, $i);
91 91
         }
92 92
         if (count($sDates) > 0) {
93 93
             $this->setSelection($sDates);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     {
85 85
         $mIH = $this->cE->getMinutesInHour($this->year, $this->month, $this->day,
86 86
                            $this->hour);
87
-        for ($i=0; $i < $mIH; $i++) {
87
+        for ($i = 0; $i < $mIH; $i++) {
88 88
             $this->children[$i] =
89 89
                 new Minute($this->year, $this->month, $this->day,
90 90
                            $this->hour, $i);
Please login to merge, or discard this patch.