mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-05 05:33:36 +00:00
Autoformat lol
This commit is contained in:
@@ -31,6 +31,10 @@ class UrlValidator
|
||||
{
|
||||
public static function isValidWebhookURL(string $url): bool
|
||||
{
|
||||
return str_starts_with($url, 'https://hooks.slack.com/services/') || str_starts_with($url, 'https://discord.com/api/webhooks/') || str_ends_with($url, '/slack');
|
||||
return (
|
||||
str_starts_with($url, 'https://hooks.slack.com/services/')
|
||||
|| str_starts_with($url, 'https://discord.com/api/webhooks/')
|
||||
|| str_ends_with($url, '/slack')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user