Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2022-05-15 22:38:51 +00:00
parent 5254c601a1
commit 68c37a96a3
6 changed files with 6 additions and 10 deletions
-2
View File
@@ -33,7 +33,6 @@ use App\Models\Warning;
use App\Rules\EmailBlacklist;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
@@ -1186,7 +1185,6 @@ class UserController extends Controller
])->render();
}
return false;
}
+1 -2
View File
@@ -15,7 +15,6 @@ namespace App\Http\Livewire;
use App\Models\Peer;
use App\Models\User;
use Livewire\Component;
use Livewire\WithPagination;
@@ -43,7 +42,7 @@ class UserActive extends Component
'seeding' => ['except' => 'any'],
'sortField' => ['except' => 'created_at'],
'sortDirection' => ['except' => 'desc'],
'showMorePrecision' => ['except' => false]
'showMorePrecision' => ['except' => false],
];
final public function mount($userId): void
+2 -3
View File
@@ -15,7 +15,6 @@ namespace App\Http\Livewire;
use App\Models\History;
use App\Models\User;
use Livewire\Component;
use Livewire\WithPagination;
@@ -64,7 +63,7 @@ class UserTorrents extends Component
'immune' => ['except' => 'any'],
'uploaded' => ['except' => 'any'],
'status' => ['except' => []],
'showMorePrecision' => ['except' => false]
'showMorePrecision' => ['except' => false],
];
final public function mount($userId): void
@@ -148,7 +147,7 @@ class UserTorrents extends Component
->when($this->immune === 'exclude', fn ($query) => $query->where('immune', '=', 0))
->when($this->uploaded === 'include', fn ($query) => $query->where('torrents.user_id', '=', $this->user->id))
->when($this->uploaded === 'exclude', fn ($query) => $query->where('torrents.user_id', '<>', $this->user->id))
->when(!empty($this->status), fn ($query) => $query->whereIntegerInRaw('status', $this->status))
->when(! empty($this->status), fn ($query) => $query->whereIntegerInRaw('status', $this->status))
->orderBy($this->sortField, $this->sortDirection)
->paginate($this->perPage);
}
+1 -1
View File
@@ -19,4 +19,4 @@
@import 'components/quick_search';
@import 'components/user-active';
@import 'components/user-torrents';
@import 'layout/top_nav';
@import 'layout/top_nav';
+1 -1
View File
@@ -74,4 +74,4 @@
.user-active__checkbox:indeterminate {
all: revert !important;
}
}
@@ -100,4 +100,4 @@
.user-torrents__checkbox:indeterminate {
all: revert !important;
}
}