Code Duplication    Length = 3-3 lines in 2 locations

src/AxillaryClasses/Calender.php 2 locations

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