chore: fmt

This commit is contained in:
loks0n 2025-04-14 14:23:01 +01:00
parent 67a313cef3
commit e551e4ad5b

View file

@ -3,7 +3,6 @@
namespace Appwrite\Network\Validator;
use Appwrite\Network\Platform;
use Utopia\CLI\Console;
use Utopia\Validator;
use Utopia\Validator\Hostname;
@ -96,7 +95,8 @@ class Origin extends Validator
* @param string $uri The URI string to parse.
* @return string|null The extracted scheme string (e.g., "http", "exp", "mailto")
*/
function parseScheme(string $uri): ?string {
public function parseScheme(string $uri): ?string
{
$uri = trim($uri);
if ($uri === '') {
return null; // No scheme in empty string