mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Improved code style
This commit is contained in:
parent
8e76d13a96
commit
e090fd4495
6 changed files with 29 additions and 30 deletions
|
@ -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']} = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue