Fixing style errors.

This commit is contained in:
stickler-ci 2022-08-12 15:25:15 +00:00
parent 0066dfd87c
commit f61000f0c7

View File

@ -182,7 +182,7 @@ function dol_time_plus_duree($time, $duration_value, $duration_unit)
*/ */
function convertTime2Seconds($iHours = 0, $iMinutes = 0, $iSeconds = 0) function convertTime2Seconds($iHours = 0, $iMinutes = 0, $iSeconds = 0)
{ {
$iResult = ((int)$iHours * 3600) + ((int)$iMinutes * 60) + (int)$iSeconds; $iResult = ((int) $iHours * 3600) + ((int) $iMinutes * 60) + (int) $iSeconds;
return $iResult; return $iResult;
} }
@ -862,7 +862,7 @@ function num_public_holiday($timestampStart, $timestampEnd, $country_code = '',
$date_1sunsept = strtotime('next thursday', strtotime('next sunday', mktime(0, 0, 0, 9, 1, $annee))); $date_1sunsept = strtotime('next thursday', strtotime('next sunday', mktime(0, 0, 0, 9, 1, $annee)));
$jour_1sunsept = date("d", $date_1sunsept); $jour_1sunsept = date("d", $date_1sunsept);
$mois_1sunsept = date("m", $date_1sunsept); $mois_1sunsept = date("m", $date_1sunsept);
if($jour_1sunsept == $jour && $mois_1sunsept == $mois) $ferie=true; if ($jour_1sunsept == $jour && $mois_1sunsept == $mois) $ferie=true;
// Geneva fast in Switzerland // Geneva fast in Switzerland
} }
} }