mirror of
https://github.com/openvk/openvk
synced 2025-05-09 18:46:39 +03:00
style: linting fixes
This commit is contained in:
parent
b2e4791d2d
commit
2f4e3c4a78
2 changed files with 3 additions and 3 deletions
|
@ -434,7 +434,7 @@ class Audio extends Media
|
|||
$obj->manifest = $this->getURL();
|
||||
$obj->keys = $this->getKeys();
|
||||
}
|
||||
|
||||
|
||||
if ($obj->editable) {
|
||||
$obj->listens = $this->getListens();
|
||||
}
|
||||
|
|
|
@ -537,14 +537,14 @@ final class AudioPresenter extends OpenVKPresenter
|
|||
DatabaseConnection::i()->getContext()->table("playlist_relations")->where([
|
||||
"collection" => $playlist->getId(),
|
||||
])->delete();
|
||||
|
||||
|
||||
if (!is_null($new_audios)) {
|
||||
foreach ($new_audios as $new_audio) {
|
||||
$audio = (new Audios())->get((int) $new_audio);
|
||||
if (!$audio || $audio->isDeleted()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$playlist->add($audio);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue