Skip to content
Snippets Groups Projects
Commit 5e4e80fc authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix long lines

parent 94c516fd
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,11 @@ class Federation
foreach ($saml2entities as $index => $entity) {
Assert::stringNotEmpty($entity['entityid'], 'The entityID must be a non-empty string.');
Assert::maxLength($entity['entityid'], C::ENTITYID_MAX_LENGTH, 'The entityID cannot be longer than 1024 characters.');
Assert::maxLength(
$entity['entityid'],
C::ENTITYID_MAX_LENGTH,
'The entityID cannot be longer than 1024 characters.'
);
$builder = new SAMLBuilder($entity['entityid']);
$builder->addMetadataIdP20($entity['metadata_array']);
......@@ -257,7 +261,11 @@ class Federation
foreach ($adfsentities as $index => $entity) {
Assert::stringNotEmpty($entity['entityid'], 'The entityID must be a non-empty string.');
Assert::maxLength($entity['entityid'], C::ENTITYID_MAX_LENGTH, 'The entityID cannot be longer than 1024 characters.');
Assert::maxLength(
$entity['entityid'],
C::ENTITYID_MAX_LENGTH,
'The entityID cannot be longer than 1024 characters.'
);
$builder = new SAMLBuilder($entity['entityid']);
$builder->addSecurityTokenServiceType($entity['metadata_array']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment