Skip to content

Commit eec478d

Browse files
committed
Update dependencies and pint
Update dependencies package.json and composer.json
1 parent 9bcd293 commit eec478d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1373
-970
lines changed

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function schedule(Schedule $schedule): void
2020
*/
2121
protected function commands(): void
2222
{
23-
$this->load(__DIR__.'/Commands');
23+
$this->load(__DIR__ . '/Commands');
2424

2525
require base_path('routes/console.php');
2626
}

app/Exceptions/Handler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class Handler extends ExceptionHandler
2323
*/
2424
public function register(): void
2525
{
26-
$this->reportable(function (Throwable $e) {
27-
//
28-
});
26+
$this->reportable(function (Throwable $e): void {});
2927
}
3028
}

app/Http/Controllers/Auth/ConfirmablePasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function show(): Response
2525
*/
2626
public function store(Request $request): RedirectResponse
2727
{
28-
if (! Auth::guard('web')->validate([
28+
if ( ! Auth::guard('web')->validate([
2929
'email' => $request->user()->email,
3030
'password' => $request->password,
3131
])) {

app/Http/Controllers/Auth/NewPasswordController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@ public function store(Request $request): RedirectResponse
4545
// database. Otherwise we will parse the error and return the response.
4646
$status = Password::reset(
4747
$request->only('email', 'password', 'password_confirmation', 'token'),
48-
function ($user) use ($request) {
48+
function ($user) use ($request): void {
4949
$user->forceFill([
5050
'password' => Hash::make($request->password),
5151
'remember_token' => Str::random(60),
5252
])->save();
5353

5454
event(new PasswordReset($user));
55-
}
55+
},
5656
);
5757

5858
// If the password was successfully reset, we will redirect the user back to
5959
// the application's home authenticated view. If there is an error we can
6060
// redirect them back to where they came from with their error message.
61-
if ($status == Password::PASSWORD_RESET) {
61+
if (Password::PASSWORD_RESET === $status) {
6262
return redirect()->route('login')->with('status', __($status));
6363
}
6464

app/Http/Controllers/Auth/PasswordResetLinkController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function store(Request $request): RedirectResponse
3737
// to send the link, we will examine the response then see the message we
3838
// need to show to the user. Finally, we'll send out a proper response.
3939
$status = Password::sendResetLink(
40-
$request->only('email')
40+
$request->only('email'),
4141
);
4242

43-
if ($status == Password::RESET_LINK_SENT) {
43+
if (Password::RESET_LINK_SENT === $status) {
4444
return back()->with('status', __($status));
4545
}
4646

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function store(Request $request): RedirectResponse
3232
{
3333
$request->validate([
3434
'name' => 'required|string|max:255',
35-
'email' => 'required|string|lowercase|email|max:255|unique:'.User::class,
35+
'email' => 'required|string|lowercase|email|max:255|unique:' . User::class,
3636
'password' => ['required', 'confirmed', Rules\Password::defaults()],
3737
]);
3838

app/Http/Controllers/Auth/VerifyEmailController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class VerifyEmailController extends Controller
1515
public function __invoke(EmailVerificationRequest $request): RedirectResponse
1616
{
1717
if ($request->user()->hasVerifiedEmail()) {
18-
return redirect()->intended(route('dashboard', absolute: false).'?verified=1');
18+
return redirect()->intended(route('dashboard', absolute: false) . '?verified=1');
1919
}
2020

2121
if ($request->user()->markEmailAsVerified()) {
2222
event(new Verified($request->user()));
2323
}
2424

25-
return redirect()->intended(route('dashboard', absolute: false).'?verified=1');
25+
return redirect()->intended(route('dashboard', absolute: false) . '?verified=1');
2626
}
2727
}

app/Http/Controllers/Controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88

99
class Controller extends BaseController
1010
{
11-
use AuthorizesRequests, ValidatesRequests;
11+
use AuthorizesRequests;
12+
use ValidatesRequests;
1213
}

app/Http/Controllers/UsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function edit(Request $request): Response
4040
public function update(UserUpdateRequest $request): RedirectResponse
4141
{
4242
// Removes password field if it's null
43-
if (! $request->password) {
43+
if ( ! $request->password) {
4444
unset($request['password']);
4545
}
4646

app/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Kernel extends HttpKernel
4242

4343
'api' => [
4444
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
45-
\Illuminate\Routing\Middleware\ThrottleRequests::class.':api',
45+
\Illuminate\Routing\Middleware\ThrottleRequests::class . ':api',
4646
\Illuminate\Routing\Middleware\SubstituteBindings::class,
4747
],
4848
];

0 commit comments

Comments
 (0)