$message = getTelegram()->getWebHookUpdates()->get('message') ? getTelegram()->getWebHookUpdates()->get('message')->get('text') : '';
if ($between = between(reveal($message ?? ''), '[taskid]')) {
- $monday = turnBackTime(new DateTimeImmutable());
+ $monday = turnBackTime(new DateTimeImmutable);
$completedTasksFile = getFilePathForWeek($monday->year, $monday->month, $monday->weekNum);
$completedTasks = file_exists($completedTasksFile) ? lines(trim(file_get_contents($completedTasksFile))) : [];
$tasksForTheWeek = getTasksForTheWeek(
protected $description = 'List tasks for this week';
public function handle($arguments) {
- $monday = turnBackTime(new DateTimeImmutable());
+ $monday = turnBackTime(new DateTimeImmutable);
$tasksForTheWeek = getTasksForTheWeek(
$monday->year,
$monday->month,