From 5e4e80fcfcacbc147536a146dffde36d8cb1ab0e Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 11 Jun 2022 23:08:16 +0200 Subject: [PATCH] Fix long lines --- modules/admin/src/Controller/Federation.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/admin/src/Controller/Federation.php b/modules/admin/src/Controller/Federation.php index 64fd8254b..74b14ae48 100644 --- a/modules/admin/src/Controller/Federation.php +++ b/modules/admin/src/Controller/Federation.php @@ -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']); -- GitLab