Skip to content

Commit 2423bba

Browse files
scottgraysongithub-actions[bot]
authored andcommitted
Fix styling
1 parent 86ab87e commit 2423bba

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Resources/Pages/EditFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function ($attribute, $value, $fail) {
5959
if (empty($value)) {
6060
return;
6161
}
62-
62+
6363
$slug = \Illuminate\Support\Str::slug($value);
6464
$existingTag = \Tapp\FilamentLibrary\Models\LibraryItemTag::where('slug', $slug)->first();
6565

@@ -80,7 +80,7 @@ function ($attribute, $value, $fail) {
8080
// Re-validate to trigger form validation display
8181
\Illuminate\Support\Facades\Validator::make($data, [
8282
'name' => [
83-
function ($attribute, $value, $fail) use ($slug, $existingTag) {
83+
function ($attribute, $value, $fail) use ($existingTag) {
8484
if ($existingTag) {
8585
$fail('A tag with this name already exists.');
8686
}

src/Resources/Pages/EditFolder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ function ($attribute, $value, $fail) {
4343
if (empty($value)) {
4444
return;
4545
}
46-
46+
4747
$slug = \Illuminate\Support\Str::slug($value);
4848
$existingTag = \Tapp\FilamentLibrary\Models\LibraryItemTag::where('slug', $slug)->first();
49-
49+
5050
if ($existingTag) {
5151
$fail('A tag with this name already exists.');
5252
}
@@ -64,7 +64,7 @@ function ($attribute, $value, $fail) {
6464
// Re-validate to trigger form validation display
6565
\Illuminate\Support\Facades\Validator::make($data, [
6666
'name' => [
67-
function ($attribute, $value, $fail) use ($slug, $existingTag) {
67+
function ($attribute, $value, $fail) use ($existingTag) {
6868
if ($existingTag) {
6969
$fail('A tag with this name already exists.');
7070
}

src/Resources/Pages/EditLink.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ function ($attribute, $value, $fail) {
4747
if (empty($value)) {
4848
return;
4949
}
50-
50+
5151
$slug = \Illuminate\Support\Str::slug($value);
5252
$existingTag = \Tapp\FilamentLibrary\Models\LibraryItemTag::where('slug', $slug)->first();
53-
53+
5454
if ($existingTag) {
5555
$fail('A tag with this name already exists.');
5656
}
@@ -68,7 +68,7 @@ function ($attribute, $value, $fail) {
6868
// Re-validate to trigger form validation display
6969
\Illuminate\Support\Facades\Validator::make($data, [
7070
'name' => [
71-
function ($attribute, $value, $fail) use ($slug, $existingTag) {
71+
function ($attribute, $value, $fail) use ($existingTag) {
7272
if ($existingTag) {
7373
$fail('A tag with this name already exists.');
7474
}

0 commit comments

Comments
 (0)