mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-04 12:01:57 +00:00
Fix code quality with rector [skip ci]
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user