mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 18:20:31 -05:00
Apply fixes from StyleCI
This commit is contained in:
@@ -713,12 +713,12 @@ class AnnounceController extends Controller
|
||||
$torrent->seeders = match ($event) {
|
||||
'started' => $torrent->peers->where('left', '=', 0)->count() + 1,
|
||||
'stopped' => $torrent->peers->where('left', '=', 0)->count() - 1,
|
||||
default => $torrent->peers->where('left', '=', 0)->count(),
|
||||
default => $torrent->peers->where('left', '=', 0)->count(),
|
||||
};
|
||||
$torrent->leechers = match ($event) {
|
||||
'started' => $torrent->peers->where('left', '>', 0)->count() + 1,
|
||||
'stopped' => $torrent->peers->where('left', '>', 0)->count() - 1,
|
||||
default => $torrent->peers->where('left', '>', 0)->count(),
|
||||
default => $torrent->peers->where('left', '>', 0)->count(),
|
||||
};
|
||||
|
||||
$torrent->save();
|
||||
|
||||
Reference in New Issue
Block a user