Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
StyleCIBot committed Oct 10, 2024
1 parent 2208458 commit 6f8756c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/Http/Controllers/CrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct()
$this->crud = app('crud');

$this->crud->setRequest($request);

PanelHook::run(PanelHooks::BEFORE_SETUP_DEFAULTS, [$this]);
$this->setupDefaults();
PanelHook::run(PanelHooks::AFTER_SETUP_DEFAULTS, [$this]);
Expand Down
4 changes: 2 additions & 2 deletions src/app/Library/CrudPanel/Hooks/Contracts/PanelHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @method static void register(string $hook, callable $callback)
* @method static void run(string $hook, array $parameters)
* @method static bool has(string $hook)
*
*
* @see \Backpack\CRUD\app\Library\CrudPanel\Hooks\PanelHooks
*/
class PanelHook extends Facade
Expand All @@ -17,4 +17,4 @@ protected static function getFacadeAccessor()
{
return 'panel-hook';
}
}
}
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Hooks/PanelHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class PanelHooks

public array $hooks = [];

public function register(string $hook, callable $callback): void
public function register(string $hook, callable $callback): void
{
$this->hooks[$hook][] = $callback;
}
Expand Down

0 comments on commit 6f8756c

Please sign in to comment.