Passed
Push — master ( 4767ee...021155 )
by Davis
02:15
created
src/WeekInterval.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 
127 127
     /**
128 128
      * @param DateTime $day
129
-     * @return bool|DayNumber
129
+     * @return DayNumber
130 130
      */
131 131
     private function makeDayNumber(DateTime $day)
132 132
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function getTotalDays(): int
68 68
     {
69
-        return (int)$this->endDate->diff($this->startDate)->format('%a') + 1;
69
+        return (int) $this->endDate->diff($this->startDate)->format('%a') + 1;
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
src/DatesConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@
 block discarded – undo
76 76
         $output = new DayNumber(DayNumber::SATURDAY);
77 77
 
78 78
         if (!$this->weeksStartsOn->equals(new DayNumber(DayNumber::SUNDAY))) {
79
-            $aux = (int)$this->weeksStartsOn->getValue() - 1;
79
+            $aux = (int) $this->weeksStartsOn->getValue() - 1;
80 80
 
81 81
             foreach (DayNumber::values() as $day) {
82
-                if ((int)$day->getValue() === $aux) {
82
+                if ((int) $day->getValue() === $aux) {
83 83
                     $output = clone $day;
84 84
                     break;
85 85
                 }
Please login to merge, or discard this patch.