Skip to content

Commit 3e77b14

Browse files
rabolactions-user
authored andcommitted
Fix styling
1 parent 7178654 commit 3e77b14

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/SimpleSubscriptionServiceProvider.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use Spatie\LaravelPackageTools\Package;
88
use Spatie\LaravelPackageTools\PackageServiceProvider;
99

10-
11-
1210
class SimpleSubscriptionServiceProvider extends PackageServiceProvider
1311
{
1412
public function configurePackage(Package $package): void
@@ -37,12 +35,11 @@ public function boot()
3735

3836
// Add strip_tags validation rule
3937
Validator::extend('strip_tags', function ($attribute, $value) {
40-
41-
if($attribute == 'name')
42-
return strip_tags($value) === $value;
38+
if ($attribute == 'name') {
39+
return strip_tags($value) === $value;
40+
}
4341

4442
return strip_tags($value) === $value;
45-
4643
}, 'Noting to add.');
4744

4845
return $this;

0 commit comments

Comments
 (0)