Skip to content

Commit

Permalink
PHP Linting (Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchev authored and github-actions[bot] committed Jun 10, 2023
1 parent 4250c2e commit 37a0210
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Traits/Bannable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

}

0 comments on commit 37a0210

Please sign in to comment.