Skip to content

Commit

Permalink
Fix splitting up of a long if-clause with multiple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 4, 2023
1 parent 7e64692 commit 80533a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SAML2/Binding.php
Expand Up @@ -111,8 +111,11 @@ public static function getCurrentBinding(ServerRequestInterface $request): Bindi
*/
($contentType === 'text/xml' || $contentType === 'application/xml')
// See paragraph 3.2.3 of Binding for SAML2 (OASIS)
|| (isset($_SERVER['HTTP_SOAPACTION']) && $_SERVER['HTTP_SOAPACTION'] === 'http://www.oasis-open.org/committees/security'))
{
|| (
isset($_SERVER['HTTP_SOAPACTION'])
&& $_SERVER['HTTP_SOAPACTION'] === 'http://www.oasis-open.org/committees/security'
)
) {
return new SOAP();
}
break;
Expand Down

0 comments on commit 80533a5

Please sign in to comment.