1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

refactor(endpoints): fix typhint in validate_files_token() validate_folders_token()

This commit is contained in:
Awilum
2020-12-27 20:02:09 +03:00
parent acc99c4b28
commit 75ce33bc52

View File

@@ -23,7 +23,7 @@ use function is_dir;
/**
* Validate files token
*/
function validate_files_token($token): bool
function validate_files_token(string $token): bool
{
return filesystem()->file(PATH['project'] . '/tokens/media/files/' . $token . '/token.yaml')->exists();
}
@@ -31,7 +31,7 @@ function validate_files_token($token): bool
/**
* Validate folders token
*/
function validate_folders_token($token): bool
function validate_folders_token(string $token): bool
{
return filesystem()->file(PATH['project'] . '/tokens/media/folders/' . $token . '/token.yaml')->exists();
}