From 2701c3e7dcfc8cd6bd8c094f8df0562d1c3f9679 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 3 Jun 2021 20:54:25 +0200 Subject: [PATCH] fix code style Signed-off-by: Arthur Schiwon --- lib/private/Accounts/Account.php | 2 +- lib/private/Accounts/AccountManager.php | 2 +- 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 ff9b78dae4..dd07a930a8 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 3b3117d8be..801250004f 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 09cc44c87c..530204b451 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 {