diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-07-10 12:31:47 -0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-24 11:33:44 +0100 |
commit | 1a5b545fe82ff4d21aac57762ae4a2a3082a0b11 (patch) | |
tree | 3d10ef6ed09eb6945ee829fcb051c8110ee30bfc /apps/files_external/lib/Service | |
parent | 3343626183a90412dfd4104f47e94b76e72710f0 (diff) | |
download | nextcloud-server-1a5b545fe82ff4d21aac57762ae4a2a3082a0b11.tar.gz nextcloud-server-1a5b545fe82ff4d21aac57762ae4a2a3082a0b11.zip |
full uppercase const
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/files_external/lib/Service')
-rw-r--r-- | apps/files_external/lib/Service/DBConfigService.php | 4 | ||||
-rw-r--r-- | apps/files_external/lib/Service/UserStoragesService.php | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/apps/files_external/lib/Service/DBConfigService.php b/apps/files_external/lib/Service/DBConfigService.php index ca1d3a6696c..8765dd43962 100644 --- a/apps/files_external/lib/Service/DBConfigService.php +++ b/apps/files_external/lib/Service/DBConfigService.php @@ -37,7 +37,7 @@ use OCP\Security\ICrypto; */ class DBConfigService { public const MOUNT_TYPE_ADMIN = 1; - public const MOUNT_TYPE_PERSONAl = 2; + public const MOUNT_TYPE_PERSONAL = 2; public const APPLICABLE_TYPE_GLOBAL = 1; public const APPLICABLE_TYPE_GROUP = 2; @@ -234,7 +234,7 @@ class DBConfigService { public function getUserMountsFor($type, $value) { $builder = $this->connection->getQueryBuilder(); $query = $this->getForQuery($builder, $type, $value); - $query->andWhere($builder->expr()->eq('m.type', $builder->expr()->literal(self::MOUNT_TYPE_PERSONAl, IQueryBuilder::PARAM_INT))); + $query->andWhere($builder->expr()->eq('m.type', $builder->expr()->literal(self::MOUNT_TYPE_PERSONAL, IQueryBuilder::PARAM_INT))); return $this->getMountsFromQuery($query); } diff --git a/apps/files_external/lib/Service/UserStoragesService.php b/apps/files_external/lib/Service/UserStoragesService.php index 47a6e919853..70004e7cdcc 100644 --- a/apps/files_external/lib/Service/UserStoragesService.php +++ b/apps/files_external/lib/Service/UserStoragesService.php @@ -31,7 +31,6 @@ namespace OCA\Files_External\Service; use OC\Files\Filesystem; use OCA\Files_External\Lib\StorageConfig; use OCA\Files_External\NotFoundException; - use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Config\IUserMountCache; use OCP\IUserSession; @@ -103,7 +102,7 @@ class UserStoragesService extends StoragesService { } protected function getType() { - return DBConfigService::MOUNT_TYPE_PERSONAl; + return DBConfigService::MOUNT_TYPE_PERSONAL; } /** @@ -144,7 +143,7 @@ class UserStoragesService extends StoragesService { } protected function isApplicable(StorageConfig $config) { - return ($config->getApplicableUsers() === [$this->getUser()->getUID()]) && $config->getType() === StorageConfig::MOUNT_TYPE_PERSONAl; + return ($config->getApplicableUsers() === [$this->getUser()->getUID()]) && $config->getType() === StorageConfig::MOUNT_TYPE_PERSONAL; } public function removeStorage($id) { |