aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-08-28 10:44:18 +0200
committerLouis Chemineau <louis@chmn.me>2024-08-28 10:44:18 +0200
commit2574cbfa619bc8650e865f6fda064cd22c6b2d0e (patch)
treea14ce0f2303e7e309225a403c8cfeb9b753ce124 /apps/files/lib
parent9d0248545d85d6a680f2c9507f1bcfe13e889535 (diff)
downloadnextcloud-server-2574cbfa619bc8650e865f6fda064cd22c6b2d0e.tar.gz
nextcloud-server-2574cbfa619bc8650e865f6fda064cd22c6b2d0e.zip
chore: Apply php:cs recommendations
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/BackgroundJob/ScanFiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/BackgroundJob/ScanFiles.php b/apps/files/lib/BackgroundJob/ScanFiles.php
index 42beb70aaf5..b7e6e8db10e 100644
--- a/apps/files/lib/BackgroundJob/ScanFiles.php
+++ b/apps/files/lib/BackgroundJob/ScanFiles.php
@@ -70,7 +70,7 @@ class ScanFiles extends TimedJob {
* @return string|false
*/
private function getUserToScan() {
- if ($this->connection->getShardDefinition("filecache")) {
+ if ($this->connection->getShardDefinition('filecache')) {
// for sharded filecache, the "LIMIT" from the normal query doesn't work
// first we try it with a "LEFT JOIN" on mounts, this is fast, but might return a storage that isn't mounted.
@@ -82,7 +82,7 @@ class ScanFiles extends TimedJob {
->where($query->expr()->lt('f.size', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT)))
->andWhere($query->expr()->gt('f.parent', $query->createNamedParameter(-1, IQueryBuilder::PARAM_INT)))
->setMaxResults(10)
- ->groupBy("f.storage")
+ ->groupBy('f.storage')
->runAcrossAllShards();
$result = $query->executeQuery();