Update includes/functions.php

This commit is contained in:
2026-06-15 12:12:11 +02:00
parent 4bb561d7ca
commit b9212a05e5
-13
View File
@@ -69,16 +69,3 @@ function listPath(
. '.json';
}
function calculateNextInterval(array $word, bool $correct): int
{
$correctCount = $word['correct'] ?? 0;
if (!$correct) {
return 1;
}
// gecontroleerde groei (SM-lite)
$interval = 1 + ($correctCount * 2);
return min(30, $interval);
}