Apply Pint fixes

This commit is contained in:
Bubka
2024-09-26 23:50:01 +02:00
parent 18fe45778a
commit c00b04e192
118 changed files with 398 additions and 458 deletions

View File

@ -54,7 +54,7 @@ class WebAuthnRecoveryController extends Controller
$user->save();
Log::notice(sprintf('Legacy login restored for user ID #%s', $user->id));
} else {
throw new AuthenticationException();
throw new AuthenticationException;
}
}
);

View File

@ -16,7 +16,7 @@ class SinglePageController extends Controller
*/
public function index()
{
event(new ScanForNewReleaseCalled());
event(new ScanForNewReleaseCalled);
$settings = Settings::all()->toJson();
$proxyAuth = config('auth.defaults.guard') === 'reverse-proxy-guard' ? true : false;
@ -45,9 +45,9 @@ class SinglePageController extends Controller
],
'subdirectory' => $subdir,
])->toJson(),
'urls' => collect([
'urls' => collect([
'installDocUrl' => $installDocUrl,
'ssoDocUrl' => $ssoDocUrl
'ssoDocUrl' => $ssoDocUrl,
]),
'defaultPreferences' => $defaultPreferences,
'subdirectory' => $subdir,

View File

@ -70,7 +70,7 @@ class SystemController extends Controller
public function testEmail(Request $request)
{
try {
$request->user()->notify(new TestEmailSettingNotification());
$request->user()->notify(new TestEmailSettingNotification);
} catch (\Throwable $th) {
Log::error($th->getMessage());
}