Random cleanup
[SonOfLokstallBot.git] / src / purjolok.php
index dcc2eac..94cc011 100644 (file)
@@ -16,7 +16,7 @@ if(getTelegram()->getWebHookUpdates()->get('message') && !canChatWith(getTelegra
 $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(
@@ -225,7 +225,7 @@ getTelegram()->addCommand(
         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,