You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Fix more errors php stan 🆙
This commit is contained in:
@@ -13,7 +13,7 @@ class LeaderboardController extends Controller
|
||||
{
|
||||
protected array $staffIds = [];
|
||||
|
||||
public function __construct(private readonly StaffService $staffService)
|
||||
public function __construct(private readonly StaffService $staffService): void
|
||||
{
|
||||
$this->staffIds = $this->staffService->fetchEmployeeIds();
|
||||
}
|
||||
@@ -44,7 +44,7 @@ class LeaderboardController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
private function retrieveSettings($column)
|
||||
private function retrieveSettings(string $column): \Illuminate\Database\Eloquent\Collection
|
||||
{
|
||||
return UserSetting::select('user_id', $column)
|
||||
->whereNotIn('user_id', $this->staffIds)
|
||||
|
||||
@@ -8,7 +8,7 @@ use Illuminate\View\View;
|
||||
|
||||
class PhotosController extends Controller
|
||||
{
|
||||
public function __construct(private readonly CameraService $cameraService) {}
|
||||
public function __construct(private readonly CameraService $cameraService): void {}
|
||||
|
||||
public function __invoke(): View
|
||||
{
|
||||
|
||||
@@ -6,20 +6,21 @@ use App\Http\Controllers\Controller;
|
||||
use App\Http\Requests\StaffApplicationFormRequest;
|
||||
use App\Models\Community\Staff\WebsiteOpenPosition;
|
||||
use App\Services\Community\StaffApplicationService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
|
||||
class StaffApplicationsController extends Controller
|
||||
{
|
||||
public function __construct(private readonly StaffApplicationService $staffApplicationService) {}
|
||||
public function __construct(private readonly StaffApplicationService $staffApplicationService): void {}
|
||||
|
||||
public function index()
|
||||
public function index(): View
|
||||
{
|
||||
return view('community.staff-applications', [
|
||||
'positions' => $this->staffApplicationService->fetchOpenPositions(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function show(WebsiteOpenPosition $position)
|
||||
public function show(WebsiteOpenPosition $position): View
|
||||
{
|
||||
return view('community.staff-applications-apply', [
|
||||
'position' => $position->load('permission'),
|
||||
|
||||
@@ -8,7 +8,7 @@ use Illuminate\View\View;
|
||||
|
||||
class StaffController extends Controller
|
||||
{
|
||||
public function __construct(private readonly StaffService $staffService) {}
|
||||
public function __construct(private readonly StaffService $staffService): void {}
|
||||
|
||||
public function __invoke(): View
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ use Illuminate\View\View;
|
||||
|
||||
class WebsiteTeamsController extends Controller
|
||||
{
|
||||
public function __construct(private readonly TeamService $teamService) {}
|
||||
public function __construct(private readonly TeamService $teamService): void {}
|
||||
|
||||
public function __invoke(): View
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ use Illuminate\View\View;
|
||||
|
||||
class WebsiteRareValuesController extends Controller
|
||||
{
|
||||
public function __construct(private readonly RareValueCategoriesService $valueCategoriesService) {}
|
||||
public function __construct(private readonly RareValueCategoriesService $valueCategoriesService): void {}
|
||||
|
||||
public function index(): View
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user