Fix code quality with rector [skip ci]

This commit is contained in:
James Cole
2025-11-09 09:08:03 +01:00
parent d2610be790
commit 68183a0a0e
209 changed files with 1021 additions and 1248 deletions

View File

@@ -37,5 +37,5 @@ use Illuminate\Support\Facades\Broadcast;
Broadcast::channel(
'App.User.{id}',
static fn ($user, $id) => (int)$user->id === (int)$id
static fn ($user, $id): bool => (int)$user->id === (int)$id
);

View File

@@ -42,7 +42,7 @@ Route::group(
Route::get('/authorize', ['uses' => 'AuthorizationController@authorize', 'as' => 'authorizations.authorize', 'middleware' => 'user-full-auth']);
// the rest
$guard = config('passport.guard', null);
$guard = config('passport.guard');
Route::middleware(['web', null !== $guard ? 'auth:'.$guard : 'auth'])->group(function (): void {
Route::post('/token/refresh', ['uses' => 'TransientTokenController@refresh', 'as' => 'token.refresh']);
Route::post('/authorize', ['uses' => 'ApproveAuthorizationController@approve', 'as' => 'authorizations.approve']);