Code formatting (#1026)

This commit is contained in:
Cønstantine Kovalensky 2023-11-03 16:12:23 +04:00 committed by GitHub
commit 98bfecc0bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ if (strlen($info_hash) == 32) {
// Handle multiple hashes
preg_match_all('/info_hash=([^&]*)/i', $_SERVER["QUERY_STRING"], $info_hash_array);
preg_match_all('/info_hash=([^&]*)/i', $_SERVER['QUERY_STRING'], $info_hash_array);
$torrents = [];
$info_hashes = [];
@ -78,7 +78,7 @@ preg_match_all('/info_hash=([^&]*)/i', $_SERVER["QUERY_STRING"], $info_hash_arra
$rowset = DB()->fetch_rowset($sql);
if (count($rowset) > 0) {
if (!empty($rowset)) {
foreach ($rowset as $scrapes) {
$torrents['files'][$scrapes['info_hash']] = [
'complete' => (int)$scrapes['seeders'],