From b60f9863c60483d05a8a9717083e215492d8ab92 Mon Sep 17 00:00:00 2001 From: Art4 Date: Sun, 15 Dec 2024 21:51:22 +0000 Subject: [PATCH] clean use statements --- tests/src/Factory/Api/Twitter/DirectMessageTest.php | 2 +- tests/src/Factory/Api/Twitter/StatusTest.php | 2 +- tests/src/Factory/Api/Twitter/UserTest.php | 2 +- tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php | 1 - .../src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php | 1 - tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php | 1 - tests/src/Module/Api/Twitter/Blocks/ListsTest.php | 1 - .../src/Module/Api/Twitter/DirectMessages/ConversationTest.php | 1 - tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php | 1 - tests/src/Module/Api/Twitter/DirectMessages/SentTest.php | 1 - tests/src/Module/Api/Twitter/FavoritesTest.php | 1 - tests/src/Module/Api/Twitter/Followers/ListsTest.php | 1 - tests/src/Module/Api/Twitter/Friends/ListsTest.php | 1 - tests/src/Module/Api/Twitter/Friendships/IncomingTest.php | 1 - tests/src/Module/Api/Twitter/Lists/StatusesTest.php | 1 - tests/src/Module/Api/Twitter/Statuses/MentionsTest.php | 1 - .../Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php | 1 - tests/src/Module/Api/Twitter/Statuses/ShowTest.php | 1 - tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php | 1 - tests/src/Module/Api/Twitter/Users/LookupTest.php | 1 - tests/src/Module/Api/Twitter/Users/SearchTest.php | 1 - tests/src/Module/Api/Twitter/Users/ShowTest.php | 1 - 22 files changed, 3 insertions(+), 22 deletions(-) diff --git a/tests/src/Factory/Api/Twitter/DirectMessageTest.php b/tests/src/Factory/Api/Twitter/DirectMessageTest.php index 1c8b12fa7e..2f73faf353 100644 --- a/tests/src/Factory/Api/Twitter/DirectMessageTest.php +++ b/tests/src/Factory/Api/Twitter/DirectMessageTest.php @@ -9,8 +9,8 @@ namespace Friendica\Test\src\Factory\Api\Twitter; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; -use Friendica\Test\FixtureTestCase; use Friendica\Test\ApiTestCase; +use Friendica\Test\FixtureTestCase; class DirectMessageTest extends FixtureTestCase { diff --git a/tests/src/Factory/Api/Twitter/StatusTest.php b/tests/src/Factory/Api/Twitter/StatusTest.php index 0fc36e9995..c18d6838ce 100644 --- a/tests/src/Factory/Api/Twitter/StatusTest.php +++ b/tests/src/Factory/Api/Twitter/StatusTest.php @@ -16,8 +16,8 @@ use Friendica\Factory\Api\Twitter\Media; use Friendica\Factory\Api\Twitter\Mention; use Friendica\Factory\Api\Twitter\Status; use Friendica\Factory\Api\Twitter\Url; -use Friendica\Test\FixtureTestCase; use Friendica\Test\ApiTestCase; +use Friendica\Test\FixtureTestCase; class StatusTest extends FixtureTestCase { diff --git a/tests/src/Factory/Api/Twitter/UserTest.php b/tests/src/Factory/Api/Twitter/UserTest.php index e671c44111..7e44a20a0f 100644 --- a/tests/src/Factory/Api/Twitter/UserTest.php +++ b/tests/src/Factory/Api/Twitter/UserTest.php @@ -10,8 +10,8 @@ namespace Friendica\Test\src\Factory\Api\Twitter; use Friendica\DI; use Friendica\Factory\Api\Twitter\User; use Friendica\Network\HTTPException\NotFoundException; -use Friendica\Test\FixtureTestCase; use Friendica\Test\ApiTestCase; +use Friendica\Test\FixtureTestCase; class UserTest extends FixtureTestCase { diff --git a/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php b/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php index 998bad5264..6b26b50ec3 100644 --- a/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php +++ b/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Friendica\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Friendica\DirectMessages\Search; diff --git a/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php b/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php index e0fb146aaa..ab4cdbc7dd 100644 --- a/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php +++ b/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Mastodon\Accounts; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Mastodon\Accounts\VerifyCredentials; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php b/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php index c0d1e89028..89cd7da640 100644 --- a/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php +++ b/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Account; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Account\RateLimitStatus; diff --git a/tests/src/Module/Api/Twitter/Blocks/ListsTest.php b/tests/src/Module/Api/Twitter/Blocks/ListsTest.php index d41446bf2e..0b5577ccd6 100644 --- a/tests/src/Module/Api/Twitter/Blocks/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Blocks/ListsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Blocks; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Blocks\Lists; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php b/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php index f1a4aed615..cec35927fa 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Twitter\DirectMessages\Conversation; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php b/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php index 7f2ce706b2..a7e1861fc1 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Twitter\DirectMessages\Inbox; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php b/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php index 07d074fbb1..4e9de634b9 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Twitter\DirectMessages\Sent; diff --git a/tests/src/Module/Api/Twitter/FavoritesTest.php b/tests/src/Module/Api/Twitter/FavoritesTest.php index 506258dc32..1999ffe93e 100644 --- a/tests/src/Module/Api/Twitter/FavoritesTest.php +++ b/tests/src/Module/Api/Twitter/FavoritesTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Favorites; diff --git a/tests/src/Module/Api/Twitter/Followers/ListsTest.php b/tests/src/Module/Api/Twitter/Followers/ListsTest.php index 5a4f66fd45..63375393ad 100644 --- a/tests/src/Module/Api/Twitter/Followers/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Followers/ListsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Followers; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Followers\Lists; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Friends/ListsTest.php b/tests/src/Module/Api/Twitter/Friends/ListsTest.php index 9665dceb0e..f80fb5cd3c 100644 --- a/tests/src/Module/Api/Twitter/Friends/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Friends/ListsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Friends; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Friends\Lists; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php b/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php index a808e00b68..305046edd1 100644 --- a/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php +++ b/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Friendships; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Friendships\Incoming; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Lists/StatusesTest.php b/tests/src/Module/Api/Twitter/Lists/StatusesTest.php index 336233e057..b934b6ef15 100644 --- a/tests/src/Module/Api/Twitter/Lists/StatusesTest.php +++ b/tests/src/Module/Api/Twitter/Lists/StatusesTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Lists; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Lists\Statuses; use Friendica\Network\HTTPException\BadRequestException; diff --git a/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php b/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php index 512505227c..c27ce9ac09 100644 --- a/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\Mentions; diff --git a/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php b/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php index 9a68304b21..9047f94683 100644 --- a/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\NetworkPublicTimeline; diff --git a/tests/src/Module/Api/Twitter/Statuses/ShowTest.php b/tests/src/Module/Api/Twitter/Statuses/ShowTest.php index 37844ac37a..b4b83d0db0 100644 --- a/tests/src/Module/Api/Twitter/Statuses/ShowTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/ShowTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\Show; use Friendica\Network\HTTPException\BadRequestException; diff --git a/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php b/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php index 2e8e2f11c6..a9532572ee 100644 --- a/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\UserTimeline; diff --git a/tests/src/Module/Api/Twitter/Users/LookupTest.php b/tests/src/Module/Api/Twitter/Users/LookupTest.php index fd8e077dca..3ffe248b17 100644 --- a/tests/src/Module/Api/Twitter/Users/LookupTest.php +++ b/tests/src/Module/Api/Twitter/Users/LookupTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Users; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Users\Lookup; use Friendica\Network\HTTPException\NotFoundException; diff --git a/tests/src/Module/Api/Twitter/Users/SearchTest.php b/tests/src/Module/Api/Twitter/Users/SearchTest.php index 9a0b75be3c..9ee4c06380 100644 --- a/tests/src/Module/Api/Twitter/Users/SearchTest.php +++ b/tests/src/Module/Api/Twitter/Users/SearchTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Users; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Users\Search; diff --git a/tests/src/Module/Api/Twitter/Users/ShowTest.php b/tests/src/Module/Api/Twitter/Users/ShowTest.php index 80ebb59281..267954de76 100644 --- a/tests/src/Module/Api/Twitter/Users/ShowTest.php +++ b/tests/src/Module/Api/Twitter/Users/ShowTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Users; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Users\Show;