Code Duplication    Length = 4-4 lines in 2 locations

src/Stefanius/SpecialDates/SDK/AbstractSpecialDate.php 2 locations

@@ 70-73 (lines=4) @@
67
68
        $this->generate();
69
70
        if ($this->startDate->format('Y') . '-' . $this->startDate->format('m') . '-' . $this->startDate->format('d') === '0001-01-01') {
71
            $this->valid = false;
72
            $this->totalLength = 0;
73
        }
74
75
        if ($this->endDate->format('Y') . '-' . $this->endDate->format('m') . '-' . $this->endDate->format('d') === '0001-01-01') {
76
            $this->valid = false;
@@ 75-78 (lines=4) @@
72
            $this->totalLength = 0;
73
        }
74
75
        if ($this->endDate->format('Y') . '-' . $this->endDate->format('m') . '-' . $this->endDate->format('d') === '0001-01-01') {
76
            $this->valid = false;
77
            $this->totalLength = 0;
78
        }
79
80
        $this->normalizeDescription();
81
    }