Code Duplication    Length = 8-8 lines in 2 locations

class/Utility.php 1 location

@@ 408-415 (lines=8) @@
405
     *
406
     * @return int
407
     */
408
    public static function ext_DateAdd($givendate, $day = 0, $mth = 0, $yr = 0)
409
    {
410
        //$cd = strtotime($givendate);
411
        $cd      = $givendate;
412
        $newdate = date('Y-m-d h:i:s', mktime(date('h', $cd), date('i', $cd), date('s', $cd), date('m', $cd) + $mth, date('d', $cd) + $day, date('Y', $cd) + $yr));
413
414
        return strtotime($newdate);
415
    }
416
417
    /**
418
     * @param $date

include/functions0.php 1 location

@@ 395-402 (lines=8) @@
392
 *
393
 * @return int
394
 */
395
function ext_DateAdd($givendate, $day = 0, $mth = 0, $yr = 0)
396
{
397
    //$cd = strtotime($givendate);
398
    $cd      = $givendate;
399
    $newdate = date('Y-m-d h:i:s', mktime(date('h', $cd), date('i', $cd), date('s', $cd), date('m', $cd) + $mth, date('d', $cd) + $day, date('Y', $cd) + $yr));
400
401
    return strtotime($newdate);
402
}
403
404
/**
405
 * @param $date