Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2022-08-08 21:53:10 +00:00
parent 451f78584d
commit f74d122b68
+2 -2
View File
@@ -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();