diff options
author | Joas Schilling <coding@schilljs.com> | 2020-12-01 14:33:22 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-12-07 14:19:37 +0100 |
commit | da9462b482c77b71d6623be43a6aa1eda3d7cc06 (patch) | |
tree | fe78e9c97f50180140fb222a8a0c41c3fcd8ddd8 /apps/settings/lib/BackgroundJobs | |
parent | eab710c2fd6febbf946be3ce8376fb386b61ee90 (diff) | |
download | nextcloud-server-da9462b482c77b71d6623be43a6aa1eda3d7cc06.tar.gz nextcloud-server-da9462b482c77b71d6623be43a6aa1eda3d7cc06.zip |
Make code strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/lib/BackgroundJobs')
-rw-r--r-- | apps/settings/lib/BackgroundJobs/VerifyUserData.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/settings/lib/BackgroundJobs/VerifyUserData.php b/apps/settings/lib/BackgroundJobs/VerifyUserData.php index 0faa9b56e82..d1b6d835fa4 100644 --- a/apps/settings/lib/BackgroundJobs/VerifyUserData.php +++ b/apps/settings/lib/BackgroundJobs/VerifyUserData.php @@ -30,6 +30,7 @@ namespace OCA\Settings\BackgroundJobs; use OC\Accounts\AccountManager; +use OCP\Accounts\IAccountManager; use OCP\AppFramework\Http; use OCP\BackgroundJob\IJobList; use OCP\BackgroundJob\Job; @@ -114,11 +115,11 @@ class VerifyUserData extends Job { $try = (int)$argument['try'] + 1; switch ($argument['type']) { - case AccountManager::PROPERTY_WEBSITE: + case IAccountManager::PROPERTY_WEBSITE: $result = $this->verifyWebsite($argument); break; - case AccountManager::PROPERTY_TWITTER: - case AccountManager::PROPERTY_EMAIL: + case IAccountManager::PROPERTY_TWITTER: + case IAccountManager::PROPERTY_EMAIL: $result = $this->verifyViaLookupServer($argument, $argument['type']); break; default: @@ -164,9 +165,9 @@ class VerifyUserData extends Job { $userData = $this->accountManager->getUser($user); if ($publishedCodeSanitized === $argument['verificationCode']) { - $userData[AccountManager::PROPERTY_WEBSITE]['verified'] = AccountManager::VERIFIED; + $userData[IAccountManager::PROPERTY_WEBSITE]['verified'] = AccountManager::VERIFIED; } else { - $userData[AccountManager::PROPERTY_WEBSITE]['verified'] = AccountManager::NOT_VERIFIED; + $userData[IAccountManager::PROPERTY_WEBSITE]['verified'] = AccountManager::NOT_VERIFIED; } $this->accountManager->updateUser($user, $userData); |