Code cleanup

This commit is contained in:
James Cole
2023-11-04 14:18:49 +01:00
parent 5a35960434
commit ba0843d0bb
211 changed files with 566 additions and 568 deletions

View File

@@ -86,7 +86,7 @@ class WebhookMessage extends Model
* @return WebhookMessage
* @throws NotFoundHttpException
*/
public static function routeBinder(string $value): WebhookMessage
public static function routeBinder(string $value): self
{
if (auth()->check()) {
$messageId = (int)$value;
@@ -125,7 +125,7 @@ class WebhookMessage extends Model
protected function sent(): Attribute
{
return Attribute::make(
get: fn ($value) => (bool)$value,
get: static fn ($value) => (bool)$value,
);
}
}