From 3e0bcf7acd9abe68fd44690da9d921529df456c7 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 6 Jan 2022 21:54:40 +0100 Subject: [PATCH 1/5] Add license check --- .woodpecker/.license_check.yml | 6 ++++++ mods/license/license_php.template | 20 ++++++++++++++++++++ tests/src/Module/Special/OptionsTest.php | 19 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .woodpecker/.license_check.yml create mode 100644 mods/license/license_php.template diff --git a/.woodpecker/.license_check.yml b/.woodpecker/.license_check.yml new file mode 100644 index 000000000..a22c6067e --- /dev/null +++ b/.woodpecker/.license_check.yml @@ -0,0 +1,6 @@ +pipeline: + check: + image: friendicaci/php-cs + commands: + - export CHANGED_FILES="$(git diff --name-status ${CI_PREV_COMMIT_SHA}..${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)" + - /check-license.sh diff --git a/mods/license/license_php.template b/mods/license/license_php.template new file mode 100644 index 000000000..1e1f8f309 --- /dev/null +++ b/mods/license/license_php.template @@ -0,0 +1,20 @@ +. + * + */ diff --git a/tests/src/Module/Special/OptionsTest.php b/tests/src/Module/Special/OptionsTest.php index 460435ae2..c61949aa1 100644 --- a/tests/src/Module/Special/OptionsTest.php +++ b/tests/src/Module/Special/OptionsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Special; From af135d4ad704fba7eb3a57cff8a55ee378da8970 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 6 Jan 2022 22:31:55 +0100 Subject: [PATCH 2/5] Fixed CHANGED_FILES --- .woodpecker/.code_standards_check.yml | 7 ++++++- .woodpecker/.license_check.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.woodpecker/.code_standards_check.yml b/.woodpecker/.code_standards_check.yml index d348b41af..f81ab960f 100644 --- a/.woodpecker/.code_standards_check.yml +++ b/.woodpecker/.code_standards_check.yml @@ -29,5 +29,10 @@ pipeline: check: image: friendicaci/php-cs commands: - - export CHANGED_FILES="$(git diff --name-status ${CI_PREV_COMMIT_SHA}..${CI_COMMIT_SHA} | grep ^A | cut -f2)" + - if [ ! -z "$${CI_COMMIT_PULL_REQUEST}" ]; then + git fetch --no-tags origin ${CI_COMMIT_TARGET_BRANCH}; + export CHANGED_FILES="$(git diff --name-status $(git merge-base FETCH_HEAD origin/${CI_COMMIT_TARGET_BRANCH})..${CI_COMMIT_SHA} | grep ^A | cut -f2)"; + else + export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep ^A | cut -f2)"; + fi - /check-php-cs.sh diff --git a/.woodpecker/.license_check.yml b/.woodpecker/.license_check.yml index a22c6067e..777986544 100644 --- a/.woodpecker/.license_check.yml +++ b/.woodpecker/.license_check.yml @@ -2,5 +2,10 @@ pipeline: check: image: friendicaci/php-cs commands: - - export CHANGED_FILES="$(git diff --name-status ${CI_PREV_COMMIT_SHA}..${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)" + - if [ ! -z "$${CI_COMMIT_PULL_REQUEST}" ]; then + git fetch --no-tags origin ${CI_COMMIT_TARGET_BRANCH}; + export CHANGED_FILES="$(git diff --name-status $(git merge-base FETCH_HEAD origin/${CI_COMMIT_TARGET_BRANCH})..${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)"; + else + export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)"; + fi - /check-license.sh From f6c240c062ae5e05ff924c19d189f1c9cbdb39f9 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 6 Jan 2022 23:08:00 +0100 Subject: [PATCH 3/5] Fix intended failure ;-) --- tests/src/Module/Special/OptionsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Module/Special/OptionsTest.php b/tests/src/Module/Special/OptionsTest.php index c61949aa1..62ad1b3de 100644 --- a/tests/src/Module/Special/OptionsTest.php +++ b/tests/src/Module/Special/OptionsTest.php @@ -1,6 +1,6 @@ Date: Fri, 7 Jan 2022 00:13:00 +0100 Subject: [PATCH 4/5] Fix all license header & be less aggressive --- mod/fbrowser.php | 17 +++++++++++++++++ mods/license/license_php.template | 1 - src/Console/Test.php | 2 +- .../Entity/LocalRelationship.php | 2 +- src/Factory/Api/Twitter/DirectMessage.php | 2 +- src/Module/Admin/Blocklist/Server/Add.php | 2 +- src/Module/Admin/Blocklist/Server/Index.php | 2 +- .../Api/Friendica/DirectMessages/Search.php | 2 +- src/Module/Api/Friendica/Events/Index.php | 2 +- src/Module/Api/Friendica/Group/Update.php | 2 +- src/Module/Api/Friendica/Index.php | 2 +- src/Module/Api/Twitter/DirectMessages/All.php | 2 +- .../Twitter/DirectMessages/Conversation.php | 2 +- .../Api/Twitter/DirectMessages/Destroy.php | 2 +- .../Api/Twitter/DirectMessages/Inbox.php | 2 +- .../Api/Twitter/DirectMessages/NewDM.php | 2 +- src/Module/Api/Twitter/DirectMessages/Sent.php | 2 +- .../Api/Twitter/DirectMessagesEndpoint.php | 2 +- src/Module/Contact/Conversations.php | 2 +- src/Module/Contact/Profile.php | 2 +- src/Module/Contact/Revoke.php | 2 +- src/Module/Settings/UserExport.php | 2 +- .../Factory/FormattedNotification.php | 2 +- .../Capability/ICanSendHttpRequests.php | 2 +- src/Network/HTTPClient/Client/HttpClient.php | 2 +- src/Object/Api/Friendica/Notification.php | 2 +- src/Object/Api/Twitter/DirectMessage.php | 2 +- src/Security/ExAuth.php | 18 +++++++++++++++++- 28 files changed, 59 insertions(+), 27 deletions(-) diff --git a/mod/fbrowser.php b/mod/fbrowser.php index 9bd7793e4..d918021cf 100644 --- a/mod/fbrowser.php +++ b/mod/fbrowser.php @@ -1,5 +1,22 @@ . + * * @package Friendica\modules * @subpackage FileBrowser * @author Fabio Comuni diff --git a/mods/license/license_php.template b/mods/license/license_php.template index 1e1f8f309..f77cf62e7 100644 --- a/mods/license/license_php.template +++ b/mods/license/license_php.template @@ -17,4 +17,3 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * - */ diff --git a/src/Console/Test.php b/src/Console/Test.php index 86a317d8a..062e386f0 100644 --- a/src/Console/Test.php +++ b/src/Console/Test.php @@ -2,7 +2,7 @@ /** * @copyright Copyright (C) 2010-2022, the Friendica project * - * @license GNU AGPL version 3 or any later version + * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/Contact/LocalRelationship/Entity/LocalRelationship.php b/src/Contact/LocalRelationship/Entity/LocalRelationship.php index 502630dfc..7c47412ce 100644 --- a/src/Contact/LocalRelationship/Entity/LocalRelationship.php +++ b/src/Contact/LocalRelationship/Entity/LocalRelationship.php @@ -2,7 +2,7 @@ /** * @copyright Copyright (C) 2010-2022, the Friendica project * - * @license GNU AGPL version 3 or any later version + * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/Factory/Api/Twitter/DirectMessage.php b/src/Factory/Api/Twitter/DirectMessage.php index 07d3367b0..2599e557f 100644 --- a/src/Factory/Api/Twitter/DirectMessage.php +++ b/src/Factory/Api/Twitter/DirectMessage.php @@ -1,6 +1,6 @@ . + * * ejabberd extauth script for the integration with friendica * * Originally written for joomla by Dalibor Karlovic From c3be0537427a736a81bc22948c08f1633a0a038d Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 7 Jan 2022 00:30:59 +0100 Subject: [PATCH 5/5] Add license header to various tests --- tests/FixtureTest.php | 17 ++++++++++++++++ tests/Util/AppDouble.php | 19 ++++++++++++++++++ tests/Util/AuthTestConfig.php | 19 ++++++++++++++++++ tests/Util/CollectionDouble.php | 19 ++++++++++++++++++ tests/Util/EmailerSpy.php | 19 ++++++++++++++++++ tests/Util/EntityDouble.php | 19 ++++++++++++++++++ tests/Util/HookMockTrait.php | 19 ++++++++++++++++++ tests/legacy/ApiTest.php | 17 ++++++++++++++++ tests/src/CollectionTest.php | 19 ++++++++++++++++++ .../Factory/FriendSuggestTest.php | 19 ++++++++++++++++++ .../Introduction/Factory/IntroductionTest.php | 19 ++++++++++++++++++ tests/src/Content/SmiliesTest.php | 17 ++++++++++++++++ .../Core/Worker/Repository/ProcessTest.php | 19 ++++++++++++++++++ tests/src/Database/DBATest.php | 20 +++++++++++++++++++ .../Factory/Api/Twitter/ActivitiesTest.php | 19 ++++++++++++++++++ .../Factory/Api/Twitter/DirectMessageTest.php | 19 ++++++++++++++++++ tests/src/Factory/Api/Twitter/StatusTest.php | 19 ++++++++++++++++++ tests/src/Factory/Api/Twitter/UserTest.php | 19 ++++++++++++++++++ tests/src/Model/Post/MediaTest.php | 19 ++++++++++++++++++ tests/src/Module/Api/ApiResponseTest.php | 19 ++++++++++++++++++ .../Friendica/DirectMessages/SearchTest.php | 2 +- .../Api/GnuSocial/GnuSocial/ConfigTest.php | 19 ++++++++++++++++++ .../Api/GnuSocial/GnuSocial/VersionTest.php | 19 ++++++++++++++++++ .../Module/Api/GnuSocial/Help/TestTest.php | 19 ++++++++++++++++++ .../Api/Mastodon/Accounts/StatusesTest.php | 19 ++++++++++++++++++ .../Accounts/VerifyCredentialsTest.php | 19 ++++++++++++++++++ .../Module/Api/Mastodon/ConversationsTest.php | 19 ++++++++++++++++++ tests/src/Module/Api/Mastodon/SearchTest.php | 19 ++++++++++++++++++ .../Api/Mastodon/Timelines/HomeTest.php | 19 ++++++++++++++++++ .../Mastodon/Timelines/PublicTimelineTest.php | 19 ++++++++++++++++++ .../Twitter/Account/RateLimitStatusTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Account/UpdateProfileTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/Blocks/ListsTest.php | 19 ++++++++++++++++++ .../Api/Twitter/DirectMessages/AllTest.php | 20 ++++++++++++++++++- .../DirectMessages/ConversationTest.php | 19 ++++++++++++++++++ .../Twitter/DirectMessages/DestroyTest.php | 19 ++++++++++++++++++ .../Api/Twitter/DirectMessages/InboxTest.php | 19 ++++++++++++++++++ .../Api/Twitter/DirectMessages/NewDMTest.php | 19 ++++++++++++++++++ .../Api/Twitter/DirectMessages/SentTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Favorites/CreateTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Favorites/DestroyTest.php | 19 ++++++++++++++++++ .../src/Module/Api/Twitter/FavoritesTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Followers/ListsTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/Friends/ListsTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Friendships/IncomingTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/Lists/StatusesTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/Media/UploadTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/SavedSearchesTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Statuses/DestroyTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Statuses/MentionsTest.php | 19 ++++++++++++++++++ .../Statuses/NetworkPublicTimelineTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Statuses/RetweetTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/Statuses/ShowTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Statuses/UpdateTest.php | 19 ++++++++++++++++++ .../Api/Twitter/Statuses/UserTimelineTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/Users/LookupTest.php | 19 ++++++++++++++++++ .../Module/Api/Twitter/Users/SearchTest.php | 19 ++++++++++++++++++ .../src/Module/Api/Twitter/Users/ShowTest.php | 19 ++++++++++++++++++ tests/src/Module/BaseApiTest.php | 19 ++++++++++++++++++ tests/src/Module/NodeInfoTest.php | 19 ++++++++++++++++++ .../HTTPClient/Client/HTTPClientTest.php | 19 ++++++++++++++++++ tests/src/Network/ProbeTest.php | 19 ++++++++++++++++++ .../ProfileField/Entity/ProfileFieldTest.php | 19 ++++++++++++++++++ .../Repository/ProfileFieldTest.php | 19 ++++++++++++++++++ .../Protocol/ActivityPub/ProcessorTest.php | 19 ++++++++++++++++++ .../Entity/PermissionSetTest.php | 19 ++++++++++++++++++ .../Factory/PermissionSetTest.php | 19 ++++++++++++++++++ .../Repository/PermissionSetTest.php | 19 ++++++++++++++++++ .../TwoFactor/Factory/TrustedBrowserTest.php | 19 ++++++++++++++++++ .../TwoFactor/Model/TrustedBrowserTest.php | 19 ++++++++++++++++++ tests/src/Util/BasePathTest.php | 20 +++++++++++++++++++ tests/src/Util/BaseURLTest.php | 20 +++++++++++++++++++ tests/src/Util/EMailerTest.php | 19 ++++++++++++++++++ tests/src/Util/ImagesTest.php | 19 ++++++++++++++++++ .../Router/FriendicaGroupCountBasedTest.php | 19 ++++++++++++++++++ 75 files changed, 1404 insertions(+), 2 deletions(-) diff --git a/tests/FixtureTest.php b/tests/FixtureTest.php index 4b7deb022..94b6a35b7 100644 --- a/tests/FixtureTest.php +++ b/tests/FixtureTest.php @@ -1,5 +1,22 @@ . + * * FixtureTest class. */ diff --git a/tests/Util/AppDouble.php b/tests/Util/AppDouble.php index dc9f635c3..1288ec68b 100644 --- a/tests/Util/AppDouble.php +++ b/tests/Util/AppDouble.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/AuthTestConfig.php b/tests/Util/AuthTestConfig.php index ad2592d07..fa29191d9 100644 --- a/tests/Util/AuthTestConfig.php +++ b/tests/Util/AuthTestConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/CollectionDouble.php b/tests/Util/CollectionDouble.php index ed5e371e4..d29f088d2 100644 --- a/tests/Util/CollectionDouble.php +++ b/tests/Util/CollectionDouble.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/EmailerSpy.php b/tests/Util/EmailerSpy.php index 161e0f0db..b0dbbd863 100644 --- a/tests/Util/EmailerSpy.php +++ b/tests/Util/EmailerSpy.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/EntityDouble.php b/tests/Util/EntityDouble.php index 414e96dc9..603462387 100644 --- a/tests/Util/EntityDouble.php +++ b/tests/Util/EntityDouble.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/HookMockTrait.php b/tests/Util/HookMockTrait.php index fbc95aa9a..bcaa9f106 100644 --- a/tests/Util/HookMockTrait.php +++ b/tests/Util/HookMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index aade6f437..075459d0e 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -1,5 +1,22 @@ . + * * ApiTest class. */ diff --git a/tests/src/CollectionTest.php b/tests/src/CollectionTest.php index 9e198c985..a02916ef4 100644 --- a/tests/src/CollectionTest.php +++ b/tests/src/CollectionTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src; diff --git a/tests/src/Contact/FriendSuggest/Factory/FriendSuggestTest.php b/tests/src/Contact/FriendSuggest/Factory/FriendSuggestTest.php index 575a29a60..a764b5341 100644 --- a/tests/src/Contact/FriendSuggest/Factory/FriendSuggestTest.php +++ b/tests/src/Contact/FriendSuggest/Factory/FriendSuggestTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Contact\FriendSuggest\Factory; diff --git a/tests/src/Contact/Introduction/Factory/IntroductionTest.php b/tests/src/Contact/Introduction/Factory/IntroductionTest.php index e5efd03dd..6ed11c99c 100644 --- a/tests/src/Contact/Introduction/Factory/IntroductionTest.php +++ b/tests/src/Contact/Introduction/Factory/IntroductionTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Contact\Introduction\Factory; diff --git a/tests/src/Content/SmiliesTest.php b/tests/src/Content/SmiliesTest.php index 74d18912f..690c701fe 100644 --- a/tests/src/Content/SmiliesTest.php +++ b/tests/src/Content/SmiliesTest.php @@ -1,5 +1,22 @@ . + * * Created by PhpStorm. * User: benlo * Date: 25/03/19 diff --git a/tests/src/Core/Worker/Repository/ProcessTest.php b/tests/src/Core/Worker/Repository/ProcessTest.php index be7b87a69..db6763c5a 100644 --- a/tests/src/Core/Worker/Repository/ProcessTest.php +++ b/tests/src/Core/Worker/Repository/ProcessTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Worker\Repository; diff --git a/tests/src/Database/DBATest.php b/tests/src/Database/DBATest.php index b5dbf2f2c..c92133ac5 100644 --- a/tests/src/Database/DBATest.php +++ b/tests/src/Database/DBATest.php @@ -1,4 +1,24 @@ . + * + */ + namespace Friendica\Test\src\Database; use Dice\Dice; diff --git a/tests/src/Factory/Api/Twitter/ActivitiesTest.php b/tests/src/Factory/Api/Twitter/ActivitiesTest.php index b468bdd1e..349537468 100644 --- a/tests/src/Factory/Api/Twitter/ActivitiesTest.php +++ b/tests/src/Factory/Api/Twitter/ActivitiesTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Factory\Api\Twitter; diff --git a/tests/src/Factory/Api/Twitter/DirectMessageTest.php b/tests/src/Factory/Api/Twitter/DirectMessageTest.php index 8ba821c76..ec8a0aa66 100644 --- a/tests/src/Factory/Api/Twitter/DirectMessageTest.php +++ b/tests/src/Factory/Api/Twitter/DirectMessageTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Factory\Api\Twitter; diff --git a/tests/src/Factory/Api/Twitter/StatusTest.php b/tests/src/Factory/Api/Twitter/StatusTest.php index a2d9d7171..337fab086 100644 --- a/tests/src/Factory/Api/Twitter/StatusTest.php +++ b/tests/src/Factory/Api/Twitter/StatusTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Factory\Api\Twitter; diff --git a/tests/src/Factory/Api/Twitter/UserTest.php b/tests/src/Factory/Api/Twitter/UserTest.php index 9a279ee7f..4425f83ad 100644 --- a/tests/src/Factory/Api/Twitter/UserTest.php +++ b/tests/src/Factory/Api/Twitter/UserTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Factory\Api\Twitter; diff --git a/tests/src/Model/Post/MediaTest.php b/tests/src/Model/Post/MediaTest.php index ee675524b..b8aabec37 100644 --- a/tests/src/Model/Post/MediaTest.php +++ b/tests/src/Model/Post/MediaTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Model\Post; diff --git a/tests/src/Module/Api/ApiResponseTest.php b/tests/src/Module/Api/ApiResponseTest.php index 33239caf2..00ec15a9b 100644 --- a/tests/src/Module/Api/ApiResponseTest.php +++ b/tests/src/Module/Api/ApiResponseTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api; diff --git a/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php b/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php index 346697eb5..09845a99b 100644 --- a/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php +++ b/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php @@ -1,6 +1,6 @@ . + * + */ namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial; diff --git a/tests/src/Module/Api/GnuSocial/GnuSocial/VersionTest.php b/tests/src/Module/Api/GnuSocial/GnuSocial/VersionTest.php index 7d98e365c..175aaabda 100644 --- a/tests/src/Module/Api/GnuSocial/GnuSocial/VersionTest.php +++ b/tests/src/Module/Api/GnuSocial/GnuSocial/VersionTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial; diff --git a/tests/src/Module/Api/GnuSocial/Help/TestTest.php b/tests/src/Module/Api/GnuSocial/Help/TestTest.php index 4c9e0c169..be0e187a6 100644 --- a/tests/src/Module/Api/GnuSocial/Help/TestTest.php +++ b/tests/src/Module/Api/GnuSocial/Help/TestTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\GnuSocial\Help; diff --git a/tests/src/Module/Api/Mastodon/Accounts/StatusesTest.php b/tests/src/Module/Api/Mastodon/Accounts/StatusesTest.php index 297c92bae..f905f488a 100644 --- a/tests/src/Module/Api/Mastodon/Accounts/StatusesTest.php +++ b/tests/src/Module/Api/Mastodon/Accounts/StatusesTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Mastodon\Accounts; diff --git a/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php b/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php index c7c3dabec..5d3e33d13 100644 --- a/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php +++ b/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Mastodon\Accounts; diff --git a/tests/src/Module/Api/Mastodon/ConversationsTest.php b/tests/src/Module/Api/Mastodon/ConversationsTest.php index e645cb8dd..a36a84293 100644 --- a/tests/src/Module/Api/Mastodon/ConversationsTest.php +++ b/tests/src/Module/Api/Mastodon/ConversationsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Mastodon; diff --git a/tests/src/Module/Api/Mastodon/SearchTest.php b/tests/src/Module/Api/Mastodon/SearchTest.php index caa0ed976..c25b83fbf 100644 --- a/tests/src/Module/Api/Mastodon/SearchTest.php +++ b/tests/src/Module/Api/Mastodon/SearchTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Mastodon; diff --git a/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php b/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php index b25cee378..4518215ad 100644 --- a/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php +++ b/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Mastodon\Timelines; diff --git a/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php b/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php index a75c2f111..a96ea4947 100644 --- a/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php +++ b/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Mastodon\Timelines; diff --git a/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php b/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php index 3552179e1..8d928b3ee 100644 --- a/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php +++ b/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Account; diff --git a/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php b/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php index bdcd54f0c..d3c8f9302 100644 --- a/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php +++ b/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Account; diff --git a/tests/src/Module/Api/Twitter/Blocks/ListsTest.php b/tests/src/Module/Api/Twitter/Blocks/ListsTest.php index be7d48ab5..1212a3f8e 100644 --- a/tests/src/Module/Api/Twitter/Blocks/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Blocks/ListsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Blocks; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/AllTest.php b/tests/src/Module/Api/Twitter/DirectMessages/AllTest.php index a721fdb5c..666299cc6 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/AllTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/AllTest.php @@ -1,8 +1,26 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\DirectMessages\All; use Friendica\Factory\Api\Twitter\DirectMessage; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php b/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php index c10fdde03..e895845aa 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/DestroyTest.php b/tests/src/Module/Api/Twitter/DirectMessages/DestroyTest.php index dadd556e4..b9317190b 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/DestroyTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/DestroyTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php b/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php index 9219bd6a8..cee1450cf 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/NewDMTest.php b/tests/src/Module/Api/Twitter/DirectMessages/NewDMTest.php index 9d7ab8ce7..b2bcfb37f 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/NewDMTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/NewDMTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php b/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php index 2d02d37d5..9c498af5f 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; diff --git a/tests/src/Module/Api/Twitter/Favorites/CreateTest.php b/tests/src/Module/Api/Twitter/Favorites/CreateTest.php index 640023883..61e235700 100644 --- a/tests/src/Module/Api/Twitter/Favorites/CreateTest.php +++ b/tests/src/Module/Api/Twitter/Favorites/CreateTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Favorites; diff --git a/tests/src/Module/Api/Twitter/Favorites/DestroyTest.php b/tests/src/Module/Api/Twitter/Favorites/DestroyTest.php index 9b61e095d..bb7b54ee4 100644 --- a/tests/src/Module/Api/Twitter/Favorites/DestroyTest.php +++ b/tests/src/Module/Api/Twitter/Favorites/DestroyTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Favorites; diff --git a/tests/src/Module/Api/Twitter/FavoritesTest.php b/tests/src/Module/Api/Twitter/FavoritesTest.php index 34ba77e8c..6da92e667 100644 --- a/tests/src/Module/Api/Twitter/FavoritesTest.php +++ b/tests/src/Module/Api/Twitter/FavoritesTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter; diff --git a/tests/src/Module/Api/Twitter/Followers/ListsTest.php b/tests/src/Module/Api/Twitter/Followers/ListsTest.php index 9c8110dfe..02e274549 100644 --- a/tests/src/Module/Api/Twitter/Followers/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Followers/ListsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Followers; diff --git a/tests/src/Module/Api/Twitter/Friends/ListsTest.php b/tests/src/Module/Api/Twitter/Friends/ListsTest.php index 2088f4893..07fdc891f 100644 --- a/tests/src/Module/Api/Twitter/Friends/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Friends/ListsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Friends; diff --git a/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php b/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php index d0bf1ef21..89a296b06 100644 --- a/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php +++ b/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Friendships; diff --git a/tests/src/Module/Api/Twitter/Lists/StatusesTest.php b/tests/src/Module/Api/Twitter/Lists/StatusesTest.php index e2fc82648..1f9226b84 100644 --- a/tests/src/Module/Api/Twitter/Lists/StatusesTest.php +++ b/tests/src/Module/Api/Twitter/Lists/StatusesTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Lists; diff --git a/tests/src/Module/Api/Twitter/Media/UploadTest.php b/tests/src/Module/Api/Twitter/Media/UploadTest.php index 74be1b993..7d6497191 100644 --- a/tests/src/Module/Api/Twitter/Media/UploadTest.php +++ b/tests/src/Module/Api/Twitter/Media/UploadTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Media; diff --git a/tests/src/Module/Api/Twitter/SavedSearchesTest.php b/tests/src/Module/Api/Twitter/SavedSearchesTest.php index 667caf98c..1d6e140bd 100644 --- a/tests/src/Module/Api/Twitter/SavedSearchesTest.php +++ b/tests/src/Module/Api/Twitter/SavedSearchesTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter; diff --git a/tests/src/Module/Api/Twitter/Statuses/DestroyTest.php b/tests/src/Module/Api/Twitter/Statuses/DestroyTest.php index be37ddf40..68ec195ce 100644 --- a/tests/src/Module/Api/Twitter/Statuses/DestroyTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/DestroyTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; diff --git a/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php b/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php index 5c72f4e13..0bb694528 100644 --- a/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; diff --git a/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php b/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php index d5c5fb739..a09cd44d1 100644 --- a/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; diff --git a/tests/src/Module/Api/Twitter/Statuses/RetweetTest.php b/tests/src/Module/Api/Twitter/Statuses/RetweetTest.php index 2f9944aab..f2c99baa8 100644 --- a/tests/src/Module/Api/Twitter/Statuses/RetweetTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/RetweetTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; diff --git a/tests/src/Module/Api/Twitter/Statuses/ShowTest.php b/tests/src/Module/Api/Twitter/Statuses/ShowTest.php index e114c0955..656aa5e91 100644 --- a/tests/src/Module/Api/Twitter/Statuses/ShowTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/ShowTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; diff --git a/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php b/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php index a42862731..92ca0702e 100644 --- a/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/UpdateTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; diff --git a/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php b/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php index 416bbe657..6ad57c247 100644 --- a/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; diff --git a/tests/src/Module/Api/Twitter/Users/LookupTest.php b/tests/src/Module/Api/Twitter/Users/LookupTest.php index fcff8b00e..9b5134fd8 100644 --- a/tests/src/Module/Api/Twitter/Users/LookupTest.php +++ b/tests/src/Module/Api/Twitter/Users/LookupTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Users; diff --git a/tests/src/Module/Api/Twitter/Users/SearchTest.php b/tests/src/Module/Api/Twitter/Users/SearchTest.php index 2260aba43..903bbe9fd 100644 --- a/tests/src/Module/Api/Twitter/Users/SearchTest.php +++ b/tests/src/Module/Api/Twitter/Users/SearchTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Users; diff --git a/tests/src/Module/Api/Twitter/Users/ShowTest.php b/tests/src/Module/Api/Twitter/Users/ShowTest.php index 5e1812dd0..703ad4f6c 100644 --- a/tests/src/Module/Api/Twitter/Users/ShowTest.php +++ b/tests/src/Module/Api/Twitter/Users/ShowTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Api\Twitter\Users; diff --git a/tests/src/Module/BaseApiTest.php b/tests/src/Module/BaseApiTest.php index 6e9fbaf1a..b01628bd0 100644 --- a/tests/src/Module/BaseApiTest.php +++ b/tests/src/Module/BaseApiTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module; diff --git a/tests/src/Module/NodeInfoTest.php b/tests/src/Module/NodeInfoTest.php index b80057e17..ac3916faf 100644 --- a/tests/src/Module/NodeInfoTest.php +++ b/tests/src/Module/NodeInfoTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module; diff --git a/tests/src/Network/HTTPClient/Client/HTTPClientTest.php b/tests/src/Network/HTTPClient/Client/HTTPClientTest.php index 0e2c0b3e3..a6a873c83 100644 --- a/tests/src/Network/HTTPClient/Client/HTTPClientTest.php +++ b/tests/src/Network/HTTPClient/Client/HTTPClientTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Network\HTTPClient\Client; diff --git a/tests/src/Network/ProbeTest.php b/tests/src/Network/ProbeTest.php index 3b6b2e3a1..ba177ef84 100644 --- a/tests/src/Network/ProbeTest.php +++ b/tests/src/Network/ProbeTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Network; diff --git a/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php b/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php index 9e89c9c54..665baf295 100644 --- a/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php +++ b/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Profile\ProfileField\Entity; diff --git a/tests/src/Profile/ProfileField/Repository/ProfileFieldTest.php b/tests/src/Profile/ProfileField/Repository/ProfileFieldTest.php index 0da41f51c..553b94723 100644 --- a/tests/src/Profile/ProfileField/Repository/ProfileFieldTest.php +++ b/tests/src/Profile/ProfileField/Repository/ProfileFieldTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Profile\ProfileField\Repository; diff --git a/tests/src/Protocol/ActivityPub/ProcessorTest.php b/tests/src/Protocol/ActivityPub/ProcessorTest.php index eeed1a34f..a6fa02be9 100644 --- a/tests/src/Protocol/ActivityPub/ProcessorTest.php +++ b/tests/src/Protocol/ActivityPub/ProcessorTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Protocol\ActivityPub; diff --git a/tests/src/Security/PermissionSet/Entity/PermissionSetTest.php b/tests/src/Security/PermissionSet/Entity/PermissionSetTest.php index e404694d4..b73bc5c8c 100644 --- a/tests/src/Security/PermissionSet/Entity/PermissionSetTest.php +++ b/tests/src/Security/PermissionSet/Entity/PermissionSetTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Security\PermissionSet\Entity; diff --git a/tests/src/Security/PermissionSet/Factory/PermissionSetTest.php b/tests/src/Security/PermissionSet/Factory/PermissionSetTest.php index 1cb1c16ad..a21e3ef8f 100644 --- a/tests/src/Security/PermissionSet/Factory/PermissionSetTest.php +++ b/tests/src/Security/PermissionSet/Factory/PermissionSetTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Security\PermissionSet\Factory; diff --git a/tests/src/Security/PermissionSet/Repository/PermissionSetTest.php b/tests/src/Security/PermissionSet/Repository/PermissionSetTest.php index 250a61bf3..eb6098be8 100644 --- a/tests/src/Security/PermissionSet/Repository/PermissionSetTest.php +++ b/tests/src/Security/PermissionSet/Repository/PermissionSetTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Security\PermissionSet\Repository; diff --git a/tests/src/Security/TwoFactor/Factory/TrustedBrowserTest.php b/tests/src/Security/TwoFactor/Factory/TrustedBrowserTest.php index ca29e13a1..84a118eb8 100644 --- a/tests/src/Security/TwoFactor/Factory/TrustedBrowserTest.php +++ b/tests/src/Security/TwoFactor/Factory/TrustedBrowserTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Security\TwoFactor\Factory; diff --git a/tests/src/Security/TwoFactor/Model/TrustedBrowserTest.php b/tests/src/Security/TwoFactor/Model/TrustedBrowserTest.php index eae7f580f..0c91ea5e5 100644 --- a/tests/src/Security/TwoFactor/Model/TrustedBrowserTest.php +++ b/tests/src/Security/TwoFactor/Model/TrustedBrowserTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Security\TwoFactor\Model; diff --git a/tests/src/Util/BasePathTest.php b/tests/src/Util/BasePathTest.php index 7cdf612e6..3d233896a 100644 --- a/tests/src/Util/BasePathTest.php +++ b/tests/src/Util/BasePathTest.php @@ -1,4 +1,24 @@ . + * + */ + namespace Friendica\Test\src\Util; use Friendica\Test\MockedTest; diff --git a/tests/src/Util/BaseURLTest.php b/tests/src/Util/BaseURLTest.php index 4c15f440d..0702f88b4 100644 --- a/tests/src/Util/BaseURLTest.php +++ b/tests/src/Util/BaseURLTest.php @@ -1,4 +1,24 @@ . + * + */ + namespace Friendica\Test\src\Util; use Friendica\App\BaseURL; diff --git a/tests/src/Util/EMailerTest.php b/tests/src/Util/EMailerTest.php index ec10ee089..8ede0fc77 100644 --- a/tests/src/Util/EMailerTest.php +++ b/tests/src/Util/EMailerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util; diff --git a/tests/src/Util/ImagesTest.php b/tests/src/Util/ImagesTest.php index 4bbdba87b..8e2881aa6 100644 --- a/tests/src/Util/ImagesTest.php +++ b/tests/src/Util/ImagesTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util; diff --git a/tests/src/Util/Router/FriendicaGroupCountBasedTest.php b/tests/src/Util/Router/FriendicaGroupCountBasedTest.php index 62bf0d243..114082e71 100644 --- a/tests/src/Util/Router/FriendicaGroupCountBasedTest.php +++ b/tests/src/Util/Router/FriendicaGroupCountBasedTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Router;