Added Helper Functions
This commit is contained in:
parent
5af5373550
commit
eb1780247f
|
@ -15,6 +15,16 @@ use Kanboard\Model\TaskFileModel;
|
||||||
* @package notification
|
* @package notification
|
||||||
* @author Ryonez Coruscare
|
* @author Ryonez Coruscare
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// Helper functions
|
||||||
|
|
||||||
|
function clean($string)
|
||||||
|
{
|
||||||
|
$string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.
|
||||||
|
return preg_replace('/[^A-Za-z0-9\-.]/', '', $string); // Removes special chars.
|
||||||
|
}
|
||||||
|
|
||||||
class Discord extends Base implements NotificationInterface
|
class Discord extends Base implements NotificationInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue