mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Apply fixes from StyleCI (#1033)
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
parent
17640a52c6
commit
82b0490bb1
1 changed files with 1 additions and 2 deletions
|
@ -389,8 +389,7 @@ class Torrent
|
||||||
|
|
||||||
if (isset($info['length'])) {
|
if (isset($info['length'])) {
|
||||||
$totallen = (float)$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) {
|
foreach ($info['files'] as $fn => $f) {
|
||||||
// Exclude padding files
|
// Exclude padding files
|
||||||
if (($f['attr'] ?? null) !== 'p') {
|
if (($f['attr'] ?? null) !== 'p') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue