Code Duplication    Length = 2-2 lines in 2 locations

main/inc/lib/blog.lib.php 1 location

@@ 2610-2611 (lines=2) @@
2607
        //Handle leap year
2608
        $numberofdays = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
2609
2610
        if (($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) {
2611
            $numberofdays[2] = 29;
2612
        }
2613
2614
        //Get the first day of the month

main/inc/lib/agenda.lib.php 1 location

@@ 3683-3684 (lines=2) @@
3680
            30,
3681
            31
3682
        );
3683
        if (($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) {
3684
            $numberofdays[2] = 29;
3685
        }
3686
        //Get the first day of the month
3687
        $dayone = getdate(mktime(0, 0, 0, $month, 1, $year));