Skip to content

Commit a96af73

Browse files
mishatchgithub-actions[bot]
authored andcommitted
Fix styling
1 parent f69d4d5 commit a96af73

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/GlobalBlocksPlugin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
class 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

0 commit comments

Comments
 (0)