Browse Source

fix code style

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v22.0.0beta4
Arthur Schiwon 3 years ago
parent
commit
2701c3e7dc
No account linked to committer's email address

+ 1
- 1
lib/private/Accounts/Account.php View File

@@ -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;
}

+ 1
- 1
lib/private/Accounts/AccountManager.php View File

@@ -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)) {

+ 0
- 1
lib/private/Accounts/TAccountsHelper.php View File

@@ -26,7 +26,6 @@ declare(strict_types=1);

namespace OC\Accounts;


use OCP\Accounts\IAccountManager;

trait TAccountsHelper {

Loading…
Cancel
Save