diff --git a/src/OpenConext/EngineBlock/Metadata/MfaEntityCollection.php b/src/OpenConext/EngineBlock/Metadata/MfaEntityCollection.php index a8856b671..c24caaff3 100644 --- a/src/OpenConext/EngineBlock/Metadata/MfaEntityCollection.php +++ b/src/OpenConext/EngineBlock/Metadata/MfaEntityCollection.php @@ -42,7 +42,11 @@ public static function fromMetadataPush(array $data): MfaEntityCollection foreach ($data as $mfaEntityData) { $entityId = (string) $mfaEntityData['name']; $level = (string) $mfaEntityData['level']; - Assertion::keyNotExists($entities, $entityId, sprintf('Duplicate SP entity ids are not allowed in MFA list: %s', $entityId)); + Assertion::keyNotExists( + $entities, + $entityId, + sprintf('Duplicate SP entity ids are not allowed in MFA list: %s', $entityId) + ); $entities[$entityId] = MfaEntityFactory::from($entityId, $level); } return new self($entities); @@ -59,7 +63,11 @@ public static function fromCoin(array $data): MfaEntityCollection $entities = []; foreach ($data as $mfaEntityData) { $entity = MfaEntityFactory::fromJson($mfaEntityData); - Assertion::keyNotExists($entities, $entity->entityId(), sprintf('Duplicate SP entity ids are not allowed in coin MFA list: %s', $entity->entityId())); + Assertion::keyNotExists( + $entities, + $entity->entityId(), + sprintf('Duplicate SP entity ids are not allowed in coin MFA list: %s', $entity->entityId()) + ); $entities[$entity->entityId()] = $entity; } return new self($entities);