Apply fixes from StyleCI (#1033)

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Yury Pikhtarev 2023-11-04 17:59:22 +04:00 committed by GitHub
commit 82b0490bb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,8 +389,7 @@ class Torrent
if (isset($info['length'])) {
$totallen = (float)$info['length'];
}
elseif (isset($bt_v1, $info['files']) && \is_array($info['files'])) {
} elseif (isset($bt_v1, $info['files']) && \is_array($info['files'])) {
foreach ($info['files'] as $fn => $f) {
// Exclude padding files
if (($f['attr'] ?? null) !== 'p') {