mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Move roundUpToNearestMultiple function used in multiple files to functions.php
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
<?php include("inc_all_reports.php"); ?>
|
||||
<?php
|
||||
|
||||
function roundUpToNearestMultiple($n, $increment = 1000)
|
||||
{
|
||||
return (int) ($increment * ceil($n / $increment));
|
||||
}
|
||||
|
||||
if (isset($_GET['year'])) {
|
||||
$year = intval($_GET['year']);
|
||||
}else{
|
||||
} else {
|
||||
$year = date('Y');
|
||||
}
|
||||
|
||||
if (isset($_GET['year'])) {
|
||||
$year = intval($_GET['year']);
|
||||
}else{
|
||||
} else {
|
||||
$year = date('Y');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user