Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>tags/v22.0.0beta4
@@ -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; | |||
} |
@@ -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)) { |
@@ -26,7 +26,6 @@ declare(strict_types=1); | |||
namespace OC\Accounts; | |||
use OCP\Accounts\IAccountManager; | |||
trait TAccountsHelper { |