From afd4b7a6cb4dde3da4b2beeee06fba0ae5fc678c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Sat, 4 Nov 2023 10:29:38 +0400 Subject: [PATCH] Code formatting (#1030) --- src/Legacy/Torrent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 97651148a..befffbd1b 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -390,7 +390,7 @@ class Torrent if (isset($info['length'])) { $totallen = (float)$info['length']; - } elseif (isset($bt_v1) && isset($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') {