@@ -10,8 +10,8 @@ |
||
| 10 | 10 | { |
| 11 | 11 | $this->description = 'Tweede Kerstdag'; |
| 12 | 12 | |
| 13 | - $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-26'); |
|
| 14 | - $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-26'); |
|
| 13 | + $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-26'); |
|
| 14 | + $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-26'); |
|
| 15 | 15 | $this->totalLength = 1; |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | protected function generate() |
| 10 | 10 | { |
| 11 | 11 | $this->description = 'Kerstavond'; |
| 12 | - $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-24'); |
|
| 13 | - $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-24'); |
|
| 12 | + $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-24'); |
|
| 13 | + $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-24'); |
|
| 14 | 14 | $this->totalLength = 1; |
| 15 | 15 | } |
| 16 | 16 | } |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | { |
| 11 | 11 | $this->description = 'Eerste Kerstdag'; |
| 12 | 12 | |
| 13 | - $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-25'); |
|
| 14 | - $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-25'); |
|
| 13 | + $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-25'); |
|
| 14 | + $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-25'); |
|
| 15 | 15 | $this->totalLength = 1; |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | { |
| 11 | 11 | $this->description = 'Nieuwjaarsdag'; |
| 12 | 12 | |
| 13 | - $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-1-1'); |
|
| 14 | - $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-1-1'); |
|
| 13 | + $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-1-1'); |
|
| 14 | + $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-1-1'); |
|
| 15 | 15 | $this->totalLength = 1; |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | { |
| 11 | 11 | $this->description = 'Oudjaarsdag'; |
| 12 | 12 | |
| 13 | - $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-31'); |
|
| 14 | - $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-31'); |
|
| 13 | + $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-31'); |
|
| 14 | + $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-12-31'); |
|
| 15 | 15 | $this->totalLength = 1; |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | |
| 13 | 13 | if ($this->year >= 2002) { |
| 14 | 14 | if ($this->year % 4 === 0) { |
| 15 | - $this->startDate = new \DateTime($this->year . '-09-12'); |
|
| 16 | - $this->endDate = new \DateTime($this->year . '-09-12'); |
|
| 15 | + $this->startDate = new \DateTime($this->year.'-09-12'); |
|
| 16 | + $this->endDate = new \DateTime($this->year.'-09-12'); |
|
| 17 | 17 | } else { |
| 18 | - $this->startDate = new \DateTime($this->year . '-09-13'); |
|
| 19 | - $this->endDate = new \DateTime($this->year . '-09-13'); |
|
| 18 | + $this->startDate = new \DateTime($this->year.'-09-13'); |
|
| 19 | + $this->endDate = new \DateTime($this->year.'-09-13'); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | $this->totalLength = 1; |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | $this->description = 'Bevrijdingsdag'; |
| 12 | 12 | |
| 13 | 13 | if ($this->year > 1945) { |
| 14 | - $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-5-5'); |
|
| 15 | - $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year . '-5-5'); |
|
| 14 | + $this->startDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-5-5'); |
|
| 15 | + $this->endDate = \DateTime::createFromFormat('Y-m-d', $this->year.'-5-5'); |
|
| 16 | 16 | $this->totalLength = 1; |
| 17 | 17 | $this->valid = true; |
| 18 | 18 | } else { |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * @var SpecialDateInterface $item |
| 93 | 93 | */ |
| 94 | 94 | foreach ($array as $item) { |
| 95 | - $key = $item->getStartDate()->format('Y') . '-' . $item->getStartDate()->format('m') . '-' . $item->getStartDate()->format('d') . '.' . $i; |
|
| 95 | + $key = $item->getStartDate()->format('Y').'-'.$item->getStartDate()->format('m').'-'.$item->getStartDate()->format('d').'.'.$i; |
|
| 96 | 96 | $i++; |
| 97 | 97 | $return[$key] = $item; |
| 98 | 98 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function findSpecialDateByDateTime(\DateTime $date) |
| 46 | 46 | { |
| 47 | - $formattedDate = $date->format('Y') . '-' . $date->format('m') . $date->format('d'); |
|
| 47 | + $formattedDate = $date->format('Y').'-'.$date->format('m').$date->format('d'); |
|
| 48 | 48 | $items = $this->getAllDates($date->format('Y')); |
| 49 | 49 | $found = []; |
| 50 | 50 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @var $item SpecialDateInterface |
| 53 | 53 | */ |
| 54 | 54 | foreach ($items as $key => $item) { |
| 55 | - $formattedStartDate = $item->getStartDate()->format('Y') . '-' . $item->getStartDate()->format('m') . $item->getStartDate()->format('d'); |
|
| 55 | + $formattedStartDate = $item->getStartDate()->format('Y').'-'.$item->getStartDate()->format('m').$item->getStartDate()->format('d'); |
|
| 56 | 56 | |
| 57 | 57 | if ($formattedDate === $formattedStartDate) { |
| 58 | 58 | $found[$key] = $item; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @var $item SpecialDateInterface |
| 78 | 78 | */ |
| 79 | 79 | foreach ($items as $key => $item) { |
| 80 | - if ((int)$month === (int)$item->getStartDate()->format('m')) { |
|
| 80 | + if ((int) $month === (int) $item->getStartDate()->format('m')) { |
|
| 81 | 81 | $found[$key] = $item; |
| 82 | 82 | } |
| 83 | 83 | } |