diff --git a/modules/saml/src/Auth/Process/SubjectID.php b/modules/saml/src/Auth/Process/SubjectID.php index 9f984e97a9dff8a1a098b81165158d2f275d8eb0..e2d5e659b6b866ba6a8f0e0b13eb9c86ee1a0ea7 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 2a515d6e2ffc00caab3a55f1457a0d653d7eef04..f75977bac93fb78a028965bf92c2194f7f8cb20c 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); }