fix code style

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2021-06-03 20:54:25 +02:00
parent 44827e37c0
commit 2701c3e7dc
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
3 changed files with 2 additions and 3 deletions

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

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

View File

@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\Accounts;
use OCP\Accounts\IAccountManager;
trait TAccountsHelper {