diff --git a/lib/ClientRegistration.php b/lib/ClientRegistration.php index bc28b5d..3276951 100644 --- a/lib/ClientRegistration.php +++ b/lib/ClientRegistration.php @@ -2,8 +2,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\Db; - class ClientRegistration { public static function getRegistration($clientId) diff --git a/lib/IpAttempts.php b/lib/IpAttempts.php index 1e820d4..b998190 100644 --- a/lib/IpAttempts.php +++ b/lib/IpAttempts.php @@ -2,8 +2,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\Db; - class IpAttempts { public static function logFailedAttempt($ip, $type, $expires) diff --git a/lib/JtiStore.php b/lib/JtiStore.php index 04c6b3c..ab051f5 100644 --- a/lib/JtiStore.php +++ b/lib/JtiStore.php @@ -2,8 +2,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\Db; - class JtiStore { public static function hasJti($jti) diff --git a/lib/MailTemplates.php b/lib/MailTemplates.php index a66d2b1..cab8172 100644 --- a/lib/MailTemplates.php +++ b/lib/MailTemplates.php @@ -4,8 +4,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\MailTemplateGenerator; - class MailTemplates { public static function verify() diff --git a/lib/Mailer.php b/lib/Mailer.php index b59fcc5..c7f8a80 100644 --- a/lib/Mailer.php +++ b/lib/Mailer.php @@ -2,7 +2,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\MailTemplates; use PHPMailer\PHPMailer\PHPMailer; class Mailer diff --git a/lib/ProfileServer.php b/lib/ProfileServer.php index 10cace0..b2202a4 100644 --- a/lib/ProfileServer.php +++ b/lib/ProfileServer.php @@ -2,10 +2,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\Server; -use Pdsinterop\PhpSolid\User; -use Pdsinterop\PhpSolid\Util; - class ProfileServer extends Server { public static function getMimeDetector() diff --git a/lib/Routes/Account.php b/lib/Routes/Account.php index ba9dc41..d00e971 100644 --- a/lib/Routes/Account.php +++ b/lib/Routes/Account.php @@ -2,13 +2,11 @@ namespace Pdsinterop\PhpSolid\Routes; -use Pdsinterop\PhpSolid\Server; -use Pdsinterop\PhpSolid\ClientRegistration; -use Pdsinterop\PhpSolid\User; -use Pdsinterop\PhpSolid\Session; -use Pdsinterop\PhpSolid\Mailer; use Pdsinterop\PhpSolid\IpAttempts; +use Pdsinterop\PhpSolid\Mailer; +use Pdsinterop\PhpSolid\Session; use Pdsinterop\PhpSolid\StorageServer; +use Pdsinterop\PhpSolid\User; class Account { diff --git a/lib/Routes/SolidIdp.php b/lib/Routes/SolidIdp.php index 6effd9d..b48a78e 100644 --- a/lib/Routes/SolidIdp.php +++ b/lib/Routes/SolidIdp.php @@ -4,10 +4,10 @@ namespace Pdsinterop\PhpSolid\Routes; -use Pdsinterop\PhpSolid\Server; use Pdsinterop\PhpSolid\ClientRegistration; -use Pdsinterop\PhpSolid\User; +use Pdsinterop\PhpSolid\Server; use Pdsinterop\PhpSolid\Session; +use Pdsinterop\PhpSolid\User; class SolidIdp { diff --git a/lib/Routes/SolidStorage.php b/lib/Routes/SolidStorage.php index 7146817..0088bae 100644 --- a/lib/Routes/SolidStorage.php +++ b/lib/Routes/SolidStorage.php @@ -2,15 +2,14 @@ namespace Pdsinterop\PhpSolid\Routes; -use Pdsinterop\PhpSolid\User; -use Pdsinterop\PhpSolid\StorageServer; -use Pdsinterop\PhpSolid\ClientRegistration; +use Laminas\Diactoros\Response; +use Laminas\Diactoros\ServerRequestFactory; use Pdsinterop\PhpSolid\SolidNotifications; +use Pdsinterop\PhpSolid\StorageServer; +use Pdsinterop\PhpSolid\User; use Pdsinterop\PhpSolid\Util; use Pdsinterop\Solid\Auth\WAC; use Pdsinterop\Solid\Resources\Server as ResourceServer; -use Laminas\Diactoros\ServerRequestFactory; -use Laminas\Diactoros\Response; class SolidStorage { diff --git a/lib/Routes/SolidStorageProvider.php b/lib/Routes/SolidStorageProvider.php index 91da074..a7112e5 100644 --- a/lib/Routes/SolidStorageProvider.php +++ b/lib/Routes/SolidStorageProvider.php @@ -2,8 +2,8 @@ namespace Pdsinterop\PhpSolid\Routes; -use Pdsinterop\PhpSolid\StorageServer; use Laminas\Diactoros\ServerRequestFactory; +use Pdsinterop\PhpSolid\StorageServer; class SolidStorageProvider { diff --git a/lib/Routes/SolidUserProfile.php b/lib/Routes/SolidUserProfile.php index 8c14efa..f188d23 100644 --- a/lib/Routes/SolidUserProfile.php +++ b/lib/Routes/SolidUserProfile.php @@ -2,14 +2,13 @@ namespace Pdsinterop\PhpSolid\Routes; +use Laminas\Diactoros\Response; +use Laminas\Diactoros\ServerRequestFactory; use Pdsinterop\PhpSolid\ProfileServer; -use Pdsinterop\PhpSolid\ClientRegistration; use Pdsinterop\PhpSolid\SolidNotifications; use Pdsinterop\PhpSolid\Util; use Pdsinterop\Solid\Auth\WAC; use Pdsinterop\Solid\Resources\Server as ResourceServer; -use Laminas\Diactoros\ServerRequestFactory; -use Laminas\Diactoros\Response; class SolidUserProfile { diff --git a/lib/Server.php b/lib/Server.php index 1b4a16a..5c9fd49 100644 --- a/lib/Server.php +++ b/lib/Server.php @@ -2,18 +2,16 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\Solid\Auth\Factory\AuthorizationServerFactory; use Laminas\Diactoros\Response; -use Pdsinterop\Solid\Auth\Server as SolidAuthServer; -use Pdsinterop\Solid\Auth\Factory\ConfigFactory; use Pdsinterop\Solid\Auth\Config\Client as ConfigClient; -use Pdsinterop\Solid\Auth\Utils\ReplayDetector; -use Pdsinterop\Solid\Auth\Utils\DPop; +use Pdsinterop\Solid\Auth\Factory\AuthorizationServerFactory; +use Pdsinterop\Solid\Auth\Factory\ConfigFactory; +use Pdsinterop\Solid\Auth\Server as SolidAuthServer; +use Pdsinterop\Solid\Auth\TokenGenerator; use Pdsinterop\Solid\Auth\Utils\Bearer; +use Pdsinterop\Solid\Auth\Utils\DPop; use Pdsinterop\Solid\Auth\Utils\JtiValidator; -use Pdsinterop\Solid\Auth\TokenGenerator; -use Pdsinterop\PhpSolid\ClientRegistration; -use Pdsinterop\PhpSolid\JtiStore; +use Pdsinterop\Solid\Auth\Utils\ReplayDetector; class Server { diff --git a/lib/SolidNotifications.php b/lib/SolidNotifications.php index b1d5cab..d8f3085 100644 --- a/lib/SolidNotifications.php +++ b/lib/SolidNotifications.php @@ -2,7 +2,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\SolidPubSub; use Pdsinterop\Solid\SolidNotifications\SolidNotificationsInterface; class SolidNotifications implements SolidNotificationsInterface diff --git a/lib/SolidPubSub.php b/lib/SolidPubSub.php index b7df02c..32c690a 100644 --- a/lib/SolidPubSub.php +++ b/lib/SolidPubSub.php @@ -2,8 +2,8 @@ namespace Pdsinterop\PhpSolid; -use WebSocket\Client; use Pdsinterop\Solid\SolidNotifications\SolidNotificationsInterface; +use WebSocket\Client; class SolidPubSub implements SolidNotificationsInterface { diff --git a/lib/StorageServer.php b/lib/StorageServer.php index ef8c393..2e2d2fb 100644 --- a/lib/StorageServer.php +++ b/lib/StorageServer.php @@ -2,11 +2,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\Server; -use Pdsinterop\PhpSolid\User; -use Pdsinterop\PhpSolid\Util; -use Pdsinterop\PhpSolid\Db; - class StorageServer extends Server { public static function getStorage($storageId) diff --git a/lib/User.php b/lib/User.php index 2fcc1fa..674872e 100644 --- a/lib/User.php +++ b/lib/User.php @@ -4,9 +4,6 @@ namespace Pdsinterop\PhpSolid; -use Pdsinterop\PhpSolid\PasswordValidator; -use Pdsinterop\PhpSolid\Db; - class User { private static function generateTokenCode()