Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
HDVinnie
2021-05-16 02:41:53 +00:00
committed by StyleCI Bot
parent 3407075214
commit 321847e067
108 changed files with 525 additions and 543 deletions
+18 -18
View File
@@ -47,7 +47,7 @@ class StatsController extends Controller
*
* @throws \Exception
*/
public function index(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function index(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Total Members Count (All Groups)
$allUser = \cache()->remember('all_user', $this->carbon, fn () => User::withTrashed()->count());
@@ -153,7 +153,7 @@ class StatsController extends Controller
*
* @throws \Exception
*/
public function uploaded(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function uploaded(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
$bannedGroup = \cache()->rememberForever('banned_group', fn () => Group::where('slug', '=', 'banned')->pluck('id'));
$validatingGroup = \cache()->rememberForever('validating_group', fn () => Group::where('slug', '=', 'validating')->pluck('id'));
@@ -171,7 +171,7 @@ class StatsController extends Controller
*
* @throws \Exception
*/
public function downloaded(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function downloaded(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
$bannedGroup = \cache()->rememberForever('banned_group', fn () => Group::where('slug', '=', 'banned')->pluck('id'));
$validatingGroup = \cache()->rememberForever('validating_group', fn () => Group::where('slug', '=', 'validating')->pluck('id'));
@@ -187,7 +187,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Users.
*/
public function seeders(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function seeders(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Seeders
$seeders = Peer::with('user')->select(DB::raw('user_id, count(*) as value'))->where('seeder', '=', 1)->groupBy('user_id')->latest('value')->take(100)->get();
@@ -198,7 +198,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Users.
*/
public function leechers(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function leechers(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Leechers
$leechers = Peer::with('user')->select(DB::raw('user_id, count(*) as value'))->where('seeder', '=', 0)->groupBy('user_id')->latest('value')->take(100)->get();
@@ -209,7 +209,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Users.
*/
public function uploaders(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function uploaders(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Uploaders
$uploaders = Torrent::with('user')->select(DB::raw('user_id, count(*) as value'))->groupBy('user_id')->latest('value')->take(100)->get();
@@ -222,7 +222,7 @@ class StatsController extends Controller
*
* @throws \Exception
*/
public function bankers(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function bankers(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
$bannedGroup = \cache()->rememberForever('banned_group', fn () => Group::where('slug', '=', 'banned')->pluck('id'));
$validatingGroup = \cache()->rememberForever('validating_group', fn () => Group::where('slug', '=', 'validating')->pluck('id'));
@@ -238,7 +238,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Users.
*/
public function seedtime(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function seedtime(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Total Seedtime
$seedtime = User::with('history')->select(DB::raw('user_id, count(*) as value'))->groupBy('user_id')->latest('value')->take(100)->sum('seedtime');
@@ -249,7 +249,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Users.
*/
public function seedsize(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function seedsize(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Total Seedsize Users
$seedsize = User::with(['peers', 'torrents'])->select(DB::raw('user_id, count(*) as value'))->groupBy('user_id')->latest('value')->take(100)->sum('size');
@@ -260,7 +260,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Torrents.
*/
public function seeded(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function seeded(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Seeded
$seeded = Torrent::latest('seeders')->take(100)->get();
@@ -271,7 +271,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Torrents.
*/
public function leeched(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function leeched(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Leeched
$leeched = Torrent::latest('leechers')->take(100)->get();
@@ -282,7 +282,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Torrents.
*/
public function completed(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function completed(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Completed
$completed = Torrent::latest('times_completed')->take(100)->get();
@@ -293,7 +293,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Torrents.
*/
public function dying(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function dying(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Dying
$dying = Torrent::where('seeders', '=', 1)->where('times_completed', '>=', '1')->latest('leechers')->take(100)->get();
@@ -304,7 +304,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Torrents.
*/
public function dead(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function dead(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Dead
$dead = Torrent::where('seeders', '=', 0)->latest('leechers')->take(100)->get();
@@ -315,7 +315,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Torrent Requests.
*/
public function bountied(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function bountied(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Top Bountied
$bountied = TorrentRequest::latest('bounty')->take(100)->get();
@@ -326,7 +326,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Groups.
*/
public function groups(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function groups(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Groups User Counts
$groups = Group::oldest('position')->get();
@@ -339,7 +339,7 @@ class StatsController extends Controller
*
* @param \App\Models\Group $id
*/
public function group($id): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function group($id): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch Users In Group
$group = Group::findOrFail($id);
@@ -351,7 +351,7 @@ class StatsController extends Controller
/**
* Show Extra-Stats Languages.
*/
public function languages(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function languages(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
{
// Fetch All Languages
$languages = Language::allowed();