From 3c1d6cffdd057c3d33e90779dd4c4746eae5960b Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 2 May 2023 23:38:45 -0700 Subject: [PATCH] lint: fix php Signed-off-by: Varun Patil --- lib/Controller/OtherController.php | 30 +++++++++++++++--------------- lib/Controller/PageController.php | 1 - 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/lib/Controller/OtherController.php b/lib/Controller/OtherController.php index 6cbfca64..413ee0cf 100644 --- a/lib/Controller/OtherController.php +++ b/lib/Controller/OtherController.php @@ -79,23 +79,23 @@ class OtherController extends GenericApiController }; return new JSONResponse([ - "version" => $appManager->getAppInfo('memories')['version'], - "vod_disable" => Util::getSystemConfig('memories.vod.disable'), - "video_default_quality" => Util::getSystemConfig('memories.video_default_quality'), - "places_gis" => Util::getSystemConfig('memories.gis_type'), + 'version' => $appManager->getAppInfo('memories')['version'], + 'vod_disable' => Util::getSystemConfig('memories.vod.disable'), + 'video_default_quality' => Util::getSystemConfig('memories.video_default_quality'), + 'places_gis' => Util::getSystemConfig('memories.gis_type'), - "systemtags_enabled" => Util::tagsIsEnabled(), - "recognize_enabled" => Util::recognizeIsEnabled(), - "albums_enabled" => Util::albumsIsEnabled(), - "facerecognition_installed" => Util::facerecognitionIsInstalled(), - "facerecognition_enabled" => Util::facerecognitionIsEnabled(), + 'systemtags_enabled' => Util::tagsIsEnabled(), + 'recognize_enabled' => Util::recognizeIsEnabled(), + 'albums_enabled' => Util::albumsIsEnabled(), + 'facerecognition_installed' => Util::facerecognitionIsInstalled(), + 'facerecognition_enabled' => Util::facerecognitionIsEnabled(), - "timeline_path" => $getAppConfig('timelinePath', 'EMPTY'), - "folders_path" => $getAppConfig('foldersPath', '/'), - "show_hidden_folders" => $getAppConfig('showHidden', false) === "true", - "sort_folder_month" => $getAppConfig('sortFolderMonth', false) === "true", - "sort_album_month" => $getAppConfig('sortAlbumMonth', "true") === "true", - "enable_top_memories" => $getAppConfig('enableTopMemories', 'true') === "true", + 'timeline_path' => $getAppConfig('timelinePath', 'EMPTY'), + 'folders_path' => $getAppConfig('foldersPath', '/'), + 'show_hidden_folders' => 'true' === $getAppConfig('showHidden', false), + 'sort_folder_month' => 'true' === $getAppConfig('sortFolderMonth', false), + 'sort_album_month' => 'true' === $getAppConfig('sortAlbumMonth', 'true'), + 'enable_top_memories' => 'true' === $getAppConfig('enableTopMemories', 'true'), ], Http::STATUS_OK); }); } diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 994b89b5..066aba6e 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -3,7 +3,6 @@ namespace OCA\Memories\Controller; use OCA\Files\Event\LoadSidebar; -use OCA\Memories\AppInfo\Application; use OCA\Memories\Util; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\ContentSecurityPolicy;