diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-03 20:54:25 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-03 20:54:25 +0200 |
commit | 2701c3e7dcfc8cd6bd8c094f8df0562d1c3f9679 (patch) | |
tree | 684133bf3627ab6418546a3c8468382b9635448e /lib/private/Accounts | |
parent | 44827e37c0a2e9f69feae6a741a223bf19e49685 (diff) | |
download | nextcloud-server-2701c3e7dcfc8cd6bd8c094f8df0562d1c3f9679.tar.gz nextcloud-server-2701c3e7dcfc8cd6bd8c094f8df0562d1c3f9679.zip |
fix code style
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Accounts')
-rw-r--r-- | lib/private/Accounts/Account.php | 2 | ||||
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 2 | ||||
-rw-r--r-- | lib/private/Accounts/TAccountsHelper.php | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/Accounts/Account.php b/lib/private/Accounts/Account.php index ff9b78dae40..dd07a930a8c 100644 --- a/lib/private/Accounts/Account.php +++ b/lib/private/Accounts/Account.php @@ -75,7 +75,7 @@ class Account implements IAccount { foreach ($this->properties as $propertyObject) { if ($propertyObject instanceof IAccountProperty) { yield $propertyObject; - } else if ($propertyObject instanceof IAccountPropertyCollection) { + } elseif ($propertyObject instanceof IAccountPropertyCollection) { foreach ($propertyObject->getProperties() as $property) { yield $property; } diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index 3b3117d8be1..801250004fb 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -169,7 +169,7 @@ class AccountManager implements IAccountManager { foreach ($data as $propertyNameOrIndex => &$propertyData) { if ($this->isCollection($propertyNameOrIndex)) { $this->testPropertyScopes($propertyData, $allowedScopes, $throwOnData); - } else if (isset($propertyData['scope'])) { + } elseif (isset($propertyData['scope'])) { $effectivePropertyName = $parentPropertyName ?? $propertyNameOrIndex; if ($throwOnData && !in_array($propertyData['scope'], $allowedScopes, true)) { diff --git a/lib/private/Accounts/TAccountsHelper.php b/lib/private/Accounts/TAccountsHelper.php index 09cc44c87c2..530204b451f 100644 --- a/lib/private/Accounts/TAccountsHelper.php +++ b/lib/private/Accounts/TAccountsHelper.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OC\Accounts; - use OCP\Accounts\IAccountManager; trait TAccountsHelper { |