3 require_once('common.php');
5 $dt = new DateTimeImmutable();
8 (int)(new DateTimeImmutable('first monday of this month'))->format('d'),
9 (int)(new DateTimeImmutable('second monday of this month'))->format('d'),
10 (int)(new DateTimeImmutable('third monday of this month'))->format('d'),
11 (int)(new DateTimeImmutable('fourth monday of this month'))->format('d'),
20 $completedTasksFile = "$directory" . "/completed.txt";
21 $completedTasks = file_exists($completedTasksFile) ?
lines(trim(file_get_contents($completedTasksFile))) : [];
23 $closestMonday = closest($dt->format('d'), $mondays);
25 $tasksForTheWeek = getTasksForTheWeek(
26 array_search($closestMonday, $mondays),
28 require 'taskMatrix.php'
31 $unfinished = array_diff($tasksForTheWeek, $completedTasks);
34 array_diff(['treeflowers', 'someothershit'], ['treeflowers'])