mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Code cleanup.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
/*
|
||||
* UrlValidator.php
|
||||
* Copyright (c) 2023 james@firefly-iii.org
|
||||
@@ -30,11 +29,6 @@ namespace FireflyIII\Support\Notifications;
|
||||
*/
|
||||
class UrlValidator
|
||||
{
|
||||
/**
|
||||
* @param string $url
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
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/');
|
||||
|
Reference in New Issue
Block a user