Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
PipoCanaja committed Aug 14, 2024
1 parent 5982cd4 commit be3c226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PluginPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/PluginResourceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be3c226

Please sign in to comment.