Code Duplication    Length = 3-3 lines in 2 locations

src/AxillaryClasses/Calender.php 2 locations

@@ 44-46 (lines=3) @@
41
42
    private function validateInputNotAllNull($year, $month, $day)
43
    {
44
        if (null === $year && null === $month && null === $day) {
45
            throw new \InvalidArgumentException('A Caldender class must have at least a day, month, or year');
46
        }
47
    }
48
49
    private function validateInputNotYearAndDay($year, $month, $day)
@@ 51-53 (lines=3) @@
48
49
    private function validateInputNotYearAndDay($year, $month, $day)
50
    {
51
        if (null !== $year && null === $month && null !== $day) {
52
            throw new \InvalidArgumentException('a year day value is not valid');
53
        }
54
    }
55
56
    /**