| @@ -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 | |
| @@ -52,7 +52,7 @@ discard block | ||
| 52 | 52 | /** | 
| 53 | 53 |     * {@inheritdoc} | 
| 54 | 54 | */ | 
| 55 | -  public function applyConstraint(CalendarResponse &$calendar_response) { | |
| 55 | +  public function applyConstraint(CalendarResponse & $calendar_response) { | |
| 56 | 56 | parent::applyConstraint($calendar_response); | 
| 57 | 57 | |
| 58 | 58 |      if ($this->start_date === NULL) { | 
| @@ -62,13 +62,13 @@ discard block | ||
| 62 | 62 |        $this->end_date = new \DateTime('2999-12-31'); | 
| 63 | 63 | } | 
| 64 | 64 | |
| 65 | - if ( (($calendar_response->getStartDate()->getTimestamp() >= $this->start_date->getTimestamp() && | |
| 65 | + if ((($calendar_response->getStartDate()->getTimestamp() >= $this->start_date->getTimestamp() && | |
| 66 | 66 | $calendar_response->getStartDate()->getTimestamp() <= $this->end_date->getTimestamp()) || | 
| 67 | 67 | ($calendar_response->getEndDate()->getTimestamp() >= $this->start_date->getTimestamp() && | 
| 68 | 68 | $calendar_response->getEndDate()->getTimestamp() <= $this->end_date->getTimestamp()) || | 
| 69 | 69 | ($calendar_response->getStartDate()->getTimestamp() <= $this->start_date->getTimestamp() && | 
| 70 | 70 | $calendar_response->getEndDate()->getTimestamp() >= $this->end_date->getTimestamp())) && | 
| 71 | -         ($this->checkin_day === NULL || $this->checkin_day == $calendar_response->getStartDate()->format('N')) ) { | |
| 71 | +         ($this->checkin_day === NULL || $this->checkin_day == $calendar_response->getStartDate()->format('N'))) { | |
| 72 | 72 | |
| 73 | 73 | $units = $this->getUnits(); | 
| 74 | 74 | |