refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
17
app/Helpers/StringHelper.php
Normal file
17
app/Helpers/StringHelper.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Helpers;
|
||||
|
||||
class StringHelper
|
||||
{
|
||||
/**
|
||||
* Test if string is null or whitespace.
|
||||
*
|
||||
* @param mixed $text
|
||||
* @return bool
|
||||
*/
|
||||
public static function isNullOrWhitespace($text): bool
|
||||
{
|
||||
return ctype_space($text) || $text === '' || is_null($text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user