@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @return \DateTime |
|
| 41 | + * @return string |
|
| 42 | 42 | */ |
| 43 | 43 | public function current() |
| 44 | 44 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | throw new \OutOfBoundsException('Day of week greater than 7'); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - $this->weekday = (int)$dayOfWeek; |
|
| 43 | + $this->weekday = (int) $dayOfWeek; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -49,6 +49,6 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function is($date) |
| 51 | 51 | { |
| 52 | - return (int)date('N', strtotime($date)) === $this->weekday; |
|
| 52 | + return (int) date('N', strtotime($date)) === $this->weekday; |
|
| 53 | 53 | } |
| 54 | 54 | } |
@@ -75,8 +75,8 @@ |
||
| 75 | 75 | */ |
| 76 | 76 | private function setFromTimestamp($timestamp) |
| 77 | 77 | { |
| 78 | - $this->year = (int)date('Y', $timestamp); |
|
| 79 | - $this->month = (int)date('n', $timestamp); |
|
| 80 | - $this->daysInMonth = (int)date('t', strtotime($this->getStartDate())); |
|
| 78 | + $this->year = (int) date('Y', $timestamp); |
|
| 79 | + $this->month = (int) date('n', $timestamp); |
|
| 80 | + $this->daysInMonth = (int) date('t', strtotime($this->getStartDate())); |
|
| 81 | 81 | } |
| 82 | 82 | } |