Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/StorageStatistics.php')
-rw-r--r--lib/StorageStatistics.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/StorageStatistics.php b/lib/StorageStatistics.php
index ed8079a..ce5586b 100644
--- a/lib/StorageStatistics.php
+++ b/lib/StorageStatistics.php
@@ -89,9 +89,9 @@ class StorageStatistics {
->from('storages');
if ($type === 'home') {
$query->where($query->expr()->like('id', $query->createNamedParameter('home::%')));
- } else if ($type === 'local') {
+ } elseif ($type === 'local') {
$query->where($query->expr()->like('id', $query->createNamedParameter('local::%')));
- } else if ($type === 'other') {
+ } elseif ($type === 'other') {
$query->where($query->expr()->notLike('id', $query->createNamedParameter('home::%')));
$query->andWhere($query->expr()->notLike('id', $query->createNamedParameter('local::%')));
}
@@ -100,5 +100,4 @@ class StorageStatistics {
$result->closeCursor();
return (int) $row['num_entries'];
}
-
}