mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
chore: minor fixes
This commit is contained in:
1 parent
dbc58655b2
commit
c331a3caae
4 files changed
+7
-4
No files matched your search
@@ -69,7 +69,9 @@ class Platform
|
||||
switch ($type) {
|
||||
case self::TYPE_WEB:
|
||||
case self::TYPE_FLUTTER_WEB:
|
||||
$hostnames[] = $hostname;
|
||||
if (!empty($hostname)) {
|
||||
$hostnames[] = $hostname;
|
||||
}
|
||||
break;
|
||||
case self::TYPE_FLUTTER_IOS:
|
||||
case self::TYPE_FLUTTER_ANDROID:
|
||||
@@ -83,6 +85,7 @@ class Platform
|
||||
case self::TYPE_APPLE_TVOS:
|
||||
case self::TYPE_REACT_NATIVE_IOS:
|
||||
case self::TYPE_REACT_NATIVE_ANDROID:
|
||||
case self::TYPE_UNITY:
|
||||
if (!empty($key)) {
|
||||
$hostnames[] = $key;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class Origin extends Validator
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param array<Document> $platforms
|
||||
* @param array<\Utopia\Database\Document> $platforms
|
||||
*/
|
||||
public function __construct(array $platforms)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user