Minor stylistic change

pull/37/head
Varun Patil 2022-09-11 18:06:16 -07:00
parent 02fe4d936f
commit ba2c3ecdd0
2 changed files with 6 additions and 5 deletions

View File

@ -56,8 +56,8 @@ trait TimelineQueryDay {
public function getDay( public function getDay(
IConfig &$config, IConfig &$config,
string $user, string $user,
int $dayId): array { int $dayId
): array {
// Filter by path starting with timeline path // Filter by path starting with timeline path
$path = "files" . Exif::getPhotosPath($config, $user) . "%"; $path = "files" . Exif::getPhotosPath($config, $user) . "%";
$query = $this->connection->getQueryBuilder(); $query = $this->connection->getQueryBuilder();
@ -79,8 +79,8 @@ trait TimelineQueryDay {
*/ */
public function getDayFolder( public function getDayFolder(
int $folderId, int $folderId,
int $dayId): array { int $dayId
): array {
$query = $this->connection->getQueryBuilder(); $query = $this->connection->getQueryBuilder();
$this->makeQueryDay($query, $dayId, $query->expr()->orX( $this->makeQueryDay($query, $dayId, $query->expr()->orX(
$query->expr()->eq('f.parent', $query->createNamedParameter($folderId, IQueryBuilder::PARAM_INT)), $query->expr()->eq('f.parent', $query->createNamedParameter($folderId, IQueryBuilder::PARAM_INT)),

View File

@ -50,7 +50,8 @@ trait TimelineQueryDays {
*/ */
public function getDays( public function getDays(
IConfig &$config, IConfig &$config,
string $user): array { string $user
): array {
// Filter by path starting with timeline path // Filter by path starting with timeline path
$path = "files" . Exif::getPhotosPath($config, $user) . "%"; $path = "files" . Exif::getPhotosPath($config, $user) . "%";