Move roundUpToNearestMultiple function used in multiple files to functions.php

This commit is contained in:
Marcus Hill
2023-01-26 12:30:25 +00:00
parent 91d0efbde7
commit 39a3ea89c4
4 changed files with 31 additions and 45 deletions

View File

@@ -535,4 +535,7 @@ function sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_
}
}
function roundUpToNearestMultiple($n, $increment = 1000)
{
return (int) ($increment * ceil($n / $increment));
}