@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | '2015-04-30 00:00:00', // Starting time |
49 | 49 | '2015-04-03 00:00:00', // Expected time |
50 | 50 | [ |
51 | - '2015-04-01', // Holidays |
|
51 | + '2015-04-01', // Holidays |
|
52 | 52 | '2015-04-02' |
53 | 53 | ] |
54 | 54 | ), |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | '2015-11-30 00:00:00', // Starting time |
58 | 58 | '2015-11-04 00:00:00', // Expected time |
59 | 59 | [ |
60 | - '2015-11-02', // Holidays |
|
60 | + '2015-11-02', // Holidays |
|
61 | 61 | '2015-11-03' |
62 | 62 | ] |
63 | 63 | ) |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | '2015-03-01 00:00:00', // Starting time |
40 | 40 | '2015-03-04 00:00:00', // Expected time |
41 | 41 | [ |
42 | - '2015-03-02', // Holidays |
|
42 | + '2015-03-02', // Holidays |
|
43 | 43 | '2015-03-03' |
44 | 44 | ] |
45 | 45 | ), |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | '2015-10-31 00:00:00', // Starting time |
49 | 49 | '2015-11-02 00:00:00', // Expected time |
50 | 50 | [ |
51 | - '2015-10-01', // Holidays |
|
51 | + '2015-10-01', // Holidays |
|
52 | 52 | '2015-10-02' |
53 | 53 | ] |
54 | 54 | ) |
@@ -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 | } |