@@ -111,7 +111,7 @@ |
||
111 | 111 | /** |
112 | 112 | * {@inheritdoc} |
113 | 113 | */ |
114 | - public function applyConstraint(CalendarResponse &$calendar_response) { |
|
114 | + public function applyConstraint(CalendarResponse & $calendar_response) { |
|
115 | 115 | $this->calendar_response = $calendar_response; |
116 | 116 | } |
117 | 117 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * {@inheritdoc} |
37 | 37 | */ |
38 | - public function applyConstraint(CalendarResponse &$calendar_response) { |
|
38 | + public function applyConstraint(CalendarResponse & $calendar_response) { |
|
39 | 39 | parent::applyConstraint($calendar_response); |
40 | 40 | |
41 | 41 | if ($this->start_date === NULL) { |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | $this->end_date = new \DateTime('2999-12-31'); |
46 | 46 | } |
47 | 47 | |
48 | - if ( (($calendar_response->getStartDate()->getTimestamp() >= $this->start_date->getTimestamp() && |
|
48 | + if ((($calendar_response->getStartDate()->getTimestamp() >= $this->start_date->getTimestamp() && |
|
49 | 49 | $calendar_response->getStartDate()->getTimestamp() <= $this->end_date->getTimestamp()) || |
50 | 50 | ($calendar_response->getStartDate()->getTimestamp() <= $this->start_date->getTimestamp() && |
51 | 51 | $calendar_response->getEndDate()->getTimestamp() >= $this->end_date->getTimestamp())) && |
52 | - $this->checkin_day != $calendar_response->getStartDate()->format('N') ) { |
|
52 | + $this->checkin_day != $calendar_response->getStartDate()->format('N')) { |
|
53 | 53 | |
54 | 54 | $units = $this->getUnits(); |
55 | 55 |