diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-10-23 16:47:38 +0200 |
---|---|---|
committer | Kate <26026535+provokateurin@users.noreply.github.com> | 2023-11-02 11:37:15 +0100 |
commit | 755de1e0b57aa9c7275257142b6f852fbcd1961e (patch) | |
tree | f9e993499eb4b7ff32682a9ef437c3e03b374669 /apps/files_external | |
parent | 99fa7f77eff6b615c9e40d4afefd1b1d62cb4917 (diff) | |
download | nextcloud-server-755de1e0b57aa9c7275257142b6f852fbcd1961e.tar.gz nextcloud-server-755de1e0b57aa9c7275257142b6f852fbcd1961e.zip |
refactor: Rename OpenAPI type aliases to their namespaces
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Controller/ApiController.php | 6 | ||||
-rw-r--r-- | apps/files_external/lib/Lib/StorageConfig.php | 4 | ||||
-rw-r--r-- | apps/files_external/lib/ResponseDefinitions.php | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_external/lib/Controller/ApiController.php b/apps/files_external/lib/Controller/ApiController.php index 163d403dc2c..f9fbcdfeca8 100644 --- a/apps/files_external/lib/Controller/ApiController.php +++ b/apps/files_external/lib/Controller/ApiController.php @@ -40,7 +40,7 @@ use OCP\AppFramework\OCSController; use OCP\IRequest; /** - * @psalm-import-type FilesExternalMount from ResponseDefinitions + * @psalm-import-type Files_ExternalMount from ResponseDefinitions */ class ApiController extends OCSController { @@ -64,7 +64,7 @@ class ApiController extends OCSController { * @param string $mountPoint mount point name, relative to the data dir * @param StorageConfig $mountConfig mount config to format * - * @return FilesExternalMount + * @return Files_ExternalMount */ private function formatMount(string $mountPoint, StorageConfig $mountConfig): array { // split path from mount point @@ -100,7 +100,7 @@ class ApiController extends OCSController { * * Get the mount points visible for this user * - * @return DataResponse<Http::STATUS_OK, FilesExternalMount[], array{}> + * @return DataResponse<Http::STATUS_OK, Files_ExternalMount[], array{}> * * 200: User mounts returned */ diff --git a/apps/files_external/lib/Lib/StorageConfig.php b/apps/files_external/lib/Lib/StorageConfig.php index 25205a24321..9e89e8fcc99 100644 --- a/apps/files_external/lib/Lib/StorageConfig.php +++ b/apps/files_external/lib/Lib/StorageConfig.php @@ -36,7 +36,7 @@ use OCA\Files_External\ResponseDefinitions; /** * External storage configuration * - * @psalm-import-type FilesExternalStorageConfig from ResponseDefinitions + * @psalm-import-type Files_ExternalStorageConfig from ResponseDefinitions */ class StorageConfig implements \JsonSerializable { public const MOUNT_TYPE_ADMIN = 1; @@ -399,7 +399,7 @@ class StorageConfig implements \JsonSerializable { /** * Serialize config to JSON - * @return FilesExternalStorageConfig + * @return Files_ExternalStorageConfig */ public function jsonSerialize(bool $obfuscate = false): array { $result = []; diff --git a/apps/files_external/lib/ResponseDefinitions.php b/apps/files_external/lib/ResponseDefinitions.php index cb501ed1bce..2c86ed18e55 100644 --- a/apps/files_external/lib/ResponseDefinitions.php +++ b/apps/files_external/lib/ResponseDefinitions.php @@ -26,7 +26,7 @@ declare(strict_types=1); namespace OCA\Files_External; /** - * @psalm-type FilesExternalStorageConfig = array{ + * @psalm-type Files_ExternalStorageConfig = array{ * applicableGroups?: string[], * applicableUsers?: string[], * authMechanism: string, @@ -42,7 +42,7 @@ namespace OCA\Files_External; * userProvided: bool, * } * - * @psalm-type FilesExternalMount = array{ + * @psalm-type Files_ExternalMount = array{ * name: string, * path: string, * type: 'dir', @@ -51,7 +51,7 @@ namespace OCA\Files_External; * permissions: int, * id: int, * class: string, - * config: FilesExternalStorageConfig, + * config: Files_ExternalStorageConfig, * } */ class ResponseDefinitions { |