Applied PHP formatting rules

This commit is contained in:
Bernd Bestel
2020-08-31 20:40:31 +02:00
parent 33325d5560
commit d4c5da2173
58 changed files with 3667 additions and 3082 deletions

View File

@@ -18,10 +18,10 @@ class TasksService extends BaseService
}
$taskRow = $this->getDatabase()->tasks()->where('id = :1', $taskId)->fetch();
$taskRow->update(array(
$taskRow->update([
'done' => 1,
'done_timestamp' => $doneTime
));
]);
return true;
}
@@ -34,10 +34,10 @@ class TasksService extends BaseService
}
$taskRow = $this->getDatabase()->tasks()->where('id = :1', $taskId)->fetch();
$taskRow->update(array(
$taskRow->update([
'done' => 0,
'done_timestamp' => null
));
]);
return true;
}
@@ -47,4 +47,5 @@ class TasksService extends BaseService
$taskRow = $this->getDatabase()->tasks()->where('id = :1', $taskId)->fetch();
return $taskRow !== null;
}
}