Skip to content

Commit 1d00b82

Browse files
authored
Merge pull request #307 from stof/clean_use_statements
Clean use statements
2 parents 460ff7e + a632e0d commit 1d00b82

12 files changed

Lines changed: 5 additions & 42 deletions

src/Saml2/Auth.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\AuthnRequest;
19-
use OneLogin\Saml2\Constants;
20-
use OneLogin\Saml2\Error;
21-
use OneLogin\Saml2\LogoutRequest;
22-
use OneLogin\Saml2\LogoutResponse;
23-
use OneLogin\Saml2\Response;
24-
use OneLogin\Saml2\Settings;
25-
use OneLogin\Saml2\Utils;
26-
2718
use RobRichards\XMLSecLibs\XMLSecurityKey;
2819

2920
use Exception;

src/Saml2/AuthnRequest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Constants;
19-
use OneLogin\Saml2\Settings;
20-
use OneLogin\Saml2\Utils;
21-
2218
/**
2319
* SAML 2 Authentication Request
2420
*/

src/Saml2/IdPMetadataParser.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Utils;
19-
2018
use DOMDocument;
2119
use Exception;
2220

src/Saml2/LogoutRequest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Settings;
19-
use OneLogin\Saml2\Utils;
20-
use OneLogin\Saml2\ValidationError;
21-
2218
use RobRichards\XMLSecLibs\XMLSecurityKey;
2319

2420
use DOMDocument;

src/Saml2/LogoutResponse.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Settings;
19-
use OneLogin\Saml2\Utils;
20-
use OneLogin\Saml2\ValidationError;
21-
2218
use DOMDocument;
2319
use DOMNodeList;
2420
use Exception;

src/Saml2/Metadata.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Utils;
19-
2018
use RobRichards\XMLSecLibs\XMLSecurityKey;
2119
use RobRichards\XMLSecLibs\XMLSecurityDSig;
2220

src/Saml2/Response.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Settings;
19-
use OneLogin\Saml2\Utils;
20-
2118
use RobRichards\XMLSecLibs\XMLSecurityKey;
2219
use RobRichards\XMLSecLibs\XMLSecEnc;
2320

@@ -195,7 +192,7 @@ public function isValid($requestId = null)
195192
}
196193

197194
$currentURL = Utils::getSelfRoutedURLNoQuery();
198-
195+
199196
if ($this->document->documentElement->hasAttribute('InResponseTo')) {
200197
$responseInResponseTo = $this->document->documentElement->getAttribute('InResponseTo');
201198
}
@@ -372,7 +369,7 @@ public function isValid($requestId = null)
372369
ValidationError::NO_SIGNED_ASSERTION
373370
);
374371
}
375-
372+
376373
if ($security['wantMessagesSigned'] && !$hasSignedResponse) {
377374
throw new ValidationError(
378375
"The Message of the Response is not signed and the SP requires it",
@@ -1088,7 +1085,7 @@ protected function decryptAssertion(\DomNode $dom)
10881085
$objKeyInfo->loadKey($pem, false, false);
10891086
}
10901087
}
1091-
1088+
10921089
if (empty($objKey->key)) {
10931090
$objKey->loadKey($key);
10941091
}

src/Saml2/Settings.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Utils;
19-
use OneLogin\Saml2\Error;
20-
2118
use RobRichards\XMLSecLibs\XMLSecurityKey;
2219
use RobRichards\XMLSecLibs\XMLSecurityDSig;
2320

src/Saml2/Utils.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515

1616
namespace OneLogin\Saml2;
1717

18-
use OneLogin\Saml2\Error;
19-
use OneLogin\Saml2\ValidationError;
20-
2118
use RobRichards\XMLSecLibs\XMLSecurityKey;
2219
use RobRichards\XMLSecLibs\XMLSecurityDSig;
2320
use RobRichards\XMLSecLibs\XMLSecEnc;

tests/src/OneLogin/Saml2/AuthTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace OneLogin\Saml2\Tests;
44

5-
use OneLogin\Saml2\AuthnRequest;
65
use OneLogin\Saml2\Auth;
76
use OneLogin\Saml2\Error;
87
use OneLogin\Saml2\LogoutRequest;

0 commit comments

Comments
 (0)