@@ -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 | ) |
@@ -20,7 +20,7 @@ |
||
20 | 20 | $date->setTime(0, 0, 0); |
21 | 21 | |
22 | 22 | // Current timestamp |
23 | - $timestamp = (int)$date->format('U'); |
|
23 | + $timestamp = (int) $date->format('U'); |
|
24 | 24 | |
25 | 25 | // Calculate distance to next isochronic timestamp |
26 | 26 | $isochronicOffset = $this->getIsochronicOffset($date); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $firstCalendarDayWithDayOfWeek = |
22 | 22 | $this->getFirstCalendarDayWithDayOfWeek($date, $this->dayOfWeek); |
23 | 23 | |
24 | - if ((int)$date->format('j') <= $firstCalendarDayWithDayOfWeek) { |
|
24 | + if ((int) $date->format('j') <= $firstCalendarDayWithDayOfWeek) { |
|
25 | 25 | $date->sub(new \DateInterval('P1M')); |
26 | 26 | } |
27 | 27 |