Fixing style errors.

This commit is contained in:
stickler-ci 2021-09-22 16:07:36 +00:00
parent e74043d48e
commit e5cff0ede1

View File

@ -168,7 +168,6 @@ function dol_time_plus_duree($time, $duration_value, $duration_unit)
} }
//Change the behavior of PHP over data-interval when the result of this function is Feb 29 (non-leap years), 30 or Feb 31 (php returns March 1, 2 or 3 respectively) //Change the behavior of PHP over data-interval when the result of this function is Feb 29 (non-leap years), 30 or Feb 31 (php returns March 1, 2 or 3 respectively)
if ($conf->global->MAIN_DATE_CHANGE_PHP_DATEINTERVAL_RESULT_FEBRUARY && $duration_unit == 'm') { if ($conf->global->MAIN_DATE_CHANGE_PHP_DATEINTERVAL_RESULT_FEBRUARY && $duration_unit == 'm') {
$timeyear = dol_print_date($time, '%Y'); $timeyear = dol_print_date($time, '%Y');
$timemonth = dol_print_date($time, '%m'); $timemonth = dol_print_date($time, '%m');
$timetotalmonths = (($timeyear * 12) + $timemonth); $timetotalmonths = (($timeyear * 12) + $timemonth);
@ -182,7 +181,6 @@ function dol_time_plus_duree($time, $duration_value, $duration_unit)
$newtimetotalmonths = (($newtimeyear * 12) + $newtimemonth); $newtimetotalmonths = (($newtimeyear * 12) + $newtimemonth);
if ($monthsexpected < $newtimetotalmonths) { if ($monthsexpected < $newtimetotalmonths) {
$newtimehours = dol_print_date($newtime, '%m'); $newtimehours = dol_print_date($newtime, '%m');
$newtimemins = dol_print_date($newtime, '%m'); $newtimemins = dol_print_date($newtime, '%m');
$newtimesecs = dol_print_date($newtime, '%m'); $newtimesecs = dol_print_date($newtime, '%m');