lint: fix php

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-05-02 23:38:45 -07:00
parent fb5d08a554
commit 3c1d6cffdd
2 changed files with 15 additions and 16 deletions

View File

@ -79,23 +79,23 @@ class OtherController extends GenericApiController
}; };
return new JSONResponse([ return new JSONResponse([
"version" => $appManager->getAppInfo('memories')['version'], 'version' => $appManager->getAppInfo('memories')['version'],
"vod_disable" => Util::getSystemConfig('memories.vod.disable'), 'vod_disable' => Util::getSystemConfig('memories.vod.disable'),
"video_default_quality" => Util::getSystemConfig('memories.video_default_quality'), 'video_default_quality' => Util::getSystemConfig('memories.video_default_quality'),
"places_gis" => Util::getSystemConfig('memories.gis_type'), 'places_gis' => Util::getSystemConfig('memories.gis_type'),
"systemtags_enabled" => Util::tagsIsEnabled(), 'systemtags_enabled' => Util::tagsIsEnabled(),
"recognize_enabled" => Util::recognizeIsEnabled(), 'recognize_enabled' => Util::recognizeIsEnabled(),
"albums_enabled" => Util::albumsIsEnabled(), 'albums_enabled' => Util::albumsIsEnabled(),
"facerecognition_installed" => Util::facerecognitionIsInstalled(), 'facerecognition_installed' => Util::facerecognitionIsInstalled(),
"facerecognition_enabled" => Util::facerecognitionIsEnabled(), 'facerecognition_enabled' => Util::facerecognitionIsEnabled(),
"timeline_path" => $getAppConfig('timelinePath', 'EMPTY'), 'timeline_path' => $getAppConfig('timelinePath', 'EMPTY'),
"folders_path" => $getAppConfig('foldersPath', '/'), 'folders_path' => $getAppConfig('foldersPath', '/'),
"show_hidden_folders" => $getAppConfig('showHidden', false) === "true", 'show_hidden_folders' => 'true' === $getAppConfig('showHidden', false),
"sort_folder_month" => $getAppConfig('sortFolderMonth', false) === "true", 'sort_folder_month' => 'true' === $getAppConfig('sortFolderMonth', false),
"sort_album_month" => $getAppConfig('sortAlbumMonth', "true") === "true", 'sort_album_month' => 'true' === $getAppConfig('sortAlbumMonth', 'true'),
"enable_top_memories" => $getAppConfig('enableTopMemories', 'true') === "true", 'enable_top_memories' => 'true' === $getAppConfig('enableTopMemories', 'true'),
], Http::STATUS_OK); ], Http::STATUS_OK);
}); });
} }

View File

@ -3,7 +3,6 @@
namespace OCA\Memories\Controller; namespace OCA\Memories\Controller;
use OCA\Files\Event\LoadSidebar; use OCA\Files\Event\LoadSidebar;
use OCA\Memories\AppInfo\Application;
use OCA\Memories\Util; use OCA\Memories\Util;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\ContentSecurityPolicy; use OCP\AppFramework\Http\ContentSecurityPolicy;