From 8695085a80bf563abbf81012ad07989cb5405ea8 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Fri, 24 Jun 2022 19:12:55 +0200 Subject: [PATCH] Fix build pedantisim re long lines --- modules/saml/src/Auth/Process/SubjectID.php | 5 ++++- tests/modules/saml/src/Auth/Process/SubjectIDTest.php | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/saml/src/Auth/Process/SubjectID.php b/modules/saml/src/Auth/Process/SubjectID.php index 9f984e97a..e2d5e659b 100644 --- a/modules/saml/src/Auth/Process/SubjectID.php +++ b/modules/saml/src/Auth/Process/SubjectID.php @@ -149,7 +149,10 @@ class SubjectID extends Auth\ProcessingFilter } $userID = $state['Attributes'][$this->identifyingAttribute][0]; - Assert::stringNotEmpty($userID, 'saml:' . static::NAME . ': \'identifyingAttribute\' cannot be an empty string.'); + Assert::stringNotEmpty( + $userID, + 'saml:' . static::NAME . ': \'identifyingAttribute\' cannot be an empty string.' + ); return $userID; } diff --git a/tests/modules/saml/src/Auth/Process/SubjectIDTest.php b/tests/modules/saml/src/Auth/Process/SubjectIDTest.php index 2a515d6e2..f75977bac 100644 --- a/tests/modules/saml/src/Auth/Process/SubjectIDTest.php +++ b/tests/modules/saml/src/Auth/Process/SubjectIDTest.php @@ -223,7 +223,9 @@ class SubjectIDTest extends TestCase ]; $this->expectException(RuntimeException::class); - $this->expectExceptionMessage('saml:SubjectID: Generated ID \'a1398u9u25@example\' can hardly be considered globally unique.'); + $this->expectExceptionMessage( + 'saml:SubjectID: Generated ID \'a1398u9u25@example\' can hardly be considered globally unique.' + ); self::processFilter($config, $request); } -- GitLab