fix code style
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
44827e37c0
commit
2701c3e7dc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue