Skip to content

Commit 12719b4

Browse files
lam0819github-actions[bot]
authored andcommitted
Fix styling
1 parent 15b23c8 commit 12719b4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/SimpleLightBoxPlugin.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,18 @@ public function boot(Panel $panel): void
2929
ImageColumn::macro('simpleLightbox', macro: function ($url = null) {
3030
$extraAttributes = $this->extraAttributes[0] ?? [];
3131
$extraImgAttributes = $this->extraImgAttributes[0] ?? [];
32+
3233
/** @phpstan-ignore-next-line */
3334
return $this
3435
->openUrlInNewTab()
35-
->extraAttributes(array_merge($extraAttributes, ['x-on:click' => 'SimpleLightBox.open(event, \''.$url.'\')']))
36+
->extraAttributes(array_merge($extraAttributes, ['x-on:click' => 'SimpleLightBox.open(event, \'' . $url . '\')']))
3637
->extraImgAttributes(array_merge($extraImgAttributes, ['class' => 'simple-light-box-img-indicator']));
3738
});
3839

3940
ImageEntry::macro('simpleLightbox', function ($url = null) {
4041
$extraAttributes = $this->extraAttributes[0] ?? [];
4142
$extraImgAttributes = $this->extraImgAttributes[0] ?? [];
43+
4244
/** @phpstan-ignore-next-line */
4345
return $this
4446
->openUrlInNewTab()
@@ -48,18 +50,20 @@ public function boot(Panel $panel): void
4850

4951
TextColumn::macro('simpleLightbox', function ($url) {
5052
$extraAttributes = $this->extraAttributes[0] ?? [];
53+
5154
/** @phpstan-ignore-next-line */
5255
return $this
5356
->openUrlInNewTab()
54-
->extraAttributes(array_merge($extraAttributes,['x-on:click' => 'SimpleLightBox.open(event, \'' . $url . '\')']));
57+
->extraAttributes(array_merge($extraAttributes, ['x-on:click' => 'SimpleLightBox.open(event, \'' . $url . '\')']));
5558
});
5659

5760
TextEntry::macro('simpleLightbox', function ($url) {
5861
$extraAttributes = $this->extraAttributes[0] ?? [];
62+
5963
/** @phpstan-ignore-next-line */
6064
return $this
6165
->openUrlInNewTab()
62-
->extraAttributes(array_merge($extraAttributes,['x-on:click' => 'SimpleLightBox.open(event, \'' . $url . '\')']));
66+
->extraAttributes(array_merge($extraAttributes, ['x-on:click' => 'SimpleLightBox.open(event, \'' . $url . '\')']));
6367
});
6468

6569
}

0 commit comments

Comments
 (0)