From 7b7ea2b59799d1baa4bdd52f1cc95d2df247b088 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 22 Aug 2022 18:48:35 +0000 Subject: [PATCH] Remove comma after arg list (#14) --- lib/Controller/ApiController.php | 4 ++-- lib/Controller/PageController.php | 4 ++-- lib/Db/TimelineQuery.php | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 87dffc0a..cef617da 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -52,8 +52,8 @@ class ApiController extends Controller { IConfig $config, IUserSession $userSession, IDBConnection $connection, - IRootFolder $rootFolder, - ) { + IRootFolder $rootFolder) { + parent::__construct(Application::APPNAME, $request); $this->config = $config; diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 36a068ca..207495c7 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -27,8 +27,8 @@ class PageController extends Controller { IEventDispatcher $eventDispatcher, IInitialState $initialState, IUserSession $userSession, - IConfig $config, - ){ + IConfig $config) { + parent::__construct($AppName, $request); $this->userId = $UserId; $this->appName = $AppName; diff --git a/lib/Db/TimelineQuery.php b/lib/Db/TimelineQuery.php index 341bd17d..a496f9f0 100644 --- a/lib/Db/TimelineQuery.php +++ b/lib/Db/TimelineQuery.php @@ -33,8 +33,8 @@ class TimelineQuery { */ public function getDays( IConfig &$config, - string &$user, - ): array { + string &$user): array { + $sql = 'SELECT `*PREFIX*memories`.`dayid`, COUNT(`*PREFIX*memories`.`fileid`) AS count FROM `*PREFIX*memories` INNER JOIN `*PREFIX*filecache` @@ -93,8 +93,8 @@ class TimelineQuery { public function getDay( IConfig &$config, string &$user, - int &$dayId, - ): array { + int &$dayId): array { + $sql = 'SELECT `*PREFIX*memories`.`fileid`, *PREFIX*filecache.etag, `*PREFIX*memories`.`isvideo` FROM *PREFIX*memories INNER JOIN *PREFIX*filecache @@ -117,8 +117,8 @@ class TimelineQuery { */ public function getDayFolder( int &$folderId, - int &$dayId, - ): array { + int &$dayId): array { + $sql = 'SELECT `*PREFIX*memories`.`fileid`, `*PREFIX*filecache`.`etag`, `*PREFIX*memories`.`isvideo` FROM `*PREFIX*memories` INNER JOIN `*PREFIX*filecache`