From 8b3cce1b775ce459bb4a03e5fa26e9454f3e603e Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 13 Feb 2024 23:57:08 +0100 Subject: [PATCH] Remove unnecessary use-statements --- src/Auth/Process/OTP.php | 2 -- src/Controller/OTP.php | 2 -- tests/src/Controller/OTPTest.php | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/Auth/Process/OTP.php b/src/Auth/Process/OTP.php index e127889..f43c7e3 100644 --- a/src/Auth/Process/OTP.php +++ b/src/Auth/Process/OTP.php @@ -12,13 +12,11 @@ namespace SimpleSAML\Module\cmdotcom\Auth\Process; -use RuntimeException; use SimpleSAML\{Auth, Configuration, Logger, Module, Session, Utils}; use SimpleSAML\Assert\Assert; use SimpleSAML\Module\cmdotcom\Utils\PhoneNumber as PhoneNumberUtils; use SimpleSAML\Module\saml\Error; use SimpleSAML\SAML2\Constants; -use UnexpectedValueException; class OTP extends Auth\ProcessingFilter { diff --git a/src/Controller/OTP.php b/src/Controller/OTP.php index d4d0192..7b854e1 100644 --- a/src/Controller/OTP.php +++ b/src/Controller/OTP.php @@ -4,14 +4,12 @@ namespace SimpleSAML\Module\cmdotcom\Controller; -use GuzzleHttp\Client as GuzzleClient; use RuntimeException; use SimpleSAML\Assert\Assert; use SimpleSAML\{Auth, Configuration, Error, Logger, Module, Session, Utils}; use SimpleSAML\Module\cmdotcom\Utils\OTPClient; use SimpleSAML\XHTML\Template; use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response}; -use UnexpectedValueException; /** * Controller class for the cmdotcom module. diff --git a/tests/src/Controller/OTPTest.php b/tests/src/Controller/OTPTest.php index e9515cb..dd91140 100644 --- a/tests/src/Controller/OTPTest.php +++ b/tests/src/Controller/OTPTest.php @@ -9,9 +9,7 @@ use PHPUnit\Framework\TestCase; use RuntimeException; use SimpleSAML\{Auth, Configuration, Error, Logger, Session, Utils}; -use SimpleSAML\Assert\Assert; use SimpleSAML\Module\cmdotcom\Controller; -use SimpleSAML\Module\cmdotcom\Utils\TextMessage as TextUtils; use SimpleSAML\XHTML\Template; use Symfony\Component\HttpFoundation\{Request, RedirectResponse};