Completed
Push — master ( 2dd332...d6426f )
by steef
02:53
created
src/Stefanius/SpecialDates/Dates/SecondChristmasDay.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/Dates/ChristmasEvening.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/Dates/FirstChristmasDay.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/Dates/NewYearsDay.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/Dates/LastDayOfYear.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/Dates/DevelopersDay.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/Dates/LiberationDay.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/DateParser/AbstractParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Stefanius/SpecialDates/DateParser/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.