diff --git a/lib/Saml2/Response.php b/lib/Saml2/Response.php index 47c0646a..c8f03620 100644 --- a/lib/Saml2/Response.php +++ b/lib/Saml2/Response.php @@ -338,7 +338,8 @@ public function checkStatus() * * @return boolean true if the Conditions element exists and is unique */ - public function checkOneCondition() { + public function checkOneCondition() + { $entries = $this->_queryAssertion("/saml:Conditions"); if ($entries->length == 1) { return true; @@ -352,7 +353,8 @@ public function checkOneCondition() { * * @return boolean true if the AuthnStatement element exists and is unique */ - public function checkOneAuthnStatement() { + public function checkOneAuthnStatement() + { $entries = $this->_queryAssertion("/saml:AuthnStatement"); if ($entries->length == 1) { return true; diff --git a/tests/src/OneLogin/Saml2/ResponseTest.php b/tests/src/OneLogin/Saml2/ResponseTest.php index 52dc63a1..fddaf081 100644 --- a/tests/src/OneLogin/Saml2/ResponseTest.php +++ b/tests/src/OneLogin/Saml2/ResponseTest.php @@ -234,7 +234,8 @@ public function testGetNameIdData() * * @covers OneLogin_Saml2_Response::checkOneCondition */ - public function testCheckOneCondition() { + public function testCheckOneCondition() + { $xml = file_get_contents(TEST_ROOT . '/data/responses/invalids/no_conditions.xml.base64'); $response = new OneLogin_Saml2_Response($this->_settings, $xml); $this->assertFalse($response->checkOneCondition()); @@ -249,7 +250,8 @@ public function testCheckOneCondition() { * * @covers OneLogin_Saml2_Response::checkOneAuthnStatement */ - public function testCheckOneAuthNStatement() { + public function testCheckOneAuthNStatement() + { $xml = file_get_contents(TEST_ROOT . '/data/responses/invalids/no_authnstatement.xml.base64'); $response = new OneLogin_Saml2_Response($this->_settings, $xml); $this->assertFalse($response->checkOneAuthnStatement());