Minor stylistic change
parent
02fe4d936f
commit
ba2c3ecdd0
|
@ -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)),
|
||||||
|
|
|
@ -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) . "%";
|
||||||
|
|
Loading…
Reference in New Issue