From c40e5bccafe9be1139d8f12677cba769170c4087 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Fri, 12 Jan 2024 16:12:55 +0100 Subject: [PATCH] Remove unused use-statements and order them alphabetically --- composer.json | 3 ++- src/Controller/Adfs.php | 6 ++---- tests/src/Controller/AdfsControllerTest.php | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index e96bd0a..db3cae2 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,8 @@ }, "allow-plugins": { "composer/package-versions-deprecated": true, - "simplesamlphp/composer-module-installer": true + "simplesamlphp/composer-module-installer": true, + "dealerdirect/phpcodesniffer-composer-installer": true } }, "autoload": { diff --git a/src/Controller/Adfs.php b/src/Controller/Adfs.php index de14c8e..407f692 100644 --- a/src/Controller/Adfs.php +++ b/src/Controller/Adfs.php @@ -5,19 +5,17 @@ namespace SimpleSAML\Module\adfs\Controller; use Exception; -use SimpleSAML\SAML2\Constants; use SimpleSAML\Assert\Assert; use SimpleSAML\Configuration; use SimpleSAML\Error as SspError; use SimpleSAML\IdP; -use SimpleSAML\Locale\Translate; use SimpleSAML\Logger; +use SimpleSAML\Metadata; use SimpleSAML\Module; use SimpleSAML\Module\adfs\IdP\ADFS as ADFS_IDP; -use SimpleSAML\Metadata; +use SimpleSAML\SAML2\Constants; use SimpleSAML\Session; use SimpleSAML\Utils; -use SimpleSAML\XHTML\Template; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; diff --git a/tests/src/Controller/AdfsControllerTest.php b/tests/src/Controller/AdfsControllerTest.php index 9243111..0b6cffa 100644 --- a/tests/src/Controller/AdfsControllerTest.php +++ b/tests/src/Controller/AdfsControllerTest.php @@ -11,7 +11,6 @@ use SimpleSAML\Module\adfs\Controller; use SimpleSAML\Session; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; use function dirname;