File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 99class GlobalBlocksPlugin implements Plugin
1010{
1111 protected bool $ enabled = true ;
12+
1213 protected string $ resourceClass = GlobalBlockConfigResource::class;
1314
1415 public static function make (): static
@@ -19,12 +20,14 @@ public static function make(): static
1920 public function enabled (bool $ enabled = true ): static
2021 {
2122 $ this ->enabled = $ enabled ;
23+
2224 return $ this ;
2325 }
2426
2527 public function resource (string $ resourceClass ): static
2628 {
2729 $ this ->resourceClass = $ resourceClass ;
30+
2831 return $ this ;
2932 }
3033
@@ -35,11 +38,11 @@ public function getId(): string
3538
3639 public function register (Panel $ panel ): void
3740 {
38- if (!$ this ->enabled ) {
41+ if (! $ this ->enabled ) {
3942 return ;
4043 }
4144
42- if (!class_exists ($ this ->resourceClass )) {
45+ if (! class_exists ($ this ->resourceClass )) {
4346 return ;
4447 }
4548
You can’t perform that action at this time.
0 commit comments