Apply fixes from StyleCI (#1029)

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

View file

@ -348,7 +348,7 @@ class Torrent
} }
// Check if torrent contains info_hash v2 or v1 // Check if torrent contains info_hash v2 or v1
if (($info['meta version'] ?? null) == 2 ) { if (($info['meta version'] ?? null) == 2) {
if (is_array($info['file tree'] ?? null)) { if (is_array($info['file tree'] ?? null)) {
$bt_v2 = true; $bt_v2 = true;
} }