Improved code style

This commit is contained in:
Michael 2025-01-06 22:15:41 +00:00
parent 8e76d13a96
commit e090fd4495
6 changed files with 29 additions and 30 deletions

View file

@ -36,7 +36,7 @@ class Markers extends BaseApi
}
$condition = ['application-id' => $application['id'], 'uid' => $uid, 'timeline' => $timeline];
$marker = DBA::selectFirst('application-marker', [], $condition);
$marker = DBA::selectFirst('application-marker', [], $condition);
if (!empty($marker['version'])) {
$version = $marker['version'] + 1;
} else {
@ -62,7 +62,7 @@ class Markers extends BaseApi
private function fetchTimelines(int $application_id, int $uid): \stdClass
{
$values = new \stdClass();
$values = new \stdClass();
$markers = DBA::select('application-marker', [], ['application-id' => $application_id, 'uid' => $uid]);
while ($marker = DBA::fetch($markers)) {
$values->{$marker['timeline']} = [