From be3c226addf480117b0949ebbd2d9f66c0483a38 Mon Sep 17 00:00:00 2001 From: PipoCanaja Date: Wed, 14 Aug 2024 18:50:24 +0200 Subject: [PATCH] style --- app/Http/Controllers/PluginPageController.php | 2 +- app/Http/Controllers/PluginResourceController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PluginPageController.php b/app/Http/Controllers/PluginPageController.php index 70317833420e..8c31fa4290cb 100644 --- a/app/Http/Controllers/PluginPageController.php +++ b/app/Http/Controllers/PluginPageController.php @@ -24,7 +24,7 @@ public function __invoke(PluginManager $manager, Plugin $plugin): \Illuminate\Co 'settings_view' => 'plugins.missing', 'settings' => [], ], - (array) $manager->call(PageHook::class, ['user' => Auth::User()], $plugin->plugin_name)->first() + (array) $manager->call(PageHook::class, ['user' => Auth::user()], $plugin->plugin_name)->first() ); return view('plugins.settings', $data); diff --git a/app/Http/Controllers/PluginResourceController.php b/app/Http/Controllers/PluginResourceController.php index 7959d0c367d2..15d5afcc4ac1 100644 --- a/app/Http/Controllers/PluginResourceController.php +++ b/app/Http/Controllers/PluginResourceController.php @@ -27,7 +27,7 @@ public function getResource(Request $request, Plugin $plugin, string $path = nul // If we have a hook for resources implemented in the passed plugin, we call it. // if not, we abort(404). $response = PluginManager::call(ResourceAccessorHook::class, ['request' => $request, 'path' => $path], $plugin->plugin_name)->first(); - if (!is_null($response)) { + if (! is_null($response)) { return $response; } abort(404);