重新格式化代码 pint

This commit is contained in:
iVampireSP.com 2023-02-22 17:11:37 +08:00
parent bd91661fd4
commit 77bafa4f90
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
146 changed files with 0 additions and 754 deletions

View File

@ -24,8 +24,6 @@ class All extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class Create extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class Delete extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class Reset extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -33,8 +33,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -33,8 +33,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class CleanOffline extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class Monitor extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class PublishEdge extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class Restart extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -27,8 +27,6 @@ class Sync extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -26,8 +26,6 @@ class Upload extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class Weight extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -28,8 +28,6 @@ class Work extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -38,8 +38,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -35,8 +35,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -24,8 +24,6 @@ class HostCost extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -34,8 +34,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -34,8 +34,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -33,8 +33,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -26,8 +26,6 @@ class Test extends Command
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -33,8 +33,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -34,8 +34,6 @@ public function __construct()
/** /**
* Execute the console command. * Execute the console command.
*
* @return int
*/ */
public function handle(): int public function handle(): int
{ {

View File

@ -21,9 +21,6 @@ class Kernel extends ConsoleKernel
{ {
/** /**
* Define the application's command schedule. * Define the application's command schedule.
*
* @param Schedule $schedule
* @return void
*/ */
protected function schedule(Schedule $schedule): void protected function schedule(Schedule $schedule): void
{ {
@ -68,8 +65,6 @@ protected function schedule(Schedule $schedule): void
/** /**
* Register the commands for the application. * Register the commands for the application.
*
* @return void
*/ */
protected function commands(): void protected function commands(): void
{ {

View File

@ -14,8 +14,6 @@ class Tasks
/** /**
* Get the channels the event should broadcast on. * Get the channels the event should broadcast on.
*
* @return Channel|PrivateChannel
*/ */
public function broadcastOn(): Channel|PrivateChannel public function broadcastOn(): Channel|PrivateChannel
{ {

View File

@ -68,8 +68,6 @@ public function register(): void
* Convert an authentication exception into an unauthenticated response. * Convert an authentication exception into an unauthenticated response.
* *
* @param Request $request * @param Request $request
* @param AuthenticationException $exception
* @return JsonResponse|RedirectResponse
*/ */
protected function unauthenticated($request, AuthenticationException $exception): JsonResponse|RedirectResponse protected function unauthenticated($request, AuthenticationException $exception): JsonResponse|RedirectResponse
{ {

View File

@ -17,8 +17,6 @@ trait AuthenticatesUsers
/** /**
* Show the application's login form. * Show the application's login form.
*
* @return View
*/ */
public function showLoginForm(): View public function showLoginForm(): View
{ {
@ -28,8 +26,6 @@ public function showLoginForm(): View
/** /**
* Handle a login request to the application. * Handle a login request to the application.
* *
* @param Request $request
* @return Response
* *
* @throws ValidationException * @throws ValidationException
*/ */
@ -66,8 +62,6 @@ public function login(Request $request): Response
/** /**
* Validate the user login request. * Validate the user login request.
* *
* @param Request $request
* @return void
* *
* @throws ValidationException * @throws ValidationException
*/ */
@ -81,8 +75,6 @@ protected function validateLogin(Request $request): void
/** /**
* Get the login username to be used by the controller. * Get the login username to be used by the controller.
*
* @return string
*/ */
public function username(): string public function username(): string
{ {
@ -91,9 +83,6 @@ public function username(): string
/** /**
* Attempt to log the user into the application. * Attempt to log the user into the application.
*
* @param Request $request
* @return bool
*/ */
protected function attemptLogin(Request $request): bool protected function attemptLogin(Request $request): bool
{ {
@ -104,8 +93,6 @@ protected function attemptLogin(Request $request): bool
/** /**
* Get the guard to be used during authentication. * Get the guard to be used during authentication.
*
* @return StatefulGuard
*/ */
protected function guard(): StatefulGuard protected function guard(): StatefulGuard
{ {
@ -114,9 +101,6 @@ protected function guard(): StatefulGuard
/** /**
* Get the needed authorization credentials from the request. * Get the needed authorization credentials from the request.
*
* @param Request $request
* @return array
*/ */
protected function credentials(Request $request): array protected function credentials(Request $request): array
{ {
@ -125,9 +109,6 @@ protected function credentials(Request $request): array
/** /**
* Send the response after the user was authenticated. * Send the response after the user was authenticated.
*
* @param Request $request
* @return JsonResponse|RedirectResponse
*/ */
protected function sendLoginResponse(Request $request): JsonResponse|RedirectResponse protected function sendLoginResponse(Request $request): JsonResponse|RedirectResponse
{ {
@ -148,7 +129,6 @@ protected function sendLoginResponse(Request $request): JsonResponse|RedirectRes
* Get the failed login response instance. * Get the failed login response instance.
* *
* *
* @return Response
* *
* @throws ValidationException * @throws ValidationException
*/ */
@ -161,9 +141,6 @@ protected function sendFailedLoginResponse(): Response
/** /**
* Log the user out of the application. * Log the user out of the application.
*
* @param Request $request
* @return RedirectResponse|JsonResponse
*/ */
public function logout(Request $request): JsonResponse|RedirectResponse public function logout(Request $request): JsonResponse|RedirectResponse
{ {
@ -184,10 +161,6 @@ public function logout(Request $request): JsonResponse|RedirectResponse
/** /**
* The user has been authenticated. * The user has been authenticated.
*
* @param Request $request
* @param mixed $user
* @return void
*/ */
protected function authenticated(Request $request, mixed $user): void protected function authenticated(Request $request, mixed $user): void
{ {
@ -196,9 +169,6 @@ protected function authenticated(Request $request, mixed $user): void
/** /**
* The user has logged out of the application. * The user has logged out of the application.
*
* @param Request $request
* @return void
*/ */
protected function loggedOut(Request $request): void protected function loggedOut(Request $request): void
{ {

View File

@ -13,8 +13,6 @@ trait ConfirmsPasswords
/** /**
* Display the password confirmation view. * Display the password confirmation view.
*
* @return View
*/ */
public function showConfirmForm(): View public function showConfirmForm(): View
{ {
@ -23,9 +21,6 @@ public function showConfirmForm(): View
/** /**
* Confirm the given user's password. * Confirm the given user's password.
*
* @param Request $request
* @return RedirectResponse|JsonResponse
*/ */
public function confirm(Request $request): JsonResponse|RedirectResponse public function confirm(Request $request): JsonResponse|RedirectResponse
{ {
@ -40,8 +35,6 @@ public function confirm(Request $request): JsonResponse|RedirectResponse
/** /**
* Get the password confirmation validation rules. * Get the password confirmation validation rules.
*
* @return array
*/ */
protected function rules(): array protected function rules(): array
{ {
@ -52,8 +45,6 @@ protected function rules(): array
/** /**
* Get the password confirmation validation error messages. * Get the password confirmation validation error messages.
*
* @return array
*/ */
protected function validationErrorMessages(): array protected function validationErrorMessages(): array
{ {
@ -62,9 +53,6 @@ protected function validationErrorMessages(): array
/** /**
* Reset the password confirmation timeout. * Reset the password confirmation timeout.
*
* @param Request $request
* @return void
*/ */
protected function resetPasswordConfirmationTimeout(Request $request): void protected function resetPasswordConfirmationTimeout(Request $request): void
{ {

View File

@ -6,8 +6,6 @@ trait RedirectsUsers
{ {
/** /**
* Get the post register / login redirect path. * Get the post register / login redirect path.
*
* @return string
*/ */
public function redirectPath(): string public function redirectPath(): string
{ {

View File

@ -16,8 +16,6 @@ trait RegistersUsers
/** /**
* Show the application registration form. * Show the application registration form.
*
* @return View
*/ */
public function showRegistrationForm(): View public function showRegistrationForm(): View
{ {
@ -26,9 +24,6 @@ public function showRegistrationForm(): View
/** /**
* Handle a registration request for the application. * Handle a registration request for the application.
*
* @param Request $request
* @return RedirectResponse|JsonResponse
*/ */
public function register(Request $request): JsonResponse|RedirectResponse public function register(Request $request): JsonResponse|RedirectResponse
{ {
@ -49,8 +44,6 @@ public function register(Request $request): JsonResponse|RedirectResponse
/** /**
* Get the guard to be used during registration. * Get the guard to be used during registration.
*
* @return StatefulGuard
*/ */
protected function guard(): StatefulGuard protected function guard(): StatefulGuard
{ {
@ -59,10 +52,6 @@ protected function guard(): StatefulGuard
/** /**
* The user has been registered. * The user has been registered.
*
* @param Request $request
* @param mixed $user
* @return void
*/ */
protected function registered(Request $request, mixed $user): void protected function registered(Request $request, mixed $user): void
{ {

View File

@ -27,9 +27,6 @@ trait ResetsPasswords
* Display the password reset view for the given token. * Display the password reset view for the given token.
* *
* If no token is present, display the link request form. * If no token is present, display the link request form.
*
* @param Request $request
* @return Factory|View
*/ */
public function showResetForm(Request $request): Factory|View public function showResetForm(Request $request): Factory|View
{ {
@ -42,9 +39,6 @@ public function showResetForm(Request $request): Factory|View
/** /**
* Reset the given user's password. * Reset the given user's password.
*
* @param Request $request
* @return RedirectResponse|JsonResponse
*/ */
public function reset(Request $request): JsonResponse|RedirectResponse public function reset(Request $request): JsonResponse|RedirectResponse
{ {
@ -74,8 +68,6 @@ public function reset(Request $request): JsonResponse|RedirectResponse
/** /**
* Get the password reset validation rules. * Get the password reset validation rules.
*
* @return array
*/ */
protected function rules(): array protected function rules(): array
{ {
@ -88,8 +80,6 @@ protected function rules(): array
/** /**
* Get the password reset validation error messages. * Get the password reset validation error messages.
*
* @return array
*/ */
protected function validationErrorMessages(): array protected function validationErrorMessages(): array
{ {
@ -98,8 +88,6 @@ protected function validationErrorMessages(): array
/** /**
* Get the broker to be used during password reset. * Get the broker to be used during password reset.
*
* @return PasswordBroker
*/ */
public function broker(): PasswordBroker public function broker(): PasswordBroker
{ {
@ -108,9 +96,6 @@ public function broker(): PasswordBroker
/** /**
* Get the password reset credentials from the request. * Get the password reset credentials from the request.
*
* @param Request $request
* @return array
*/ */
protected function credentials(Request $request): array protected function credentials(Request $request): array
{ {
@ -121,10 +106,6 @@ protected function credentials(Request $request): array
/** /**
* Reset the given user's password. * Reset the given user's password.
*
* @param CanResetPassword|User $user
* @param string $password
* @return void
*/ */
protected function resetPassword(CanResetPassword|User $user, string $password): void protected function resetPassword(CanResetPassword|User $user, string $password): void
{ {
@ -141,10 +122,6 @@ protected function resetPassword(CanResetPassword|User $user, string $password):
/** /**
* Set the user's password. * Set the user's password.
*
* @param CanResetPassword $user
* @param string $password
* @return void
*/ */
protected function setUserPassword(CanResetPassword $user, string $password): void protected function setUserPassword(CanResetPassword $user, string $password): void
{ {
@ -156,8 +133,6 @@ protected function setUserPassword(CanResetPassword $user, string $password): vo
/** /**
* Get the guard to be used during password reset. * Get the guard to be used during password reset.
*
* @return StatefulGuard
*/ */
protected function guard(): StatefulGuard protected function guard(): StatefulGuard
{ {
@ -166,10 +141,6 @@ protected function guard(): StatefulGuard
/** /**
* Get the response for a successful password reset. * Get the response for a successful password reset.
*
* @param Request $request
* @param string $response
* @return RedirectResponse|JsonResponse
*/ */
protected function sendResetResponse(Request $request, string $response): JsonResponse|RedirectResponse protected function sendResetResponse(Request $request, string $response): JsonResponse|RedirectResponse
{ {
@ -183,10 +154,6 @@ protected function sendResetResponse(Request $request, string $response): JsonRe
/** /**
* Get the response for a failed password reset. * Get the response for a failed password reset.
*
* @param Request $request
* @param string $response
* @return RedirectResponse
*/ */
protected function sendResetFailedResponse(Request $request, string $response): RedirectResponse protected function sendResetFailedResponse(Request $request, string $response): RedirectResponse
{ {

View File

@ -14,8 +14,6 @@ trait SendsPasswordResetEmails
{ {
/** /**
* Display the form to request a password reset link. * Display the form to request a password reset link.
*
* @return View
*/ */
public function showLinkRequestForm(): View public function showLinkRequestForm(): View
{ {
@ -24,9 +22,6 @@ public function showLinkRequestForm(): View
/** /**
* Send a reset link to the given user. * Send a reset link to the given user.
*
* @param Request $request
* @return RedirectResponse|JsonResponse
*/ */
public function sendResetLinkEmail(Request $request): JsonResponse|RedirectResponse public function sendResetLinkEmail(Request $request): JsonResponse|RedirectResponse
{ {
@ -46,9 +41,6 @@ public function sendResetLinkEmail(Request $request): JsonResponse|RedirectRespo
/** /**
* Validate the email for the given request. * Validate the email for the given request.
*
* @param Request $request
* @return void
*/ */
protected function validateEmail(Request $request): void protected function validateEmail(Request $request): void
{ {
@ -57,8 +49,6 @@ protected function validateEmail(Request $request): void
/** /**
* Get the broker to be used during password reset. * Get the broker to be used during password reset.
*
* @return PasswordBroker
*/ */
public function broker(): PasswordBroker public function broker(): PasswordBroker
{ {
@ -67,9 +57,6 @@ public function broker(): PasswordBroker
/** /**
* Get the needed authentication credentials from the request. * Get the needed authentication credentials from the request.
*
* @param Request $request
* @return array
*/ */
protected function credentials(Request $request): array protected function credentials(Request $request): array
{ {
@ -78,10 +65,6 @@ protected function credentials(Request $request): array
/** /**
* Get the response for a successful password reset link. * Get the response for a successful password reset link.
*
* @param Request $request
* @param string $response
* @return RedirectResponse|JsonResponse
*/ */
protected function sendResetLinkResponse(Request $request, string $response): JsonResponse|RedirectResponse protected function sendResetLinkResponse(Request $request, string $response): JsonResponse|RedirectResponse
{ {
@ -93,9 +76,6 @@ protected function sendResetLinkResponse(Request $request, string $response): Js
/** /**
* Get the response for a failed password reset link. * Get the response for a failed password reset link.
* *
* @param Request $request
* @param string $response
* @return RedirectResponse
* *
* @throws ValidationException * @throws ValidationException
*/ */

View File

@ -13,9 +13,6 @@ trait ThrottlesLogins
{ {
/** /**
* Determine if the user has too many failed login attempts. * Determine if the user has too many failed login attempts.
*
* @param Request $request
* @return bool
*/ */
protected function hasTooManyLoginAttempts(Request $request): bool protected function hasTooManyLoginAttempts(Request $request): bool
{ {
@ -26,8 +23,6 @@ protected function hasTooManyLoginAttempts(Request $request): bool
/** /**
* Get the rate limiter instance. * Get the rate limiter instance.
*
* @return RateLimiter
*/ */
protected function limiter(): RateLimiter protected function limiter(): RateLimiter
{ {
@ -36,9 +31,6 @@ protected function limiter(): RateLimiter
/** /**
* Get the throttle key for the given request. * Get the throttle key for the given request.
*
* @param Request $request
* @return string
*/ */
protected function throttleKey(Request $request): string protected function throttleKey(Request $request): string
{ {
@ -47,8 +39,6 @@ protected function throttleKey(Request $request): string
/** /**
* Get the maximum number of attempts to allow. * Get the maximum number of attempts to allow.
*
* @return int
*/ */
public function maxAttempts(): int public function maxAttempts(): int
{ {
@ -57,9 +47,6 @@ public function maxAttempts(): int
/** /**
* Increment the login attempts for the user. * Increment the login attempts for the user.
*
* @param Request $request
* @return void
*/ */
protected function incrementLoginAttempts(Request $request): void protected function incrementLoginAttempts(Request $request): void
{ {
@ -70,8 +57,6 @@ protected function incrementLoginAttempts(Request $request): void
/** /**
* Get the number of minutes to throttle for. * Get the number of minutes to throttle for.
*
* @return int
*/ */
public function decayMinutes(): int public function decayMinutes(): int
{ {
@ -81,8 +66,6 @@ public function decayMinutes(): int
/** /**
* Redirect the user after determining they are locked out. * Redirect the user after determining they are locked out.
* *
* @param Request $request
* @return ResponseAlias
* *
* @throws ValidationException * @throws ValidationException
*/ */
@ -102,9 +85,6 @@ protected function sendLockoutResponse(Request $request): ResponseAlias
/** /**
* Clear the login locks for the given user credentials. * Clear the login locks for the given user credentials.
*
* @param Request $request
* @return void
*/ */
protected function clearLoginAttempts(Request $request): void protected function clearLoginAttempts(Request $request): void
{ {
@ -113,9 +93,6 @@ protected function clearLoginAttempts(Request $request): void
/** /**
* Fire an event when a lockout occurs. * Fire an event when a lockout occurs.
*
* @param Request $request
* @return void
*/ */
protected function fireLockoutEvent(Request $request): void protected function fireLockoutEvent(Request $request): void
{ {

View File

@ -15,9 +15,6 @@ trait VerifiesEmails
/** /**
* Show the email verification notice. * Show the email verification notice.
*
* @param Request $request
* @return RedirectResponse|View
*/ */
public function show(Request $request): View|RedirectResponse public function show(Request $request): View|RedirectResponse
{ {
@ -29,8 +26,6 @@ public function show(Request $request): View|RedirectResponse
/** /**
* Mark the authenticated user's email address as verified. * Mark the authenticated user's email address as verified.
* *
* @param Request $request
* @return JsonResponse|RedirectResponse
* *
* @throws AuthorizationException * @throws AuthorizationException
*/ */
@ -65,9 +60,6 @@ public function verify(Request $request): JsonResponse|RedirectResponse
/** /**
* Resend the email verification notification. * Resend the email verification notification.
*
* @param Request $request
* @return JsonResponse|RedirectResponse
*/ */
public function resend(Request $request): JsonResponse|RedirectResponse public function resend(Request $request): JsonResponse|RedirectResponse
{ {
@ -86,9 +78,6 @@ public function resend(Request $request): JsonResponse|RedirectResponse
/** /**
* The user has been verified. * The user has been verified.
*
* @param Request $request
* @return void
*/ */
protected function verified(Request $request): void protected function verified(Request $request): void
{ {

View File

@ -13,8 +13,6 @@ class AdminController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -25,9 +23,6 @@ public function index(): View
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @return RedirectResponse
*/ */
public function store(Request $request): RedirectResponse public function store(Request $request): RedirectResponse
{ {
@ -49,8 +44,6 @@ public function store(Request $request): RedirectResponse
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {
@ -59,9 +52,6 @@ public function create(): View
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param Admin $admin
* @return View
*/ */
public function edit(Admin $admin): View public function edit(Admin $admin): View
{ {
@ -70,10 +60,6 @@ public function edit(Admin $admin): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param Admin $admin
* @return RedirectResponse
*/ */
public function update(Request $request, Admin $admin): RedirectResponse public function update(Request $request, Admin $admin): RedirectResponse
{ {
@ -105,9 +91,6 @@ public function update(Request $request, Admin $admin): RedirectResponse
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param Admin $admin
* @return RedirectResponse
*/ */
public function destroy(Admin $admin): RedirectResponse public function destroy(Admin $admin): RedirectResponse
{ {

View File

@ -12,8 +12,6 @@ class ApplicationController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -24,9 +22,6 @@ public function index(): View
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @return View
*/ */
public function store(Request $request): View public function store(Request $request): View
{ {
@ -43,8 +38,6 @@ public function store(Request $request): View
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {
@ -53,9 +46,6 @@ public function create(): View
/** /**
* Display the specified resource. * Display the specified resource.
*
* @param Application $application
* @return RedirectResponse
*/ */
public function show(Application $application): RedirectResponse public function show(Application $application): RedirectResponse
{ {
@ -64,9 +54,6 @@ public function show(Application $application): RedirectResponse
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param Application $application
* @return View
*/ */
public function edit(Application $application): View public function edit(Application $application): View
{ {
@ -75,10 +62,6 @@ public function edit(Application $application): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param Application $application
* @return RedirectResponse
*/ */
public function update(Request $request, Application $application): RedirectResponse public function update(Request $request, Application $application): RedirectResponse
{ {
@ -95,9 +78,6 @@ public function update(Request $request, Application $application): RedirectResp
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param Application $application
* @return RedirectResponse
*/ */
public function destroy(Application $application): RedirectResponse public function destroy(Application $application): RedirectResponse
{ {

View File

@ -9,9 +9,6 @@
class AuthController extends Controller class AuthController extends Controller
{ {
/**
* @return View|RedirectResponse
*/
public function index(): View|RedirectResponse public function index(): View|RedirectResponse
{ {
if (! auth('admin')->check()) { if (! auth('admin')->check()) {
@ -21,10 +18,6 @@ public function index(): View|RedirectResponse
} }
} }
/**
* @param Request $request
* @return RedirectResponse
*/
public function login(Request $request): RedirectResponse public function login(Request $request): RedirectResponse
{ {
if (auth('admin')->attempt($request->only('email', 'password'), $request->has('remember'))) { if (auth('admin')->attempt($request->only('email', 'password'), $request->has('remember'))) {
@ -34,9 +27,6 @@ public function login(Request $request): RedirectResponse
} }
} }
/**
* @return RedirectResponse
*/
public function logout(): RedirectResponse public function logout(): RedirectResponse
{ {
auth('admin')->logout(); auth('admin')->logout();

View File

@ -12,10 +12,6 @@ class HostController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
*
* @param Request $request
* @return View
*/ */
public function index(Request $request): View public function index(Request $request): View
{ {
@ -37,9 +33,6 @@ public function index(Request $request): View
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param Host $host
* @return View
*/ */
public function edit(Host $host): View public function edit(Host $host): View
{ {
@ -48,10 +41,6 @@ public function edit(Host $host): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param Host $host
* @return RedirectResponse
*/ */
public function update(Request $request, Host $host): RedirectResponse public function update(Request $request, Host $host): RedirectResponse
{ {
@ -69,9 +58,6 @@ public function update(Request $request, Host $host): RedirectResponse
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param Host $host
* @return RedirectResponse
*/ */
public function destroy(Host $host): RedirectResponse public function destroy(Host $host): RedirectResponse
{ {

View File

@ -13,8 +13,6 @@ class MaintenanceController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -25,9 +23,6 @@ public function index(): View
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @return RedirectResponse
*/ */
public function store(Request $request): RedirectResponse public function store(Request $request): RedirectResponse
{ {
@ -46,8 +41,6 @@ public function store(Request $request): RedirectResponse
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {
@ -58,9 +51,6 @@ public function create(): View
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param Maintenance $maintenance
* @return View
*/ */
public function edit(Maintenance $maintenance): View public function edit(Maintenance $maintenance): View
{ {
@ -71,10 +61,6 @@ public function edit(Maintenance $maintenance): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param Maintenance $maintenance
* @return RedirectResponse
*/ */
public function update(Request $request, Maintenance $maintenance): RedirectResponse public function update(Request $request, Maintenance $maintenance): RedirectResponse
{ {
@ -93,9 +79,6 @@ public function update(Request $request, Maintenance $maintenance): RedirectResp
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param Maintenance $maintenance
* @return RedirectResponse
*/ */
public function destroy(Maintenance $maintenance): RedirectResponse public function destroy(Maintenance $maintenance): RedirectResponse
{ {

View File

@ -15,9 +15,6 @@ class ModuleController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @param Module $module
* @return View
*/ */
public function index(Module $module): View public function index(Module $module): View
{ {
@ -28,8 +25,6 @@ public function index(Module $module): View
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {
@ -38,9 +33,6 @@ public function create(): View
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @return RedirectResponse
*/ */
public function store(Request $request): RedirectResponse public function store(Request $request): RedirectResponse
{ {
@ -78,9 +70,6 @@ private function rules(): array
/** /**
* Display the specified resource. * Display the specified resource.
*
* @param Module $module
* @return View
*/ */
public function show(Module $module): View public function show(Module $module): View
{ {
@ -93,9 +82,6 @@ public function show(Module $module): View
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param Module $module
* @return View
*/ */
public function edit(Module $module): View public function edit(Module $module): View
{ {
@ -106,10 +92,6 @@ public function edit(Module $module): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param Module $module
* @return RedirectResponse
*/ */
public function update(Request $request, Module $module): RedirectResponse public function update(Request $request, Module $module): RedirectResponse
{ {
@ -160,9 +142,6 @@ public function update(Request $request, Module $module): RedirectResponse
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param Module $module
* @return RedirectResponse
*/ */
public function destroy(Module $module): RedirectResponse public function destroy(Module $module): RedirectResponse
{ {

View File

@ -16,8 +16,6 @@ class NodeController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -28,10 +26,6 @@ public function index(): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param string $node
* @return JsonResponse
*/ */
public function update(Request $request, string $node): JsonResponse public function update(Request $request, string $node): JsonResponse
{ {

View File

@ -16,9 +16,6 @@ class NotificationController extends Controller
{ {
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
*
* @param Request $request
* @return View
*/ */
public function create(Request $request): View public function create(Request $request): View
{ {
@ -66,9 +63,6 @@ public function query(Request|array $request): User|CachedBuilder|Builder
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @return RedirectResponse
*/ */
public function store(Request $request): RedirectResponse public function store(Request $request): RedirectResponse
{ {

View File

@ -13,10 +13,6 @@ class ReplyController extends Controller
{ {
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @param WorkOrder $work_order
* @return RedirectResponse
*/ */
public function store(Request $request, WorkOrder $work_order): RedirectResponse public function store(Request $request, WorkOrder $work_order): RedirectResponse
{ {
@ -39,10 +35,6 @@ public function store(Request $request, WorkOrder $work_order): RedirectResponse
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param WorkOrder $work_order
* @param Reply $reply
* @return View
*/ */
public function edit(WorkOrder $work_order, Reply $reply): View public function edit(WorkOrder $work_order, Reply $reply): View
{ {
@ -51,11 +43,6 @@ public function edit(WorkOrder $work_order, Reply $reply): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param WorkOrder $work_order
* @param Reply $reply
* @return RedirectResponse
*/ */
public function update(Request $request, WorkOrder $work_order, Reply $reply): RedirectResponse public function update(Request $request, WorkOrder $work_order, Reply $reply): RedirectResponse
{ {
@ -72,10 +59,6 @@ public function update(Request $request, WorkOrder $work_order, Reply $reply): R
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param WorkOrder $work_order
* @param Reply $reply
* @return RedirectResponse
*/ */
public function destroy(WorkOrder $work_order, Reply $reply): RedirectResponse public function destroy(WorkOrder $work_order, Reply $reply): RedirectResponse
{ {

View File

@ -56,9 +56,6 @@ public function index(Request $request): View
/** /**
* Display the specified resource. * Display the specified resource.
*
* @param User $user
* @return RedirectResponse
*/ */
public function show(User $user): RedirectResponse public function show(User $user): RedirectResponse
{ {
@ -69,9 +66,6 @@ public function show(User $user): RedirectResponse
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param User $user
* @return View
*/ */
public function edit(User $user): View public function edit(User $user): View
{ {
@ -85,10 +79,6 @@ public function edit(User $user): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param User $user
* @return RedirectResponse
*/ */
public function update(Request $request, User $user): RedirectResponse public function update(Request $request, User $user): RedirectResponse
{ {
@ -153,9 +143,6 @@ public function update(Request $request, User $user): RedirectResponse
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param User $user
* @return RedirectResponse
*/ */
public function destroy(User $user): RedirectResponse public function destroy(User $user): RedirectResponse
{ {

View File

@ -13,8 +13,6 @@ class UserGroupController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -25,9 +23,6 @@ public function index(): View
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @return RedirectResponse
*/ */
public function store(Request $request): RedirectResponse public function store(Request $request): RedirectResponse
{ {
@ -50,8 +45,6 @@ private function rules(): array
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {
@ -60,9 +53,6 @@ public function create(): View
/** /**
* Display the specified resource. * Display the specified resource.
*
* @param UserGroup $user_group
* @return View
*/ */
public function show(UserGroup $user_group): View public function show(UserGroup $user_group): View
{ {
@ -73,9 +63,6 @@ public function show(UserGroup $user_group): View
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param UserGroup $user_group
* @return View
*/ */
public function edit(UserGroup $user_group): View public function edit(UserGroup $user_group): View
{ {
@ -84,10 +71,6 @@ public function edit(UserGroup $user_group): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param UserGroup $user_group
* @return RedirectResponse
*/ */
public function update(Request $request, UserGroup $user_group): RedirectResponse public function update(Request $request, UserGroup $user_group): RedirectResponse
{ {
@ -100,9 +83,6 @@ public function update(Request $request, UserGroup $user_group): RedirectRespons
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param UserGroup $user_group
* @return RedirectResponse
*/ */
public function destroy(UserGroup $user_group): RedirectResponse public function destroy(UserGroup $user_group): RedirectResponse
{ {

View File

@ -14,10 +14,6 @@ class WorkOrderController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @param Request $request
* @param WorkOrder $workOrder
* @return View
*/ */
public function index(Request $request, WorkOrder $workOrder): View public function index(Request $request, WorkOrder $workOrder): View
{ {
@ -34,9 +30,6 @@ public function index(Request $request, WorkOrder $workOrder): View
/** /**
* Display the specified resource. * Display the specified resource.
*
* @param WorkOrder $workOrder
* @return View
*/ */
public function show(WorkOrder $workOrder): View public function show(WorkOrder $workOrder): View
{ {
@ -49,9 +42,6 @@ public function show(WorkOrder $workOrder): View
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
*
* @param WorkOrder $workOrder
* @return View
*/ */
public function edit(WorkOrder $workOrder): View public function edit(WorkOrder $workOrder): View
{ {
@ -60,10 +50,6 @@ public function edit(WorkOrder $workOrder): View
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
*
* @param Request $request
* @param WorkOrder $workOrder
* @return RedirectResponse
*/ */
public function update(Request $request, WorkOrder $workOrder): RedirectResponse public function update(Request $request, WorkOrder $workOrder): RedirectResponse
{ {
@ -82,9 +68,6 @@ public function update(Request $request, WorkOrder $workOrder): RedirectResponse
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param WorkOrder $workOrder
* @return RedirectResponse
*/ */
public function destroy(WorkOrder $workOrder): RedirectResponse public function destroy(WorkOrder $workOrder): RedirectResponse
{ {

View File

@ -11,8 +11,6 @@ class BalanceController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return JsonResponse
*/ */
public function index(): JsonResponse public function index(): JsonResponse
{ {
@ -23,9 +21,6 @@ public function index(): JsonResponse
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @return JsonResponse
*/ */
public function store(Request $request): JsonResponse public function store(Request $request): JsonResponse
{ {
@ -48,9 +43,6 @@ public function store(Request $request): JsonResponse
/** /**
* Display the specified resource. * Display the specified resource.
*
* @param Balance $balance
* @return JsonResponse
*/ */
public function show(Balance $balance): JsonResponse public function show(Balance $balance): JsonResponse
{ {

View File

@ -13,9 +13,6 @@ class ReplyController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @param WorkOrder $workOrder
* @return JsonResponse
*/ */
public function index(WorkOrder $workOrder): JsonResponse public function index(WorkOrder $workOrder): JsonResponse
{ {
@ -26,10 +23,6 @@ public function index(WorkOrder $workOrder): JsonResponse
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
*
* @param Request $request
* @param WorkOrder $workOrder
* @return JsonResponse
*/ */
public function store(Request $request, WorkOrder $workOrder): JsonResponse public function store(Request $request, WorkOrder $workOrder): JsonResponse
{ {

View File

@ -28,8 +28,6 @@ public function index(Request $request): Paginator
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param Request $request
* @return Response|JsonResponse
* *
* @throws ValidationException * @throws ValidationException
*/ */
@ -71,9 +69,6 @@ public function store(Request $request): Response|JsonResponse
/** /**
* Display the specified resource. * Display the specified resource.
*
* @param Host $host
* @return JsonResponse
*/ */
public function show(Host $host): JsonResponse public function show(Host $host): JsonResponse
{ {
@ -86,9 +81,6 @@ public function show(Host $host): JsonResponse
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param Request $request
* @param Host $host
* @return JsonResponse
* *
* @throws ValidationException * @throws ValidationException
*/ */
@ -108,9 +100,6 @@ public function update(Request $request, Host $host): JsonResponse
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param $host
* @return JsonResponse
*/ */
public function destroy($host): JsonResponse public function destroy($host): JsonResponse
{ {

View File

@ -12,9 +12,6 @@ class ReplyController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @param Request $request
* @return JsonResponse
*/ */
public function index(Request $request): JsonResponse public function index(Request $request): JsonResponse
{ {

View File

@ -16,9 +16,6 @@ class TaskController extends Controller
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @param Request $request
* @return JsonResponse
*/ */
public function index(Request $request): JsonResponse public function index(Request $request): JsonResponse
{ {
@ -30,8 +27,6 @@ public function index(Request $request): JsonResponse
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param Request $request
* @return JsonResponse
* *
* @throws ValidationException * @throws ValidationException
*/ */
@ -51,9 +46,6 @@ public function store(Request $request): JsonResponse
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param Request $request
* @param Task $task
* @return JsonResponse
* *
* @throws ValidationException * @throws ValidationException
*/ */

View File

@ -23,8 +23,6 @@ class ConfirmPasswordController extends Controller
/** /**
* Where to redirect users when the intended url fails. * Where to redirect users when the intended url fails.
*
* @var string
*/ */
protected string $redirectTo = RouteServiceProvider::HOME; protected string $redirectTo = RouteServiceProvider::HOME;

View File

@ -23,8 +23,6 @@ class LoginController extends Controller
/** /**
* Where to redirect users after login. * Where to redirect users after login.
*
* @var string
*/ */
protected string $redirectTo = RouteServiceProvider::HOME; protected string $redirectTo = RouteServiceProvider::HOME;

View File

@ -26,8 +26,6 @@ class RegisterController extends Controller
/** /**
* Where to redirect users after registration. * Where to redirect users after registration.
*
* @var string
*/ */
protected string $redirectTo = RouteServiceProvider::HOME; protected string $redirectTo = RouteServiceProvider::HOME;
@ -43,9 +41,6 @@ public function __construct()
/** /**
* Get a validator for an incoming registration request. * Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/ */
protected function validator(array $data): \Illuminate\Contracts\Validation\Validator protected function validator(array $data): \Illuminate\Contracts\Validation\Validator
{ {
@ -58,9 +53,6 @@ protected function validator(array $data): \Illuminate\Contracts\Validation\Vali
/** /**
* Create a new user instance after a valid registration. * Create a new user instance after a valid registration.
*
* @param array $data
* @return User
*/ */
protected function create(array $data): User protected function create(array $data): User
{ {

View File

@ -23,8 +23,6 @@ class ResetPasswordController extends Controller
/** /**
* Where to redirect users after resetting their password. * Where to redirect users after resetting their password.
*
* @var string
*/ */
protected string $redirectTo = RouteServiceProvider::HOME; protected string $redirectTo = RouteServiceProvider::HOME;
} }

View File

@ -23,8 +23,6 @@ class VerificationController extends Controller
/** /**
* Where to redirect users after verification. * Where to redirect users after verification.
*
* @var string
*/ */
protected string $redirectTo = RouteServiceProvider::HOME; protected string $redirectTo = RouteServiceProvider::HOME;

View File

@ -241,7 +241,6 @@ public function notify(
* 获取交易记录 * 获取交易记录
* *
* @param mixed $request * @param mixed $request
* @return View
*/ */
public function transactions( public function transactions(
Request $request Request $request

View File

@ -12,8 +12,6 @@ class HostController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -35,9 +33,6 @@ public function update(Request $request, Host $host): RedirectResponse
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
*
* @param Host $host
* @return RedirectResponse
*/ */
public function destroy(Host $host): RedirectResponse public function destroy(Host $host): RedirectResponse
{ {

View File

@ -10,10 +10,6 @@ class AddHeaders
{ {
/** /**
* Handle an incoming request. * Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed
*/ */
public function handle(Request $request, Closure $next): mixed public function handle(Request $request, Closure $next): mixed
{ {

View File

@ -13,9 +13,7 @@ class ValidateReferer
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param Request $request
* @param Closure(Request): (Response|RedirectResponse) $next * @param Closure(Request): (Response|RedirectResponse) $next
* @return mixed
*/ */
public function handle(Request $request, Closure $next): mixed public function handle(Request $request, Closure $next): mixed
{ {

View File

@ -11,7 +11,6 @@ class Authenticate extends Middleware
* Get the path the user should be redirected to when they are not authenticated. * Get the path the user should be redirected to when they are not authenticated.
* *
* @param Request $request * @param Request $request
* @return string|null
*/ */
protected function redirectTo($request): ?string protected function redirectTo($request): ?string
{ {

View File

@ -13,9 +13,7 @@ class JsonRequest
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param Request $request
* @param Closure(Request): (Response|RedirectResponse) $next * @param Closure(Request): (Response|RedirectResponse) $next
* @return Response|RedirectResponse|JsonResponse
*/ */
public function handle(Request $request, Closure $next): Response|JsonResponse|RedirectResponse public function handle(Request $request, Closure $next): Response|JsonResponse|RedirectResponse
{ {

View File

@ -12,10 +12,6 @@ class MakeSureModuleStatusIsUp
{ {
/** /**
* Handle an incoming request. * Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return Response|RedirectResponse|JsonResponse
*/ */
public function handle(Request $request, Closure $next): Response|RedirectResponse|JsonResponse public function handle(Request $request, Closure $next): Response|RedirectResponse|JsonResponse
{ {

View File

@ -15,11 +15,6 @@ class RealNamed
/** /**
* Handle an incoming request. * Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @param string $guard
* @return Response|RedirectResponse|JsonResponse
*/ */
public function handle(Request $request, Closure $next, string $guard = 'web'): Response|RedirectResponse|JsonResponse public function handle(Request $request, Closure $next, string $guard = 'web'): Response|RedirectResponse|JsonResponse
{ {

View File

@ -14,10 +14,8 @@ class RedirectIfAuthenticated
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param Request $request
* @param Closure(Request): (Response|RedirectResponse) $next * @param Closure(Request): (Response|RedirectResponse) $next
* @param string|null ...$guards * @param string|null ...$guards
* @return Response|RedirectResponse
*/ */
public function handle(Request $request, Closure $next, ...$guards): Response|RedirectResponse public function handle(Request $request, Closure $next, ...$guards): Response|RedirectResponse
{ {

View File

@ -14,9 +14,7 @@ class ReportRequestToCluster
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param Request $request
* @param Closure(Request): (Response|RedirectResponse) $next * @param Closure(Request): (Response|RedirectResponse) $next
* @return mixed
*/ */
public function handle(Request $request, Closure $next): mixed public function handle(Request $request, Closure $next): mixed
{ {

View File

@ -12,9 +12,7 @@ class TrustedDomain
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param Request $request
* @param Closure(Request): (Response|RedirectResponse) $next * @param Closure(Request): (Response|RedirectResponse) $next
* @return mixed
*/ */
public function handle(Request $request, Closure $next): mixed public function handle(Request $request, Closure $next): mixed
{ {

View File

@ -12,10 +12,6 @@ class ValidateUserIfBanned
{ {
/** /**
* Handle an incoming request. * Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return Response|RedirectResponse|JsonResponse
*/ */
public function handle(Request $request, Closure $next): Response|RedirectResponse|JsonResponse public function handle(Request $request, Closure $next): Response|RedirectResponse|JsonResponse
{ {

View File

@ -8,8 +8,6 @@ class StatusRequest extends FormRequest
{ {
/** /**
* Determine if the user is authorized to make this request. * Determine if the user is authorized to make this request.
*
* @return bool
*/ */
public function authorize(): bool public function authorize(): bool
{ {

View File

@ -9,8 +9,6 @@ class WorkOrderRequest extends FormRequest
{ {
/** /**
* Determine if the user is authorized to make this request. * Determine if the user is authorized to make this request.
*
* @return bool
*/ */
public function authorize(): bool public function authorize(): bool
{ {

View File

@ -9,8 +9,6 @@ class HostRequest extends FormRequest
{ {
/** /**
* Determine if the user is authorized to make this request. * Determine if the user is authorized to make this request.
*
* @return bool
*/ */
public function authorize(): bool public function authorize(): bool
{ {

View File

@ -8,8 +8,6 @@ class WorkOrderRequest extends FormRequest
{ {
/** /**
* Determine if the user is authorized to make this request. * Determine if the user is authorized to make this request.
*
* @return bool
*/ */
public function authorize(): bool public function authorize(): bool
{ {

View File

@ -16,8 +16,6 @@ class DeleteHostJob implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -31,8 +31,6 @@ public function __construct($minute, Host $host = null)
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -36,7 +36,6 @@ public function __construct(HostModel $host, $type = 'post', $pass_unavailable =
/** /**
* Execute the job. * Execute the job.
* *
* @return void
* *
* @noinspection PhpUndefinedVariableInspection * @noinspection PhpUndefinedVariableInspection
*/ */

View File

@ -16,8 +16,6 @@ class PushHostJob implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -17,8 +17,6 @@ class ScanAllHostsJob implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -28,8 +28,6 @@ public function __construct(?Host $host)
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -29,8 +29,6 @@ public function __construct(Host $host)
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -29,8 +29,6 @@ public function __construct(Module $module = null)
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -11,8 +11,6 @@ class SendModuleEarningsJob extends Job
{ {
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -35,8 +35,6 @@ public function __construct($client_id, $username, $like_username = false)
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -14,8 +14,6 @@ class CheckAndChargeBalanceJob extends Job implements ShouldQueue
{ {
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -16,8 +16,6 @@ class ClearTasksJob implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -16,8 +16,6 @@ class RollbackUserTempGroupJob implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -41,8 +41,6 @@ public function __construct(array $requests, $title, $content, $send_mail = fals
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -17,8 +17,6 @@ class SetBirthdayGroupJob implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -9,8 +9,6 @@ class AutoCloseWorkOrderJob extends Job
{ {
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -16,8 +16,6 @@ class PushWorkOrderJob implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -29,8 +29,6 @@ public function __construct(WorkOrderReply $reply, $type = 'post')
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -32,8 +32,6 @@ public function __construct(WorkOrderModel $workOrder, $type = 'post')
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View File

@ -107,13 +107,6 @@ private function getResponse(Response $response): array
]; ];
} }
/**
* @param $method
* @param $path
* @param $requests
* @param array $files
* @return array
*/
public function request($method, $path, $requests, array $files = []): array public function request($method, $path, $requests, array $files = []): array
{ {
try { try {
@ -202,12 +195,6 @@ public function calculate(): array
/** /**
* 扣除费用 * 扣除费用
*
* @param string|null $amount
* @param string|null $description
* @param bool $fail
* @param array $options
* @return string
*/ */
public function reduce(string|null $amount = '0', string|null $description = '消费', bool $fail = false, array $options = []): string public function reduce(string|null $amount = '0', string|null $description = '消费', bool $fail = false, array $options = []): string
{ {
@ -249,12 +236,6 @@ public function reduce(string|null $amount = '0', string|null $description = '
/** /**
* 增加余额 * 增加余额
*
* @param string|null $amount
* @param string $payment
* @param string|null $description
* @param array $options
* @return string
*/ */
public function charge(string|null $amount = '0', string $payment = 'console', string|null $description = '充值', array $options = []): string public function charge(string|null $amount = '0', string $payment = 'console', string|null $description = '充值', array $options = []): string
{ {

View File

@ -15,9 +15,6 @@ class PersonalAccessToken extends SanctumPersonalAccessToken
* We only want to actually save when there is something other than * We only want to actually save when there is something other than
* the last_used_at column that has changed. It prevents extra DB writes * the last_used_at column that has changed. It prevents extra DB writes
* since we aren't going to use that column for anything. * since we aren't going to use that column for anything.
*
* @param array $options
* @return bool
*/ */
public function save(array $options = []): bool public function save(array $options = []): bool
{ {

View File

@ -165,12 +165,6 @@ public function startTransfer(self $to, string $amount, string|null $description
/** /**
* 扣除费用 * 扣除费用
*
* @param string|null $amount
* @param string $description
* @param bool $fail
* @param array $options
* @return Transaction
*/ */
public function reduce(string|null $amount = '0', string $description = '消费', bool $fail = false, array $options = []): Transaction public function reduce(string|null $amount = '0', string $description = '消费', bool $fail = false, array $options = []): Transaction
{ {
@ -210,12 +204,6 @@ public function reduce(string|null $amount = '0', string $description = '消费'
/** /**
* 增加余额 * 增加余额
*
* @param string|null $amount
* @param string $payment
* @param string $description
* @param array $options
* @return Transaction
*/ */
public function charge(string|null $amount = '0', string $payment = 'console', string $description = '充值', array $options = []): Transaction public function charge(string|null $amount = '0', string $payment = 'console', string $description = '充值', array $options = []): Transaction
{ {
@ -267,8 +255,6 @@ public function getCostPrice(string $price): string
/** /**
* 获取用户的身份证号 * 获取用户的身份证号
*
* @return Attribute
*/ */
protected function idCard(): Attribute protected function idCard(): Attribute
{ {

View File

@ -31,11 +31,6 @@ public function users(): HasMany
/** /**
* 设置临时用户组 * 设置临时用户组
*
* @param User $user
* @param UserGroup $group
* @param Carbon $expired_at
* @return User
*/ */
public function setTempGroup(User $user, self $group, Carbon $expired_at): User public function setTempGroup(User $user, self $group, Carbon $expired_at): User
{ {

View File

@ -13,10 +13,6 @@ class WeComChannel extends Notification
/** /**
* Send the given notification. * Send the given notification.
*
* @param mixed $notifiable
* @param Notification $notification
* @return void
*/ */
public function send(mixed $notifiable, Notification $notification): void public function send(mixed $notifiable, Notification $notification): void
{ {

View File

@ -13,10 +13,6 @@ class WebChannel extends Notification
/** /**
* Send the given notification. * Send the given notification.
*
* @param mixed $notifiable
* @param Notification $notification
* @return void
*/ */
public function send(mixed $notifiable, Notification $notification): void public function send(mixed $notifiable, Notification $notification): void
{ {

View File

@ -24,9 +24,6 @@ public function __construct()
/** /**
* Get the notification's delivery channels. * Get the notification's delivery channels.
*
*
* @return array
*/ */
public function via(): array public function via(): array
{ {
@ -35,9 +32,6 @@ public function via(): array
/** /**
* Get the mail representation of the notification. * Get the mail representation of the notification.
*
*
* @return MailMessage
*/ */
public function toMail(): MailMessage public function toMail(): MailMessage
{ {
@ -91,9 +85,6 @@ public function toMail(): MailMessage
/** /**
* Get the array representation of the notification. * Get the array representation of the notification.
*
*
* @return array
*/ */
public function toArray(): array public function toArray(): array
{ {

View File

@ -24,9 +24,6 @@ public function __construct()
/** /**
* Get the notification's delivery channels. * Get the notification's delivery channels.
*
*
* @return array
*/ */
public function via(): array public function via(): array
{ {

View File

@ -32,8 +32,6 @@ public function __construct(string $title, string $content, bool $send_mail = fa
/** /**
* Get the notification's delivery channels. * Get the notification's delivery channels.
*
* @return array
*/ */
public function via(): array public function via(): array
{ {
@ -48,8 +46,6 @@ public function via(): array
/** /**
* Get the mail representation of the notification. * Get the mail representation of the notification.
*
* @return MailMessage
*/ */
public function toMail(): MailMessage public function toMail(): MailMessage
{ {
@ -61,8 +57,6 @@ public function toMail(): MailMessage
/** /**
* Get the array representation of the notification. * Get the array representation of the notification.
*
* @return array
*/ */
public function toArray(): array public function toArray(): array
{ {

Some files were not shown because too many files have changed in this diff Show More