@@ -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 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | if ($this->year >= 2009) { |
14 | 14 | $this->setupDateTimeObjects($this->generateDateTime($this->year, 6, 19)); |
15 | 15 | } else if ($this->year >= 1909) { |
16 | - $timestamp = strtotime('third sunday', mktime(0, 0, 0, 6, 0, $this->year)); |
|
16 | + $timestamp = strtotime('third sunday', mktime(0, 0, 0, 6, 0, $this->year)); |
|
17 | 17 | $date = new \DateTime(); |
18 | 18 | $date->setTimestamp($timestamp); |
19 | 19 |
@@ -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 { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | protected function calculateCNumber() |
53 | 53 | { |
54 | - return (int)floor($this->year / 100) + 1; |
|
54 | + return (int) floor($this->year / 100) + 1; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -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 | } |
@@ -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 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | $this->description = 'Moederdag'; |
12 | 12 | |
13 | 13 | if ($this->year >= 1908) { |
14 | - $timestamp = strtotime('second sunday', mktime(0, 0, 0, 5, 0, $this->year)); |
|
14 | + $timestamp = strtotime('second sunday', mktime(0, 0, 0, 5, 0, $this->year)); |
|
15 | 15 | $date = new \DateTime(); |
16 | 16 | $date->setTimestamp($timestamp); |
17 | 17 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | protected function calculateCNumber() |
53 | 53 | { |
54 | - return (int)floor($this->year / 100) + 1; |
|
54 | + return (int) floor($this->year / 100) + 1; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |