From 058a779b4142843fb9026244cb207b560db53644 Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Wed, 18 Oct 2023 18:30:49 +0300 Subject: [PATCH] fix lint Signed-off-by: Andrey Borysenko --- lib/Controller/ExAppsPageController.php | 15 ++++++--------- lib/Service/AppAPIService.php | 8 ++++---- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/lib/Controller/ExAppsPageController.php b/lib/Controller/ExAppsPageController.php index 87cfd8b9..89f7dfac 100644 --- a/lib/Controller/ExAppsPageController.php +++ b/lib/Controller/ExAppsPageController.php @@ -10,7 +10,6 @@ use OC\App\Platform; use OC_App; use OCA\AppAPI\AppInfo\Application; -use OCA\AppAPI\Attribute\AppAPIAuth; use OCA\AppAPI\Db\DaemonConfig; use OCA\AppAPI\Db\ExApp; use OCA\AppAPI\Db\ExAppScope; @@ -24,10 +23,8 @@ use OCP\App\IAppManager; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; -use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired; -use OCP\AppFramework\Http\Attribute\PublicPage; use OCP\AppFramework\Http\ContentSecurityPolicy; use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\TemplateResponse; @@ -668,16 +665,16 @@ public function updateApp(string $appId): JSONResponse { // 5.5 Dispatch init step on ExApp side $this->service->dispatchExAppInit($exApp); - return new JSONResponse([ - 'data' => [ - 'appid' => $appId, - ] - ]); - // 6. Enable ExApp //$this->service->enableExApp($exApp); } + return new JSONResponse([ + 'data' => [ + 'appid' => $appId, + ] + ]); + //return new JSONResponse([ // 'data' => [ // 'appid' => $appId, diff --git a/lib/Service/AppAPIService.php b/lib/Service/AppAPIService.php index 3f138c31..610f63e2 100644 --- a/lib/Service/AppAPIService.php +++ b/lib/Service/AppAPIService.php @@ -389,10 +389,10 @@ public function heartbeatExApp(array $params): bool { */ public function dispatchExAppInit(ExApp $exApp): void { $initUrl = self::getExAppUrl( - $exApp->getProtocol(), - $exApp->getHost(), - $exApp->getPort(), - ) . '/init'; + $exApp->getProtocol(), + $exApp->getHost(), + $exApp->getPort(), + ) . '/init'; $options = [ 'headers' => [