aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-10-23 16:47:38 +0200
committerKate <26026535+provokateurin@users.noreply.github.com>2023-11-02 11:37:15 +0100
commit755de1e0b57aa9c7275257142b6f852fbcd1961e (patch)
treef9e993499eb4b7ff32682a9ef437c3e03b374669 /apps/updatenotification
parent99fa7f77eff6b615c9e40d4afefd1b1d62cb4917 (diff)
downloadnextcloud-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/updatenotification')
-rw-r--r--apps/updatenotification/lib/Controller/APIController.php6
-rw-r--r--apps/updatenotification/lib/ResponseDefinitions.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/updatenotification/lib/Controller/APIController.php b/apps/updatenotification/lib/Controller/APIController.php
index 8833f6e772e..f9e12525053 100644
--- a/apps/updatenotification/lib/Controller/APIController.php
+++ b/apps/updatenotification/lib/Controller/APIController.php
@@ -39,7 +39,7 @@ use OCP\IUserSession;
use OCP\L10N\IFactory;
/**
- * @psalm-import-type UpdatenotificationApp from ResponseDefinitions
+ * @psalm-import-type UpdateNotificationApp from ResponseDefinitions
*/
class APIController extends OCSController {
@@ -94,7 +94,7 @@ class APIController extends OCSController {
*
* @param string $newVersion Server version to check updates for
*
- * @return DataResponse<Http::STATUS_OK, array{missing: UpdatenotificationApp[], available: UpdatenotificationApp[]}, array{}>|DataResponse<Http::STATUS_NOT_FOUND, array{appstore_disabled: bool, already_on_latest?: bool}, array{}>
+ * @return DataResponse<Http::STATUS_OK, array{missing: UpdateNotificationApp[], available: UpdateNotificationApp[]}, array{}>|DataResponse<Http::STATUS_NOT_FOUND, array{appstore_disabled: bool, already_on_latest?: bool}, array{}>
*
* 200: Apps returned
* 404: New versions not found
@@ -167,7 +167,7 @@ class APIController extends OCSController {
* Get translated app name
*
* @param string $appId
- * @return UpdatenotificationApp
+ * @return UpdateNotificationApp
*/
protected function getAppDetails(string $appId): array {
$app = $this->appManager->getAppInfo($appId, false, $this->language);
diff --git a/apps/updatenotification/lib/ResponseDefinitions.php b/apps/updatenotification/lib/ResponseDefinitions.php
index 01b16b81dd0..cb6796aac34 100644
--- a/apps/updatenotification/lib/ResponseDefinitions.php
+++ b/apps/updatenotification/lib/ResponseDefinitions.php
@@ -26,7 +26,7 @@ declare(strict_types=1);
namespace OCA\UpdateNotification;
/**
- * @psalm-type UpdatenotificationApp = array{
+ * @psalm-type UpdateNotificationApp = array{
* appId: string,
* appName: string,
* }