Update includes/functions.php
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user