$currentDayOfMonth = closest((new DateTimeImmutable())->format('d'), $mondays);
$currentSeason = getSeason($currentMonth);
$currentYear = (int)(new DateTimeImmutable())->format('Y');
-$currentWeekOfMonth = array_search($currentDayOfMonth, $mondays);
+$currentWeekOfMonth = closestIndex($currentDayOfMonth, $mondays);
$extractTasks = function($tasks, $path) {
return array_merge($tasks, file_exists($path) ? lines(trim(file_get_contents($path))) : []);
file_exists($filePathForWeek) ? lines(trim(file_get_contents($filePathForWeek))) : []
);
-//EOY => (EOM & EOW) & !EOS
+//EOY => (EOM & EOW) & !EOSx
//EOS => (EOM & EOW) & !EOY
$taskLists = array_merge(
isEndOfYear($currentYear, $currentMonth, $currentDayOfMonth) ? [unlines(map(getStringAndCode)($unfinishedForYear))] : [],