From 37a02109f6fae2e627fcbeaa36609fbcd35b9832 Mon Sep 17 00:00:00 2001 From: mchev Date: Sat, 10 Jun 2023 15:51:24 +0000 Subject: [PATCH] PHP Linting (Pint) --- src/Traits/Bannable.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Traits/Bannable.php b/src/Traits/Bannable.php index 6dbc0fb..854100a 100644 --- a/src/Traits/Bannable.php +++ b/src/Traits/Bannable.php @@ -70,17 +70,10 @@ public function scopeWhereBansMeta(Builder $query, string $key, $value): void }); } - /** - * - * @param Builder $query - * @param string $className - * @return void - */ - public function scopeBannedByType(Builder $query, string $className) : void + public function scopeBannedByType(Builder $query, string $className): void { $query->whereHas('bans', function ($query) use ($className) { $query->where('created_by_type', $className)->notExpired(); }); } - }