Code Duplication    Length = 3-3 lines in 2 locations

src/AxillaryClasses/Calender.php 2 locations

@@ 39-41 (lines=3) @@
36
     */
37
    private function validateInput($year = null, $month = null, $day = null)
38
    {
39
        if (null === $year && null === $month && null === $day) {
40
            throw new \InvalidArgumentException('A Caldender class must have at least a day, month, or year');
41
        }
42
        if (null !== $year && null === $month && null !== $day) {
43
            throw new \InvalidArgumentException('a year day value is not valid');
44
        }
@@ 42-44 (lines=3) @@
39
        if (null === $year && null === $month && null === $day) {
40
            throw new \InvalidArgumentException('A Caldender class must have at least a day, month, or year');
41
        }
42
        if (null !== $year && null === $month && null !== $day) {
43
            throw new \InvalidArgumentException('a year day value is not valid');
44
        }
45
    }
46
47
    /**