@@ -126,7 +126,7 @@ |
||
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 | { |
@@ -66,7 +66,7 @@ |
||
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 | /** |
@@ -76,10 +76,10 @@ |
||
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 | } |