diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php index 13dc6eeba..930fa853c 100755 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -1,6 +1,23 @@ #!/usr/bin/env php . + * * ejabberd extauth script for the integration with friendica * * Originally written for joomla by Dalibor Karlovic diff --git a/bin/console.php b/bin/console.php index a6513a2e8..27522d855 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,5 +1,24 @@ #!/usr/bin/env php . + * + */ use Dice\Dice; use Psr\Log\LoggerInterface; diff --git a/bin/daemon.php b/bin/daemon.php index 8ba85033c..c2ce05c8e 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -1,7 +1,23 @@ #!/usr/bin/env php . + * * Run the worker from a daemon. * * This script was taken from http://php.net/manual/en/function.pcntl-fork.php diff --git a/bin/testargs.php b/bin/testargs.php index a0ddea345..b7d7125f7 100644 --- a/bin/testargs.php +++ b/bin/testargs.php @@ -1,10 +1,22 @@ . * - * Purpose: * During installation we need to check if register_argc_argv is * enabled for the command line PHP processor, because otherwise * deliveries will fail. So we will do a shell exec of php and diff --git a/bin/wait-for-connection b/bin/wait-for-connection index e73a98b07..b6c03a670 100755 --- a/bin/wait-for-connection +++ b/bin/wait-for-connection @@ -1,8 +1,23 @@ #!/usr/bin/php - . + * * This script tries to connect to a database for a given interval * Useful in case of installation e.g. to wait for the database to not generate unnecessary errors * diff --git a/bin/worker.php b/bin/worker.php index 106c9b81f..1b70a2095 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -1,7 +1,23 @@ #!/usr/bin/env php . + * * Starts the background processing */ diff --git a/boot.php b/boot.php index cd6e3bda8..eab34611e 100644 --- a/boot.php +++ b/boot.php @@ -1,11 +1,21 @@ . * * Friendica is a communications platform for integrated social communications * utilising decentralised communications and linkage to several indie social diff --git a/include/api.php b/include/api.php index dda4631ce..567e3cc43 100644 --- a/include/api.php +++ b/include/api.php @@ -1,5 +1,22 @@ . + * * Friendica implementation of statusnet/twitter API * * @file include/api.php diff --git a/include/conversation.php b/include/conversation.php index a58848476..370796257 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/include/dba.php b/include/dba.php index a90ec26fb..5f633afaa 100644 --- a/include/dba.php +++ b/include/dba.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\Database\DBA; diff --git a/include/enotify.php b/include/enotify.php index 5874dcbed..8b244230b 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -1,6 +1,22 @@ . + * */ use Friendica\Content\Text\BBCode; diff --git a/include/items.php b/include/items.php index 2230c93c7..f4bab4b8f 100644 --- a/include/items.php +++ b/include/items.php @@ -1,6 +1,22 @@ . + * */ use Friendica\Core\Hook; diff --git a/index.php b/index.php index 7a6e26b42..4857b1f12 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,22 @@ . + * */ use Dice\Dice; diff --git a/mod/api.php b/mod/api.php index 8114d2786..47a809497 100644 --- a/mod/api.php +++ b/mod/api.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/cal.php b/mod/cal.php index 9e32b87d6..ff8969888 100644 --- a/mod/cal.php +++ b/mod/cal.php @@ -1,6 +1,22 @@ . + * * The calendar module * * This calendar is for profile visitors and contains only the events diff --git a/mod/common.php b/mod/common.php index 7e1dcc185..436d8bb55 100644 --- a/mod/common.php +++ b/mod/common.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/community.php b/mod/community.php index 61922ef88..7aa00240b 100644 --- a/mod/community.php +++ b/mod/community.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index a8544ca7d..c191d3e17 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -1,9 +1,23 @@ . + * + * Friendship acceptance for DFRN contacts * * There are two possible entry points and three scenarios. * diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index a08fe1b48..2e1f51a11 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -1,8 +1,24 @@ . + * * The dfrn notify endpoint + * * @see PDF with dfrn specs: https://github.com/friendica/friendica/blob/master/spec/dfrn2.pdf */ diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index bc0100bfa..14221c7e6 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -1,7 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index fd57dcf9c..0be8403c2 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -1,11 +1,23 @@ . + * + *Handles communication associated with the issuance of friend requests. * * @see PDF with dfrn specs: https://github.com/friendica/friendica/blob/master/spec/dfrn2.pdf * You also find a graphic which describes the confirmation process at diff --git a/mod/display.php b/mod/display.php index 6784a20c4..ea52a994b 100644 --- a/mod/display.php +++ b/mod/display.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/editpost.php b/mod/editpost.php index ca5db3e08..aa8930e5d 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/events.php b/mod/events.php index ffe67f67f..6c5c274ea 100644 --- a/mod/events.php +++ b/mod/events.php @@ -1,6 +1,22 @@ . + * * The events module */ diff --git a/mod/follow.php b/mod/follow.php index c62c03775..36eea5719 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\App; use Friendica\Core\Protocol; use Friendica\Core\Renderer; diff --git a/mod/item.php b/mod/item.php index 69b5f52cd..636bd8c31 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1,9 +1,22 @@ . + * * This is the POST destination for most all locally posted * text stuff. This function handles status, wall-to-wall status, * local comments, and remote coments that are posted on this site diff --git a/mod/lockview.php b/mod/lockview.php index e3382bddb..d3eceb4e0 100644 --- a/mod/lockview.php +++ b/mod/lockview.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\App; use Friendica\Core\Hook; use Friendica\Database\DBA; diff --git a/mod/lostpass.php b/mod/lostpass.php index 51aee56df..2ce396e36 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -1,7 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/match.php b/mod/match.php index b262bfd11..471d52ef6 100644 --- a/mod/match.php +++ b/mod/match.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/message.php b/mod/message.php index bba530ca5..e871e22e3 100644 --- a/mod/message.php +++ b/mod/message.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/msearch.php b/mod/msearch.php index 958477600..48476da4f 100644 --- a/mod/msearch.php +++ b/mod/msearch.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Database\DBA; diff --git a/mod/network.php b/mod/network.php index 1bbddf219..1f7afebf3 100644 --- a/mod/network.php +++ b/mod/network.php @@ -1,7 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/notes.php b/mod/notes.php index 38a72a741..ccd30926c 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/oexchange.php b/mod/oexchange.php index 3eb13460d..97367c3ea 100644 --- a/mod/oexchange.php +++ b/mod/oexchange.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\App; use Friendica\Core\Renderer; use Friendica\DI; diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index e5a3f1e9b..bdf362e1c 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/parse_url.php b/mod/parse_url.php index 1329d4e01..b40ddf1d7 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -1,8 +1,21 @@ . * * This module does parse an url for embeddable content (audio, video, image files or link) * information and does format this information to BBCode diff --git a/mod/photos.php b/mod/photos.php index 0733bbc96..b7ba79c2f 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/ping.php b/mod/ping.php index f91a1753c..3057fb9e3 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/poco.php b/mod/poco.php index d8941e51a..b306f2bf7 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -1,8 +1,24 @@ . + * + * @see https://web.archive.org/web/20160405005550/http://portablecontacts.net/draft-spec.html + */ use Friendica\App; use Friendica\Content\Text\BBCode; diff --git a/mod/pubsub.php b/mod/pubsub.php index 31c0634dc..cae346493 100644 --- a/mod/pubsub.php +++ b/mod/pubsub.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Core\Logger; diff --git a/mod/pubsubhubbub.php b/mod/pubsubhubbub.php index 2ffaaf729..3d6b48fd4 100644 --- a/mod/pubsubhubbub.php +++ b/mod/pubsubhubbub.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Core\Logger; diff --git a/mod/redir.php b/mod/redir.php index 1d36065e9..56cb13a06 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Core\Logger; diff --git a/mod/regmod.php b/mod/regmod.php index ed030723d..df1020b9f 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/removeme.php b/mod/removeme.php index e8615feb7..ee0a4c275 100644 --- a/mod/removeme.php +++ b/mod/removeme.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/repair_ostatus.php b/mod/repair_ostatus.php index b4c6a9cbd..6ceba8055 100644 --- a/mod/repair_ostatus.php +++ b/mod/repair_ostatus.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/salmon.php b/mod/salmon.php index c7b25a665..6eea57f6a 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/settings.php b/mod/settings.php index ddb3fb76c..6fc8c8b1e 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/share.php b/mod/share.php index 6f368b1d1..998ebe5fd 100644 --- a/mod/share.php +++ b/mod/share.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Database\DBA; diff --git a/mod/subthread.php b/mod/subthread.php index f689eca9d..96400b0dd 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/suggest.php b/mod/suggest.php index 77f75f8b8..5fb9bdcff 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/tagger.php b/mod/tagger.php index 568b5fd54..a6f35cea1 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/tagrm.php b/mod/tagrm.php index aae4f9ed3..2fa75133c 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/uimport.php b/mod/uimport.php index a727e13df..eb99a366f 100644 --- a/mod/uimport.php +++ b/mod/uimport.php @@ -1,6 +1,22 @@ . + * * View for user import */ diff --git a/mod/unfollow.php b/mod/unfollow.php index 0d13c73af..e4d456d28 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/update_community.php b/mod/update_community.php index c861b750e..8a12142eb 100644 --- a/mod/update_community.php +++ b/mod/update_community.php @@ -1,6 +1,24 @@ . + * + * See update_profile.php for documentation + */ use Friendica\App; use Friendica\DI; diff --git a/mod/update_contact.php b/mod/update_contact.php index bd9ced0e9..768ff0c74 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -1,6 +1,25 @@ . + * + * See update_profile.php for documentation + * + */ use Friendica\App; use Friendica\DI; diff --git a/mod/update_display.php b/mod/update_display.php index b8f3d8f49..73fd915e4 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -1,6 +1,22 @@ . + * * See update_profile.php for documentation */ diff --git a/mod/update_network.php b/mod/update_network.php index 9aa0443f1..d6b77aedb 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -1,6 +1,22 @@ . + * * See update_profile.php for documentation */ diff --git a/mod/update_notes.php b/mod/update_notes.php index 4065b5d1f..87822f513 100644 --- a/mod/update_notes.php +++ b/mod/update_notes.php @@ -1,8 +1,23 @@ . + * + * AJAX synchronisation of notes page */ use Friendica\App; diff --git a/mod/videos.php b/mod/videos.php index 36ddef681..0fd99bdf4 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/wall_attach.php b/mod/wall_attach.php index bb5128137..c02a06c37 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; diff --git a/mod/wall_upload.php b/mod/wall_upload.php index b7504bede..fd33cdd17 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -1,11 +1,28 @@ . + * * Module for uploading a picture to the profile wall * * By default the picture will be stored in the photo album with the name Wall Photos. * You can specify a different album by adding an optional query string "album=" * to the url + * */ use Friendica\App; diff --git a/mod/wallmessage.php b/mod/wallmessage.php index 085201fc4..e5b482a65 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\App; use Friendica\Core\Logger; use Friendica\Core\Renderer; diff --git a/mods/fpostit/fpostit.php b/mods/fpostit/fpostit.php index 3a2f0d15f..ad4a53c92 100644 --- a/mods/fpostit/fpostit.php +++ b/mods/fpostit/fpostit.php @@ -1,4 +1,23 @@ . + * + */ if (($_POST["friendica_acct_name"] != '') && ($_POST["friendica_password"] != '')) { setcookie("username", $_POST["friendica_acct_name"], time()+60*60*24*300); diff --git a/src/App.php b/src/App.php index 892a4c779..9b6f6a5a2 100644 --- a/src/App.php +++ b/src/App.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica; use Exception; @@ -25,9 +42,6 @@ use Friendica\Util\Strings; use Psr\Log\LoggerInterface; /** - * - * class: App - * * Our main application structure for the life of this page. * * Primarily deals with the URL that got us here diff --git a/src/BaseCollection.php b/src/BaseCollection.php index 9a9efdb06..5b35653fd 100644 --- a/src/BaseCollection.php +++ b/src/BaseCollection.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/BaseEntity.php b/src/BaseEntity.php index 14f95c197..1ea3f8a16 100644 --- a/src/BaseEntity.php +++ b/src/BaseEntity.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/BaseFactory.php b/src/BaseFactory.php index cfd6f9e71..6868dfeef 100644 --- a/src/BaseFactory.php +++ b/src/BaseFactory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/BaseModel.php b/src/BaseModel.php index 2c952888b..8f9370bb0 100644 --- a/src/BaseModel.php +++ b/src/BaseModel.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/BaseModule.php b/src/BaseModule.php index 96ec2e9f1..1dbf3f38d 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/BaseRepository.php b/src/BaseRepository.php index cce1c50c1..64a0d1c51 100644 --- a/src/BaseRepository.php +++ b/src/BaseRepository.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/Collection/Api/Mastodon/Emojis.php b/src/Collection/Api/Mastodon/Emojis.php index 235b3dfbb..589760851 100644 --- a/src/Collection/Api/Mastodon/Emojis.php +++ b/src/Collection/Api/Mastodon/Emojis.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection\Api\Mastodon; diff --git a/src/Collection/Api/Mastodon/Fields.php b/src/Collection/Api/Mastodon/Fields.php index 2bc549dd7..6a2deac2f 100644 --- a/src/Collection/Api/Mastodon/Fields.php +++ b/src/Collection/Api/Mastodon/Fields.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection\Api\Mastodon; diff --git a/src/Collection/Api/Notifications.php b/src/Collection/Api/Notifications.php index 5bd8983ce..6aec6ef97 100644 --- a/src/Collection/Api/Notifications.php +++ b/src/Collection/Api/Notifications.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection\Api; diff --git a/src/Collection/FSuggests.php b/src/Collection/FSuggests.php index 4ab51b648..546e07ab1 100644 --- a/src/Collection/FSuggests.php +++ b/src/Collection/FSuggests.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection; diff --git a/src/Collection/Introductions.php b/src/Collection/Introductions.php index b0d31d4f1..eff6da043 100644 --- a/src/Collection/Introductions.php +++ b/src/Collection/Introductions.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection; diff --git a/src/Collection/Notifies.php b/src/Collection/Notifies.php index 0d64ee7e6..d4ce5d9f3 100644 --- a/src/Collection/Notifies.php +++ b/src/Collection/Notifies.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection; diff --git a/src/Collection/PermissionSets.php b/src/Collection/PermissionSets.php index 7511d046f..bfcce6ad5 100644 --- a/src/Collection/PermissionSets.php +++ b/src/Collection/PermissionSets.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection; diff --git a/src/Collection/ProfileFields.php b/src/Collection/ProfileFields.php index 16c267621..57e0375dc 100644 --- a/src/Collection/ProfileFields.php +++ b/src/Collection/ProfileFields.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Collection; diff --git a/src/Console/ArchiveContact.php b/src/Console/ArchiveContact.php index 78064a1ba..c6fcd7c1a 100644 --- a/src/Console/ArchiveContact.php +++ b/src/Console/ArchiveContact.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; diff --git a/src/Console/AutomaticInstallation.php b/src/Console/AutomaticInstallation.php index a8e32b498..37ba2dc13 100644 --- a/src/Console/AutomaticInstallation.php +++ b/src/Console/AutomaticInstallation.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; diff --git a/src/Console/Cache.php b/src/Console/Cache.php index 3a40941c1..c087aae6d 100644 --- a/src/Console/Cache.php +++ b/src/Console/Cache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -14,8 +33,6 @@ use RuntimeException; * With this script you can access the cache of your node from the CLI. * You can read current values stored in the cache and set new values * in cache keys. - * - * @author Hypolite Petovan */ class Cache extends \Asika\SimpleConsole\Console { diff --git a/src/Console/Config.php b/src/Console/Config.php index 510312322..831ea9e9c 100644 --- a/src/Console/Config.php +++ b/src/Console/Config.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -27,9 +46,6 @@ use RuntimeException; * If you specify three parameters, the named configuration setting will be * set to the value of the last parameter. (e.g. "system loglevel 0" will * disable logging) - * - * @author Tobias Diekershoff - * @author Hypolite Petovan */ class Config extends \Asika\SimpleConsole\Console { diff --git a/src/Console/CreateDoxygen.php b/src/Console/CreateDoxygen.php index ec8805f5f..a4c565e32 100644 --- a/src/Console/CreateDoxygen.php +++ b/src/Console/CreateDoxygen.php @@ -1,11 +1,28 @@ . + * + */ namespace Friendica\Console; /** * Description of CreateDoxygen - * - * @author Hypolite Petovan */ class CreateDoxygen extends \Asika\SimpleConsole\Console { diff --git a/src/Console/DatabaseStructure.php b/src/Console/DatabaseStructure.php index d7de1f3d0..62c813640 100644 --- a/src/Console/DatabaseStructure.php +++ b/src/Console/DatabaseStructure.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -10,8 +29,6 @@ use RuntimeException; /** * Performs database updates from the command line - * - * @author Hypolite Petovan */ class DatabaseStructure extends \Asika\SimpleConsole\Console { diff --git a/src/Console/DocBloxErrorChecker.php b/src/Console/DocBloxErrorChecker.php index 88c08666c..c2fe5059e 100644 --- a/src/Console/DocBloxErrorChecker.php +++ b/src/Console/DocBloxErrorChecker.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -22,9 +41,6 @@ use Friendica\App; * After that, the script tries to remove a file from the list. It tests if the list breaks and if so, it * assumes that the file it removed belongs to the set of erroneous files. * This is done for all files, so, in the end removing one file leads to a working doc build. - * - * @author Alexander Kampmann - * @author Hypolite Petovan */ class DocBloxErrorChecker extends \Asika\SimpleConsole\Console { diff --git a/src/Console/Extract.php b/src/Console/Extract.php index 628d2596e..daa14d00e 100644 --- a/src/Console/Extract.php +++ b/src/Console/Extract.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -7,8 +26,6 @@ namespace Friendica\Console; * to Transifex for translation. * * Outputs a PHP file with language strings used by Friendica - * - * @author Hypolite Petovan */ class Extract extends \Asika\SimpleConsole\Console { diff --git a/src/Console/GlobalCommunityBlock.php b/src/Console/GlobalCommunityBlock.php index 42fa165dc..385503faa 100644 --- a/src/Console/GlobalCommunityBlock.php +++ b/src/Console/GlobalCommunityBlock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -11,11 +30,6 @@ use Friendica\Model\Contact; * * With this tool, you can block an account in such a way, that no postings * or comments this account writes are accepted to the node. - * - * License: AGPLv3 or later, same as Friendica - * - * @author Tobias Diekershoff - * @author Hypolite Petovan */ class GlobalCommunityBlock extends \Asika\SimpleConsole\Console { diff --git a/src/Console/GlobalCommunitySilence.php b/src/Console/GlobalCommunitySilence.php index f944fcbe2..bb381d99a 100644 --- a/src/Console/GlobalCommunitySilence.php +++ b/src/Console/GlobalCommunitySilence.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -14,11 +33,6 @@ use RuntimeException; * Postings from silenced accounts will not be displayed on the community * page. This silencing does only affect the display on the community page, * accounts following the silenced accounts will still get their postings. - * - * License: AGPLv3 or later, same as Friendica - * - * @author Tobias Diekershoff - * @author Hypolite Petovan */ class GlobalCommunitySilence extends \Asika\SimpleConsole\Console { diff --git a/src/Console/Lock.php b/src/Console/Lock.php index 2ab383c1e..d64580037 100644 --- a/src/Console/Lock.php +++ b/src/Console/Lock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -12,8 +31,6 @@ use RuntimeException; * * With this script you can access the locks of your node from the CLI. * You can read current locks and set/remove locks. - * - * @author Philipp Holzer , Hypolite Petovan */ class Lock extends \Asika\SimpleConsole\Console { diff --git a/src/Console/Maintenance.php b/src/Console/Maintenance.php index dd20a727e..494104496 100644 --- a/src/Console/Maintenance.php +++ b/src/Console/Maintenance.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -7,8 +26,6 @@ use Friendica\Core\Config\IConfig; /** * Sets maintenance mode for this node - * - * @author Hypolite Petovan */ class Maintenance extends \Asika\SimpleConsole\Console { diff --git a/src/Console/NewPassword.php b/src/Console/NewPassword.php index bf5a1b7e1..118428866 100644 --- a/src/Console/NewPassword.php +++ b/src/Console/NewPassword.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -12,10 +31,6 @@ use RuntimeException; * tool to set a new password for a user * * With this tool, you can set a new password for a user - * - * License: AGPLv3 or later, same as Friendica - * - * @author Michael Vogel */ class NewPassword extends \Asika\SimpleConsole\Console { diff --git a/src/Console/PhpToPo.php b/src/Console/PhpToPo.php index b88ef023e..5e286d470 100644 --- a/src/Console/PhpToPo.php +++ b/src/Console/PhpToPo.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -6,8 +25,6 @@ use Friendica\App; /** * Read a strings.php file and create messages.po in the same directory - * - * @author Hypolite Petovan */ class PhpToPo extends \Asika\SimpleConsole\Console { diff --git a/src/Console/PoToPhp.php b/src/Console/PoToPhp.php index c4ba42ccc..85dc28cf4 100644 --- a/src/Console/PoToPhp.php +++ b/src/Console/PoToPhp.php @@ -1,11 +1,28 @@ . + * + */ namespace Friendica\Console; /** * Read a messages.po file and create strings.php in the same directory - * - * @author Hypolite Petovan */ class PoToPhp extends \Asika\SimpleConsole\Console { diff --git a/src/Console/PostUpdate.php b/src/Console/PostUpdate.php index 71c5001d7..5cff05a69 100644 --- a/src/Console/PostUpdate.php +++ b/src/Console/PostUpdate.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -9,11 +28,6 @@ use Friendica\Core\Update; /** * Performs database post updates - * - * License: AGPLv3 or later, same as Friendica - * - * @author Tobias Diekershoff - * @author Hypolite Petovan */ class PostUpdate extends \Asika\SimpleConsole\Console { diff --git a/src/Console/ServerBlock.php b/src/Console/ServerBlock.php index 517b506a1..ada4f2213 100644 --- a/src/Console/ServerBlock.php +++ b/src/Console/ServerBlock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; diff --git a/src/Console/Storage.php b/src/Console/Storage.php index 30a7fc713..09e062049 100644 --- a/src/Console/Storage.php +++ b/src/Console/Storage.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -7,7 +26,6 @@ use Friendica\Core\StorageManager; /** * tool to manage storage backend and stored data from CLI - * */ class Storage extends \Asika\SimpleConsole\Console { diff --git a/src/Console/Typo.php b/src/Console/Typo.php index eed0a3181..8935a86c1 100644 --- a/src/Console/Typo.php +++ b/src/Console/Typo.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -7,8 +26,6 @@ use Friendica\Core\Config\IConfig; /** * Tired of chasing typos and finding them after a commit. * Run this and quickly see if we've got any parse errors in our application files. - * - * @author Hypolite Petovan */ class Typo extends \Asika\SimpleConsole\Console { diff --git a/src/Content/ContactSelector.php b/src/Content/ContactSelector.php index 38227bc6e..c834f8c51 100644 --- a/src/Content/ContactSelector.php +++ b/src/Content/ContactSelector.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Content; use Friendica\Core\Hook; diff --git a/src/Content/Feature.php b/src/Content/Feature.php index 59eea1637..880a6706b 100644 --- a/src/Content/Feature.php +++ b/src/Content/Feature.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Content; use Friendica\Core\Hook; diff --git a/src/Content/ForumManager.php b/src/Content/ForumManager.php index ce945aa1d..7d3cb89a7 100644 --- a/src/Content/ForumManager.php +++ b/src/Content/ForumManager.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Content; use Friendica\Content\Text\HTML; diff --git a/src/Content/Item.php b/src/Content/Item.php index 6769a1293..51a14435e 100644 --- a/src/Content/Item.php +++ b/src/Content/Item.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Content; @@ -7,7 +26,7 @@ use Friendica\Model\FileTag; /** * A content helper class for displaying items */ -final class Item +class Item { /** * Return array with details for categories and folders for an item diff --git a/src/Content/Nav.php b/src/Content/Nav.php index cbca1314a..37bf08175 100644 --- a/src/Content/Nav.php +++ b/src/Content/Nav.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Content; use Friendica\App; diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 14253b490..db467a263 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Content; use DOMDocument; @@ -28,8 +44,6 @@ use Friendica\Util\Strings; * third party sites * * @see https://oembed.com - * - * @author Hypolite Petovan */ class OEmbed { diff --git a/src/Content/Pager.php b/src/Content/Pager.php index 800aa760e..badc8af4e 100644 --- a/src/Content/Pager.php +++ b/src/Content/Pager.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Content; @@ -8,8 +27,6 @@ use Friendica\Util\Strings; /** * The Pager has two very different output, Minimal and Full, see renderMinimal() and renderFull() for more details. - * - * @author Hypolite Petovan */ class Pager { diff --git a/src/Content/Smilies.php b/src/Content/Smilies.php index 7a42f9ba4..5ce4b5f53 100644 --- a/src/Content/Smilies.php +++ b/src/Content/Smilies.php @@ -1,17 +1,24 @@ . * - * Have also a look here: - * https://www.webpagefx.com/tools/emoji-cheat-sheet/ */ + namespace Friendica\Content; use Friendica\Core\Hook; diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index f8b9fb298..1c1a1b266 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Content\Text; diff --git a/src/Content/Text/BBCode/Video.php b/src/Content/Text/BBCode/Video.php index b73ddce0b..82d4e60c1 100644 --- a/src/Content/Text/BBCode/Video.php +++ b/src/Content/Text/BBCode/Video.php @@ -1,11 +1,30 @@ . + * + */ namespace Friendica\Content\Text\BBCode; /** * Video specific BBCode util class */ -final class Video +class Video { /** * Transforms video BBCode tagged links to youtube/vimeo tagged links diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index bae0cb854..089c5d368 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Content\Text; diff --git a/src/Content/Text/Markdown.php b/src/Content/Text/Markdown.php index 16a2ce307..bcbf5191a 100644 --- a/src/Content/Text/Markdown.php +++ b/src/Content/Text/Markdown.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Content\Text; @@ -12,8 +27,6 @@ use Friendica\Model\Contact; /** * Friendica-specific usage of Markdown - * - * @author Hypolite Petovan */ class Markdown { diff --git a/src/Content/Text/MarkdownParser.php b/src/Content/Text/MarkdownParser.php index fa1d166ec..43870cd36 100644 --- a/src/Content/Text/MarkdownParser.php +++ b/src/Content/Text/MarkdownParser.php @@ -1,18 +1,38 @@ -. + * + */ + +namespace Friendica\Content\Text; + +use Friendica\Util\Strings; +use Michelf\MarkdownExtra; + +class MarkdownParser extends MarkdownExtra +{ + protected function doAutoLinks($text) + { + $text = parent::doAutoLinks($text); + + $text = preg_replace_callback(Strings::autoLinkRegEx(), + array($this, '_doAutoLinks_url_callback'), $text); + + return $text; + } } \ No newline at end of file diff --git a/src/Content/Text/Plaintext.php b/src/Content/Text/Plaintext.php index 2ec76ba13..d5c5ea9ce 100644 --- a/src/Content/Text/Plaintext.php +++ b/src/Content/Text/Plaintext.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Content\Text; class Plaintext diff --git a/src/Content/Widget.php b/src/Content/Widget.php index c3ec88fc9..8c72f68f4 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Content; use Friendica\Core\Addon; diff --git a/src/Content/Widget/CalendarExport.php b/src/Content/Widget/CalendarExport.php index 693be2d6f..dda3513fe 100644 --- a/src/Content/Widget/CalendarExport.php +++ b/src/Content/Widget/CalendarExport.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Content\Widget; diff --git a/src/Content/Widget/ContactBlock.php b/src/Content/Widget/ContactBlock.php index bce4b617f..47fac09a8 100644 --- a/src/Content/Widget/ContactBlock.php +++ b/src/Content/Widget/ContactBlock.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Content\Widget; diff --git a/src/Content/Widget/SavedSearches.php b/src/Content/Widget/SavedSearches.php index ebfc78ca7..355f41f73 100644 --- a/src/Content/Widget/SavedSearches.php +++ b/src/Content/Widget/SavedSearches.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Content\Widget; diff --git a/src/Content/Widget/TagCloud.php b/src/Content/Widget/TagCloud.php index f57d5c3f2..006aef916 100644 --- a/src/Content/Widget/TagCloud.php +++ b/src/Content/Widget/TagCloud.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Content\Widget; diff --git a/src/Content/Widget/TrendingTags.php b/src/Content/Widget/TrendingTags.php index 102a4f14c..9f935e6de 100644 --- a/src/Content/Widget/TrendingTags.php +++ b/src/Content/Widget/TrendingTags.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Content\Widget; diff --git a/src/Core/ACL.php b/src/Core/ACL.php index b60421877..1c32759cf 100644 --- a/src/Core/ACL.php +++ b/src/Core/ACL.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Core; @@ -14,8 +29,6 @@ use Friendica\Model\Group; /** * Handle ACL management and display - * - * @author Hypolite Petovan */ class ACL { diff --git a/src/Core/Addon.php b/src/Core/Addon.php index 5f1865b55..be4e94152 100644 --- a/src/Core/Addon.php +++ b/src/Core/Addon.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Core; diff --git a/src/Core/BaseCache.php b/src/Core/BaseCache.php index 76f0c783b..4c97d768d 100644 --- a/src/Core/BaseCache.php +++ b/src/Core/BaseCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/BaseConfig.php b/src/Core/BaseConfig.php index 744e5cc49..2c64f525a 100644 --- a/src/Core/BaseConfig.php +++ b/src/Core/BaseConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/BaseLock.php b/src/Core/BaseLock.php index 2fcf7cad7..065dee4b2 100644 --- a/src/Core/BaseLock.php +++ b/src/Core/BaseLock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/BasePConfig.php b/src/Core/BasePConfig.php index 97eca70f7..858dae4a1 100644 --- a/src/Core/BasePConfig.php +++ b/src/Core/BasePConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/Cache/APCuCache.php b/src/Core/Cache/APCuCache.php index a85afbb25..fd198ca30 100644 --- a/src/Core/Cache/APCuCache.php +++ b/src/Core/Cache/APCuCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -7,8 +26,6 @@ use Friendica\Core\BaseCache; /** * APCu Cache. - * - * @author Philipp Holzer */ class APCuCache extends BaseCache implements IMemoryCache { diff --git a/src/Core/Cache/ArrayCache.php b/src/Core/Cache/ArrayCache.php index 25b96595f..01157f7f8 100644 --- a/src/Core/Cache/ArrayCache.php +++ b/src/Core/Cache/ArrayCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -6,10 +25,6 @@ use Friendica\Core\BaseCache; /** * Implementation of the IMemoryCache mainly for testing purpose - * - * Class ArrayCache - * - * @package Friendica\Core\Cache */ class ArrayCache extends BaseCache implements IMemoryCache { diff --git a/src/Core/Cache/DatabaseCache.php b/src/Core/Cache/DatabaseCache.php index d06b74c16..c2909b4ea 100644 --- a/src/Core/Cache/DatabaseCache.php +++ b/src/Core/Cache/DatabaseCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -8,8 +27,6 @@ use Friendica\Core\BaseCache; /** * Database Cache - * - * @author Hypolite Petovan */ class DatabaseCache extends BaseCache implements ICache { diff --git a/src/Core/Cache/Duration.php b/src/Core/Cache/Duration.php index c5276f373..b83b55b94 100644 --- a/src/Core/Cache/Duration.php +++ b/src/Core/Cache/Duration.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; diff --git a/src/Core/Cache/ICache.php b/src/Core/Cache/ICache.php index f83669a96..5984409bc 100644 --- a/src/Core/Cache/ICache.php +++ b/src/Core/Cache/ICache.php @@ -1,11 +1,28 @@ . + * + */ namespace Friendica\Core\Cache; /** * Cache Interface - * - * @author Hypolite Petovan */ interface ICache { diff --git a/src/Core/Cache/IMemoryCache.php b/src/Core/Cache/IMemoryCache.php index 3e78a23c2..8348dffbc 100644 --- a/src/Core/Cache/IMemoryCache.php +++ b/src/Core/Cache/IMemoryCache.php @@ -1,13 +1,28 @@ . + * + */ namespace Friendica\Core\Cache; /** * This interface defines methods for Memory-Caches only - * - * Interface IMemoryCache - * - * @package Friendica\Core\Cache */ interface IMemoryCache extends ICache { diff --git a/src/Core/Cache/MemcacheCache.php b/src/Core/Cache/MemcacheCache.php index e3232a564..b6d93bf80 100644 --- a/src/Core/Cache/MemcacheCache.php +++ b/src/Core/Cache/MemcacheCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -9,8 +28,6 @@ use Memcache; /** * Memcache Cache - * - * @author Hypolite Petovan */ class MemcacheCache extends BaseCache implements IMemoryCache { diff --git a/src/Core/Cache/MemcachedCache.php b/src/Core/Cache/MemcachedCache.php index 26dd59381..d8fcbc770 100644 --- a/src/Core/Cache/MemcachedCache.php +++ b/src/Core/Cache/MemcachedCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -10,8 +29,6 @@ use Psr\Log\LoggerInterface; /** * Memcached Cache - * - * @author Hypolite Petovan */ class MemcachedCache extends BaseCache implements IMemoryCache { diff --git a/src/Core/Cache/ProfilerCache.php b/src/Core/Cache/ProfilerCache.php index 1976d111f..1f77db67a 100644 --- a/src/Core/Cache/ProfilerCache.php +++ b/src/Core/Cache/ProfilerCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; diff --git a/src/Core/Cache/RedisCache.php b/src/Core/Cache/RedisCache.php index cd4821598..9a982fe04 100644 --- a/src/Core/Cache/RedisCache.php +++ b/src/Core/Cache/RedisCache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -9,9 +28,6 @@ use Redis; /** * Redis Cache. This driver is based on Memcache driver - * - * @author Hypolite Petovan - * @author Roland Haeder */ class RedisCache extends BaseCache implements IMemoryCache { diff --git a/src/Core/Cache/TraitCompareDelete.php b/src/Core/Cache/TraitCompareDelete.php index 13dcaec8d..508a2c866 100644 --- a/src/Core/Cache/TraitCompareDelete.php +++ b/src/Core/Cache/TraitCompareDelete.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -6,8 +25,6 @@ namespace Friendica\Core\Cache; * Trait TraitCompareSetDelete * * This Trait is to compensate non native "exclusive" sets/deletes in caches - * - * @package Friendica\Core\Cache */ trait TraitCompareDelete { diff --git a/src/Core/Cache/TraitCompareSet.php b/src/Core/Cache/TraitCompareSet.php index 0d1822650..ec192a891 100644 --- a/src/Core/Cache/TraitCompareSet.php +++ b/src/Core/Cache/TraitCompareSet.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; @@ -6,8 +25,6 @@ namespace Friendica\Core\Cache; * Trait TraitCompareSetDelete * * This Trait is to compensate non native "exclusive" sets/deletes in caches - * - * @package Friendica\Core\Cache */ trait TraitCompareSet { diff --git a/src/Core/Cache/TraitMemcacheCommand.php b/src/Core/Cache/TraitMemcacheCommand.php index 0bbab79b2..bec27e338 100644 --- a/src/Core/Cache/TraitMemcacheCommand.php +++ b/src/Core/Cache/TraitMemcacheCommand.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; diff --git a/src/Core/Cache/Type.php b/src/Core/Cache/Type.php index 213479686..73177f8c3 100644 --- a/src/Core/Cache/Type.php +++ b/src/Core/Cache/Type.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Cache; diff --git a/src/Core/Config/Cache.php b/src/Core/Config/Cache.php index a6cb8d9fb..b3fe9d4e0 100644 --- a/src/Core/Config/Cache.php +++ b/src/Core/Config/Cache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Config; diff --git a/src/Core/Config/IConfig.php b/src/Core/Config/IConfig.php index 75318c40c..0a8bbc43a 100644 --- a/src/Core/Config/IConfig.php +++ b/src/Core/Config/IConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Config; diff --git a/src/Core/Config/JitConfig.php b/src/Core/Config/JitConfig.php index 05b6a8a45..4cf0d06f3 100644 --- a/src/Core/Config/JitConfig.php +++ b/src/Core/Config/JitConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Config; diff --git a/src/Core/Config/PreloadConfig.php b/src/Core/Config/PreloadConfig.php index 5b8350cd7..c1181414b 100644 --- a/src/Core/Config/PreloadConfig.php +++ b/src/Core/Config/PreloadConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Config; diff --git a/src/Core/Console.php b/src/Core/Console.php index 16fc90c4e..70835db9c 100644 --- a/src/Core/Console.php +++ b/src/Core/Console.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; @@ -7,8 +26,6 @@ use Friendica; /** * Description of Console - * - * @author Hypolite Petovan */ class Console extends \Asika\SimpleConsole\Console { diff --git a/src/Core/Hook.php b/src/Core/Hook.php index f282d02c7..8fdadd666 100644 --- a/src/Core/Hook.php +++ b/src/Core/Hook.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Core; use Friendica\App; diff --git a/src/Core/Installer.php b/src/Core/Installer.php index b780776cc..31cdb26b9 100644 --- a/src/Core/Installer.php +++ b/src/Core/Installer.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Core; use DOMDocument; diff --git a/src/Core/L10n.php b/src/Core/L10n.php index 8354fc9df..cda83ac3f 100644 --- a/src/Core/L10n.php +++ b/src/Core/L10n.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/Lock/CacheLock.php b/src/Core/Lock/CacheLock.php index fd04bda80..81046b29c 100644 --- a/src/Core/Lock/CacheLock.php +++ b/src/Core/Lock/CacheLock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Lock; diff --git a/src/Core/Lock/DatabaseLock.php b/src/Core/Lock/DatabaseLock.php index df1b9295c..4936b0680 100644 --- a/src/Core/Lock/DatabaseLock.php +++ b/src/Core/Lock/DatabaseLock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Lock; diff --git a/src/Core/Lock/ILock.php b/src/Core/Lock/ILock.php index a1a3f13e7..4a54217a9 100644 --- a/src/Core/Lock/ILock.php +++ b/src/Core/Lock/ILock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Lock; @@ -6,8 +25,6 @@ use Friendica\Core\Cache\Duration; /** * Lock Interface - * - * @author Philipp Holzer */ interface ILock { diff --git a/src/Core/Lock/SemaphoreLock.php b/src/Core/Lock/SemaphoreLock.php index 86f106d56..25bc9aa1d 100644 --- a/src/Core/Lock/SemaphoreLock.php +++ b/src/Core/Lock/SemaphoreLock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Lock; diff --git a/src/Core/Lock/Type.php b/src/Core/Lock/Type.php index fdee39cab..1913de04c 100644 --- a/src/Core/Lock/Type.php +++ b/src/Core/Lock/Type.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Lock; diff --git a/src/Core/Logger.php b/src/Core/Logger.php index 05895bb89..8ff098302 100644 --- a/src/Core/Logger.php +++ b/src/Core/Logger.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Core; use Friendica\DI; diff --git a/src/Core/PConfig/Cache.php b/src/Core/PConfig/Cache.php index 5dc399e3a..30e7322ce 100644 --- a/src/Core/PConfig/Cache.php +++ b/src/Core/PConfig/Cache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\PConfig; diff --git a/src/Core/PConfig/IPConfig.php b/src/Core/PConfig/IPConfig.php index 61ad5141a..e73d1742f 100644 --- a/src/Core/PConfig/IPConfig.php +++ b/src/Core/PConfig/IPConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\PConfig; diff --git a/src/Core/PConfig/JitPConfig.php b/src/Core/PConfig/JitPConfig.php index 758183b83..9d4cd6937 100644 --- a/src/Core/PConfig/JitPConfig.php +++ b/src/Core/PConfig/JitPConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\PConfig; diff --git a/src/Core/PConfig/PreloadPConfig.php b/src/Core/PConfig/PreloadPConfig.php index e53fd9741..096a1dfdd 100644 --- a/src/Core/PConfig/PreloadPConfig.php +++ b/src/Core/PConfig/PreloadPConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\PConfig; diff --git a/src/Core/Process.php b/src/Core/Process.php index b0345b05b..fd6b17fe1 100644 --- a/src/Core/Process.php +++ b/src/Core/Process.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; @@ -15,7 +34,7 @@ use Psr\Log\LoggerInterface; * - Using an process-id per node * - Using memory locks for multi-node locking (redis, memcached, ..) */ -final class Process +class Process { /** * @var LoggerInterface diff --git a/src/Core/Protocol.php b/src/Core/Protocol.php index 4157127a4..e510f1868 100644 --- a/src/Core/Protocol.php +++ b/src/Core/Protocol.php @@ -1,15 +1,30 @@ . + * */ + namespace Friendica\Core; use Friendica\Util\Network; /** * Manage compatibility with federated networks - * - * @author Hypolite Petovan */ class Protocol { diff --git a/src/Core/Renderer.php b/src/Core/Renderer.php index eca22bdcd..98915e70f 100644 --- a/src/Core/Renderer.php +++ b/src/Core/Renderer.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Core; diff --git a/src/Core/Search.php b/src/Core/Search.php index 01c12fa92..841572374 100644 --- a/src/Core/Search.php +++ b/src/Core/Search.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/Session.php b/src/Core/Session.php index 0af4d344b..f08c68ed0 100644 --- a/src/Core/Session.php +++ b/src/Core/Session.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Core; use Friendica\Database\DBA; @@ -12,8 +28,6 @@ use Friendica\Util\Strings; /** * High-level Session service class - * - * @author Hypolite Petovan */ class Session { diff --git a/src/Core/Session/AbstractSession.php b/src/Core/Session/AbstractSession.php index 930e1b9ff..de7e98c0e 100644 --- a/src/Core/Session/AbstractSession.php +++ b/src/Core/Session/AbstractSession.php @@ -1,5 +1,23 @@ . + * + */ namespace Friendica\Core\Session; diff --git a/src/Core/Session/Handler/Cache.php b/src/Core/Session/Handler/Cache.php index 094f360d4..5aec68e63 100644 --- a/src/Core/Session/Handler/Cache.php +++ b/src/Core/Session/Handler/Cache.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Session\Handler; @@ -9,10 +28,8 @@ use SessionHandlerInterface; /** * SessionHandler using Friendica Cache - * - * @author Hypolite Petovan */ -final class Cache implements SessionHandlerInterface +class Cache implements SessionHandlerInterface { /** @var ICache */ private $cache; diff --git a/src/Core/Session/Handler/Database.php b/src/Core/Session/Handler/Database.php index e633c500e..3c2f9027a 100644 --- a/src/Core/Session/Handler/Database.php +++ b/src/Core/Session/Handler/Database.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Session\Handler; @@ -9,10 +28,8 @@ use SessionHandlerInterface; /** * SessionHandler using database - * - * @author Hypolite Petovan */ -final class Database implements SessionHandlerInterface +class Database implements SessionHandlerInterface { /** @var DBA */ private $dba; diff --git a/src/Core/Session/ISession.php b/src/Core/Session/ISession.php index dbc7fd85b..4fcc146e8 100644 --- a/src/Core/Session/ISession.php +++ b/src/Core/Session/ISession.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Session; diff --git a/src/Core/Session/Memory.php b/src/Core/Session/Memory.php index cc4ffd18a..dbe4555ad 100644 --- a/src/Core/Session/Memory.php +++ b/src/Core/Session/Memory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Session; @@ -7,7 +26,7 @@ namespace Friendica\Core\Session; * * @todo after replacing the last direct $_SESSION call, use a internal array instead of the global variable */ -final class Memory extends AbstractSession implements ISession +class Memory extends AbstractSession implements ISession { public function __construct() { diff --git a/src/Core/Session/Native.php b/src/Core/Session/Native.php index 3f10747dd..49550a27c 100644 --- a/src/Core/Session/Native.php +++ b/src/Core/Session/Native.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core\Session; @@ -9,7 +28,7 @@ use SessionHandlerInterface; /** * The native Session class which uses the PHP internal Session functions */ -final class Native extends AbstractSession implements ISession +class Native extends AbstractSession implements ISession { public function __construct(App\BaseURL $baseURL, SessionHandlerInterface $handler = null) { diff --git a/src/Core/StorageManager.php b/src/Core/StorageManager.php index 8d5df2d61..c8385783e 100644 --- a/src/Core/StorageManager.php +++ b/src/Core/StorageManager.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/System.php b/src/Core/System.php index b0cfe28be..f092427e5 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Core; use Friendica\DI; @@ -9,15 +26,8 @@ use Friendica\Network\HTTPException\InternalServerErrorException; use Friendica\Util\XML; /** - * @file include/Core/System.php - * * Contains the class with system relevant stuff */ - - -/** - * System methods - */ class System { /** diff --git a/src/Core/Theme.php b/src/Core/Theme.php index 76149b758..ff3265c90 100644 --- a/src/Core/Theme.php +++ b/src/Core/Theme.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Core; diff --git a/src/Core/Update.php b/src/Core/Update.php index 4db32ecfb..7a03b3769 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; diff --git a/src/Core/UserImport.php b/src/Core/UserImport.php index f09db9868..06ba6398a 100644 --- a/src/Core/UserImport.php +++ b/src/Core/UserImport.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Core; use Friendica\App; diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 562a17c0a..f41636bed 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Core; use Friendica\Core; @@ -12,14 +29,8 @@ use Friendica\Util\DateTimeFormat; use Friendica\Util\Network; /** - * @file src/Core/Worker.php - * * Contains the class for the worker background job processing */ - -/** - * Worker methods - */ class Worker { const STATE_STARTUP = 1; // Worker is in startup. This takes most time. diff --git a/src/DI.php b/src/DI.php index 430db8477..39efe2a97 100644 --- a/src/DI.php +++ b/src/DI.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/Database/DBA.php b/src/Database/DBA.php index f4d4bb11d..9c3c3a52e 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Database; @@ -10,8 +29,6 @@ use PDO; use PDOStatement; /** - * @class MySQL database class - * * This class is for the low level database stuff that does driver specific things. */ class DBA diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 686f0582c..06b652494 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Database; diff --git a/src/Database/Database.php b/src/Database/Database.php index 14e186a72..ff25e8b19 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Database; @@ -16,8 +35,6 @@ use PDOStatement; use Psr\Log\LoggerInterface; /** - * @class MySQL database class - * * This class is for the low level database stuff that does driver specific things. */ class Database diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 7fd28419e..cd7e8b946 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Database; use Friendica\Core\Logger; diff --git a/src/Factory/Api/Mastodon/Account.php b/src/Factory/Api/Mastodon/Account.php index a58f8941e..b0c31c09b 100644 --- a/src/Factory/Api/Mastodon/Account.php +++ b/src/Factory/Api/Mastodon/Account.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory\Api\Mastodon; diff --git a/src/Factory/Api/Mastodon/Emoji.php b/src/Factory/Api/Mastodon/Emoji.php index 42c500d42..a9b4bba54 100644 --- a/src/Factory/Api/Mastodon/Emoji.php +++ b/src/Factory/Api/Mastodon/Emoji.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory\Api\Mastodon; diff --git a/src/Factory/Api/Mastodon/Field.php b/src/Factory/Api/Mastodon/Field.php index 10bb2690f..6570ab884 100644 --- a/src/Factory/Api/Mastodon/Field.php +++ b/src/Factory/Api/Mastodon/Field.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory\Api\Mastodon; diff --git a/src/Factory/Api/Mastodon/FollowRequest.php b/src/Factory/Api/Mastodon/FollowRequest.php index e0125613a..5cd8c322c 100644 --- a/src/Factory/Api/Mastodon/FollowRequest.php +++ b/src/Factory/Api/Mastodon/FollowRequest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory\Api\Mastodon; diff --git a/src/Factory/Api/Mastodon/Relationship.php b/src/Factory/Api/Mastodon/Relationship.php index 121d57e2a..83bff09ac 100644 --- a/src/Factory/Api/Mastodon/Relationship.php +++ b/src/Factory/Api/Mastodon/Relationship.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory\Api\Mastodon; diff --git a/src/Factory/CacheFactory.php b/src/Factory/CacheFactory.php index 4dfda5f2c..3aeb5a53a 100644 --- a/src/Factory/CacheFactory.php +++ b/src/Factory/CacheFactory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory; diff --git a/src/Factory/ConfigFactory.php b/src/Factory/ConfigFactory.php index 578f3191c..954f89395 100644 --- a/src/Factory/ConfigFactory.php +++ b/src/Factory/ConfigFactory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory; diff --git a/src/Factory/LockFactory.php b/src/Factory/LockFactory.php index 6d739ea41..afdf5213c 100644 --- a/src/Factory/LockFactory.php +++ b/src/Factory/LockFactory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory; diff --git a/src/Factory/LoggerFactory.php b/src/Factory/LoggerFactory.php index b2450a966..d5e3d10c4 100644 --- a/src/Factory/LoggerFactory.php +++ b/src/Factory/LoggerFactory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory; diff --git a/src/Factory/Notification/Introduction.php b/src/Factory/Notification/Introduction.php index 7546792d5..bde73a7b0 100644 --- a/src/Factory/Notification/Introduction.php +++ b/src/Factory/Notification/Introduction.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory\Notification; diff --git a/src/Factory/Notification/Notification.php b/src/Factory/Notification/Notification.php index 399e6b0e7..990d274a0 100644 --- a/src/Factory/Notification/Notification.php +++ b/src/Factory/Notification/Notification.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory\Notification; diff --git a/src/Factory/SessionFactory.php b/src/Factory/SessionFactory.php index d4ad1e7ca..f513eef35 100644 --- a/src/Factory/SessionFactory.php +++ b/src/Factory/SessionFactory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Factory; diff --git a/src/LegacyModule.php b/src/LegacyModule.php index ecb21ebc5..a1c80b020 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; diff --git a/src/Model/APContact.php b/src/Model/APContact.php index dd27daf10..7ce47bb22 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/Attach.php b/src/Model/Attach.php index b5dd64e0c..8d91f90e9 100644 --- a/src/Model/Attach.php +++ b/src/Model/Attach.php @@ -1,9 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Core\System; diff --git a/src/Model/Config/Config.php b/src/Model/Config/Config.php index aa81f1cae..e059a42e9 100644 --- a/src/Model/Config/Config.php +++ b/src/Model/Config/Config.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\Config; diff --git a/src/Model/Config/DbaConfig.php b/src/Model/Config/DbaConfig.php index cd6b6da8c..87bc60041 100644 --- a/src/Model/Config/DbaConfig.php +++ b/src/Model/Config/DbaConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\Config; diff --git a/src/Model/Config/PConfig.php b/src/Model/Config/PConfig.php index 2d496af75..99a554680 100644 --- a/src/Model/Config/PConfig.php +++ b/src/Model/Config/PConfig.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\Config; diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 051f94d3e..3d3438955 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\App\BaseURL; diff --git a/src/Model/Conversation.php b/src/Model/Conversation.php index 78faaddf6..661cfcd6a 100644 --- a/src/Model/Conversation.php +++ b/src/Model/Conversation.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/Event.php b/src/Model/Event.php index 1f20482d5..b8d578bba 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/FSuggest.php b/src/Model/FSuggest.php index a910eb30c..37d88d191 100644 --- a/src/Model/FSuggest.php +++ b/src/Model/FSuggest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; diff --git a/src/Model/FileTag.php b/src/Model/FileTag.php index 9908c8a33..02eee8aed 100644 --- a/src/Model/FileTag.php +++ b/src/Model/FileTag.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 05f20ec5b..9a8472128 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Model; use DOMDocument; diff --git a/src/Model/GServer.php b/src/Model/GServer.php index d113f0ace..0f5f55ab6 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -1,9 +1,24 @@ . + * */ + namespace Friendica\Model; use DOMDocument; diff --git a/src/Model/Group.php b/src/Model/Group.php index 199ff1ebd..b4dbb87d8 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/Introduction.php b/src/Model/Introduction.php index 4233ad654..8b939aa2a 100644 --- a/src/Model/Introduction.php +++ b/src/Model/Introduction.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; diff --git a/src/Model/Item.php b/src/Model/Item.php index badf9281b..b960ba38f 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/ItemContent.php b/src/Model/ItemContent.php index 8805f5b25..c6d3e8294 100644 --- a/src/Model/ItemContent.php +++ b/src/Model/ItemContent.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/ItemDeliveryData.php b/src/Model/ItemDeliveryData.php index 3e2a75598..a26c80b1c 100644 --- a/src/Model/ItemDeliveryData.php +++ b/src/Model/ItemDeliveryData.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/ItemURI.php b/src/Model/ItemURI.php index a5054a803..265585be7 100644 --- a/src/Model/ItemURI.php +++ b/src/Model/ItemURI.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/Mail.php b/src/Model/Mail.php index 9735a795a..c0efe4f23 100644 --- a/src/Model/Mail.php +++ b/src/Model/Mail.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Core\Logger; diff --git a/src/Model/Nodeinfo.php b/src/Model/Nodeinfo.php index 7cde25953..d39641553 100644 --- a/src/Model/Nodeinfo.php +++ b/src/Model/Nodeinfo.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; diff --git a/src/Model/Notify.php b/src/Model/Notify.php index 336b82537..fe1497316 100644 --- a/src/Model/Notify.php +++ b/src/Model/Notify.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; diff --git a/src/Model/Notify/ObjectType.php b/src/Model/Notify/ObjectType.php index 9fb279adc..a6fba696d 100644 --- a/src/Model/Notify/ObjectType.php +++ b/src/Model/Notify/ObjectType.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\Notify; diff --git a/src/Model/Notify/Type.php b/src/Model/Notify/Type.php index aae5fedc0..5c244a6cb 100644 --- a/src/Model/Notify/Type.php +++ b/src/Model/Notify/Type.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\Notify; diff --git a/src/Model/OpenWebAuthToken.php b/src/Model/OpenWebAuthToken.php index 7b30d2eb0..cd80c3f62 100644 --- a/src/Model/OpenWebAuthToken.php +++ b/src/Model/OpenWebAuthToken.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Database\DBA; diff --git a/src/Model/PermissionSet.php b/src/Model/PermissionSet.php index 09ffc22bb..cc9650210 100644 --- a/src/Model/PermissionSet.php +++ b/src/Model/PermissionSet.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 804ae328e..ccb0f2add 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -1,9 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Core\Cache\Duration; diff --git a/src/Model/Process.php b/src/Model/Process.php index 9f72eeec9..265292968 100644 --- a/src/Model/Process.php +++ b/src/Model/Process.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Database\DBA; diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 28491fb5f..2cf260c2f 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\App; diff --git a/src/Model/ProfileField.php b/src/Model/ProfileField.php index e4192a980..180aae21c 100644 --- a/src/Model/ProfileField.php +++ b/src/Model/ProfileField.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; diff --git a/src/Model/PushSubscriber.php b/src/Model/PushSubscriber.php index 3707bbea6..2a7be3c35 100644 --- a/src/Model/PushSubscriber.php +++ b/src/Model/PushSubscriber.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Core\Logger; diff --git a/src/Model/Register.php b/src/Model/Register.php index 9f6d36974..fa8fb7bdb 100644 --- a/src/Model/Register.php +++ b/src/Model/Register.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model; @@ -12,8 +27,6 @@ use Friendica\Util\Strings; /** * Class interacting with the register database table - * - * @author Hypolite Petovan */ class Register { diff --git a/src/Model/Search.php b/src/Model/Search.php index 2c8349364..9e00bbe30 100644 --- a/src/Model/Search.php +++ b/src/Model/Search.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; diff --git a/src/Model/Storage/AbstractStorage.php b/src/Model/Storage/AbstractStorage.php index bcd8ee06a..b53bf2942 100644 --- a/src/Model/Storage/AbstractStorage.php +++ b/src/Model/Storage/AbstractStorage.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\Storage; diff --git a/src/Model/Storage/Database.php b/src/Model/Storage/Database.php index 77a075b98..c7eb3628c 100644 --- a/src/Model/Storage/Database.php +++ b/src/Model/Storage/Database.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model\Storage; diff --git a/src/Model/Storage/Filesystem.php b/src/Model/Storage/Filesystem.php index 3bb6809b2..ad9a4adf8 100644 --- a/src/Model/Storage/Filesystem.php +++ b/src/Model/Storage/Filesystem.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model\Storage; diff --git a/src/Model/Storage/IStorage.php b/src/Model/Storage/IStorage.php index 4c38e2207..3baae5beb 100644 --- a/src/Model/Storage/IStorage.php +++ b/src/Model/Storage/IStorage.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model\Storage; diff --git a/src/Model/Storage/StorageException.php b/src/Model/Storage/StorageException.php index f32843141..b63bee02e 100644 --- a/src/Model/Storage/StorageException.php +++ b/src/Model/Storage/StorageException.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model\Storage; diff --git a/src/Model/Storage/SystemResource.php b/src/Model/Storage/SystemResource.php index d9a6a5da7..56628ac59 100644 --- a/src/Model/Storage/SystemResource.php +++ b/src/Model/Storage/SystemResource.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model\Storage; diff --git a/src/Model/Term.php b/src/Model/Term.php index f4c7b9eee..6e92c9ce1 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Core\Cache\Duration; @@ -16,8 +33,6 @@ use Friendica\Util\Strings; * This Model class handles term table interactions. * This tables stores relevant terms related to posts, photos and searches, like hashtags, mentions and * user-applied categories. - * - * @package Friendica\Model */ class Term { diff --git a/src/Model/TwoFactor/AppSpecificPassword.php b/src/Model/TwoFactor/AppSpecificPassword.php index f1ea9af91..1e8d56f75 100644 --- a/src/Model/TwoFactor/AppSpecificPassword.php +++ b/src/Model/TwoFactor/AppSpecificPassword.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\TwoFactor; @@ -10,8 +29,6 @@ use PragmaRX\Random\Random; /** * Manages users' two-factor recovery hashed_passwords in the 2fa_app_specific_passwords table - * - * @package Friendica\Model */ class AppSpecificPassword { diff --git a/src/Model/TwoFactor/RecoveryCode.php b/src/Model/TwoFactor/RecoveryCode.php index 1690e04f9..2c3b71ad4 100644 --- a/src/Model/TwoFactor/RecoveryCode.php +++ b/src/Model/TwoFactor/RecoveryCode.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\TwoFactor; @@ -9,8 +28,6 @@ use PragmaRX\Recovery\Recovery; /** * Manages users' two-factor recovery codes in the 2fa_recovery_codes table - * - * @package Friendica\Model */ class RecoveryCode { diff --git a/src/Model/User.php b/src/Model/User.php index 7e2d37c40..4203a0ebc 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -1,8 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Model/User/Cookie.php b/src/Model/User/Cookie.php index ba6253c5c..cda814e69 100644 --- a/src/Model/User/Cookie.php +++ b/src/Model/User/Cookie.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model\User; diff --git a/src/Model/UserItem.php b/src/Model/UserItem.php index 43b0430ac..0b0a4d203 100644 --- a/src/Model/UserItem.php +++ b/src/Model/UserItem.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Model; diff --git a/src/Module/AccountManagementControlDocument.php b/src/Module/AccountManagementControlDocument.php index 8e7ee0243..e6035977f 100644 --- a/src/Module/AccountManagementControlDocument.php +++ b/src/Module/AccountManagementControlDocument.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Acctlink.php b/src/Module/Acctlink.php index a3577da32..bcd5e19f8 100644 --- a/src/Module/Acctlink.php +++ b/src/Module/Acctlink.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Admin/Addons/Details.php b/src/Module/Admin/Addons/Details.php index 94d31b65a..dba2f061c 100644 --- a/src/Module/Admin/Addons/Details.php +++ b/src/Module/Admin/Addons/Details.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Addons; diff --git a/src/Module/Admin/Addons/Index.php b/src/Module/Admin/Addons/Index.php index 74bd61b5f..3049cdc6a 100644 --- a/src/Module/Admin/Addons/Index.php +++ b/src/Module/Admin/Addons/Index.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Addons; diff --git a/src/Module/Admin/Blocklist/Contact.php b/src/Module/Admin/Blocklist/Contact.php index 871a7ea74..5d87139df 100644 --- a/src/Module/Admin/Blocklist/Contact.php +++ b/src/Module/Admin/Blocklist/Contact.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Blocklist; diff --git a/src/Module/Admin/Blocklist/Server.php b/src/Module/Admin/Blocklist/Server.php index 971b89047..d0c632b0b 100644 --- a/src/Module/Admin/Blocklist/Server.php +++ b/src/Module/Admin/Blocklist/Server.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Blocklist; diff --git a/src/Module/Admin/DBSync.php b/src/Module/Admin/DBSync.php index eb7c84c9b..8892c2969 100644 --- a/src/Module/Admin/DBSync.php +++ b/src/Module/Admin/DBSync.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Features.php b/src/Module/Admin/Features.php index 5e1c3df20..62136f423 100644 --- a/src/Module/Admin/Features.php +++ b/src/Module/Admin/Features.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Federation.php b/src/Module/Admin/Federation.php index f5e38f0d2..928a286b1 100644 --- a/src/Module/Admin/Federation.php +++ b/src/Module/Admin/Federation.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Item/Delete.php b/src/Module/Admin/Item/Delete.php index 424fef2b5..c98248e86 100644 --- a/src/Module/Admin/Item/Delete.php +++ b/src/Module/Admin/Item/Delete.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Item; diff --git a/src/Module/Admin/Item/Source.php b/src/Module/Admin/Item/Source.php index a3f6dd0c5..b8aaff99b 100644 --- a/src/Module/Admin/Item/Source.php +++ b/src/Module/Admin/Item/Source.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Item; @@ -7,9 +26,6 @@ use Friendica\DI; use Friendica\Model; use Friendica\Module\BaseAdmin; -/** - * @author Hypolite Petovan - */ class Source extends BaseAdmin { diff --git a/src/Module/Admin/Logs/Settings.php b/src/Module/Admin/Logs/Settings.php index b8e588cd7..5158108e4 100644 --- a/src/Module/Admin/Logs/Settings.php +++ b/src/Module/Admin/Logs/Settings.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Logs; diff --git a/src/Module/Admin/Logs/View.php b/src/Module/Admin/Logs/View.php index dc2274ce7..3a60ed99e 100644 --- a/src/Module/Admin/Logs/View.php +++ b/src/Module/Admin/Logs/View.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Logs; diff --git a/src/Module/Admin/PhpInfo.php b/src/Module/Admin/PhpInfo.php index 465962eb7..f282e1008 100644 --- a/src/Module/Admin/PhpInfo.php +++ b/src/Module/Admin/PhpInfo.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Queue.php b/src/Module/Admin/Queue.php index 59912fc6c..b6e7d122f 100644 --- a/src/Module/Admin/Queue.php +++ b/src/Module/Admin/Queue.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Site.php b/src/Module/Admin/Site.php index df6c53aee..ec6f01afa 100644 --- a/src/Module/Admin/Site.php +++ b/src/Module/Admin/Site.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Summary.php b/src/Module/Admin/Summary.php index 4c424a059..7e3505e7a 100644 --- a/src/Module/Admin/Summary.php +++ b/src/Module/Admin/Summary.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Themes/Details.php b/src/Module/Admin/Themes/Details.php index a1617954f..c8d057838 100644 --- a/src/Module/Admin/Themes/Details.php +++ b/src/Module/Admin/Themes/Details.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Themes; diff --git a/src/Module/Admin/Themes/Embed.php b/src/Module/Admin/Themes/Embed.php index 50ecff932..675e33c84 100644 --- a/src/Module/Admin/Themes/Embed.php +++ b/src/Module/Admin/Themes/Embed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Themes; diff --git a/src/Module/Admin/Themes/Index.php b/src/Module/Admin/Themes/Index.php index 4c73a36de..955ddadc7 100644 --- a/src/Module/Admin/Themes/Index.php +++ b/src/Module/Admin/Themes/Index.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin\Themes; diff --git a/src/Module/Admin/Tos.php b/src/Module/Admin/Tos.php index b89887dae..c9dd3d879 100644 --- a/src/Module/Admin/Tos.php +++ b/src/Module/Admin/Tos.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/Admin/Users.php b/src/Module/Admin/Users.php index f52d7b36f..fbaab1ded 100644 --- a/src/Module/Admin/Users.php +++ b/src/Module/Admin/Users.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; diff --git a/src/Module/AllFriends.php b/src/Module/AllFriends.php index ffb57ccf6..f916c1671 100644 --- a/src/Module/AllFriends.php +++ b/src/Module/AllFriends.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Api/Friendica/Profile/Show.php b/src/Module/Api/Friendica/Profile/Show.php index 2c50c53d5..57646f973 100644 --- a/src/Module/Api/Friendica/Profile/Show.php +++ b/src/Module/Api/Friendica/Profile/Show.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Api\Friendica\Profile; diff --git a/src/Module/Api/Mastodon/CustomEmojis.php b/src/Module/Api/Mastodon/CustomEmojis.php index 58b0c96ee..81798ee0e 100644 --- a/src/Module/Api/Mastodon/CustomEmojis.php +++ b/src/Module/Api/Mastodon/CustomEmojis.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Api\Mastodon; diff --git a/src/Module/Api/Mastodon/FollowRequests.php b/src/Module/Api/Mastodon/FollowRequests.php index 169250f11..3e3ffec58 100644 --- a/src/Module/Api/Mastodon/FollowRequests.php +++ b/src/Module/Api/Mastodon/FollowRequests.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Api\Mastodon; diff --git a/src/Module/Api/Mastodon/Instance.php b/src/Module/Api/Mastodon/Instance.php index 927642887..57dcfdc39 100644 --- a/src/Module/Api/Mastodon/Instance.php +++ b/src/Module/Api/Mastodon/Instance.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Api\Mastodon; diff --git a/src/Module/Api/Mastodon/Instance/Peers.php b/src/Module/Api/Mastodon/Instance/Peers.php index 99c878fcb..82f08cbad 100644 --- a/src/Module/Api/Mastodon/Instance/Peers.php +++ b/src/Module/Api/Mastodon/Instance/Peers.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Api\Mastodon\Instance; diff --git a/src/Module/Apps.php b/src/Module/Apps.php index 445db070b..04c7d7b6a 100644 --- a/src/Module/Apps.php +++ b/src/Module/Apps.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Attach.php b/src/Module/Attach.php index 7a625e600..519de0cc9 100644 --- a/src/Module/Attach.php +++ b/src/Module/Attach.php @@ -1,9 +1,24 @@ . + * */ - namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/BaseAdmin.php b/src/Module/BaseAdmin.php index b776c8b30..300aeb45b 100644 --- a/src/Module/BaseAdmin.php +++ b/src/Module/BaseAdmin.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 543293872..5a5326756 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/BaseNotifications.php b/src/Module/BaseNotifications.php index 4deb2a24c..9e7b1cd97 100644 --- a/src/Module/BaseNotifications.php +++ b/src/Module/BaseNotifications.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/BaseProfile.php b/src/Module/BaseProfile.php index b5461d3d9..be38a9583 100644 --- a/src/Module/BaseProfile.php +++ b/src/Module/BaseProfile.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/BaseSearch.php b/src/Module/BaseSearch.php index 26b3ea606..ca940ae4e 100644 --- a/src/Module/BaseSearch.php +++ b/src/Module/BaseSearch.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/BaseSettings.php b/src/Module/BaseSettings.php index d4652cc9f..8621427f7 100644 --- a/src/Module/BaseSettings.php +++ b/src/Module/BaseSettings.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Bookmarklet.php b/src/Module/Bookmarklet.php index 1c1763e88..9ecce8ade 100644 --- a/src/Module/Bookmarklet.php +++ b/src/Module/Bookmarklet.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 04e6cf00f..be6f16a53 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Contact/Advanced.php b/src/Module/Contact/Advanced.php index dc45177e3..cc9fdcf3d 100644 --- a/src/Module/Contact/Advanced.php +++ b/src/Module/Contact/Advanced.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Contact; diff --git a/src/Module/Contact/Hovercard.php b/src/Module/Contact/Hovercard.php index 199c47ac6..93495fd5a 100644 --- a/src/Module/Contact/Hovercard.php +++ b/src/Module/Contact/Hovercard.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Contact; diff --git a/src/Module/Credits.php b/src/Module/Credits.php index bafe6311f..016fead6c 100644 --- a/src/Module/Credits.php +++ b/src/Module/Credits.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Debug/Babel.php b/src/Module/Debug/Babel.php index 4b3b47f64..35037f45e 100644 --- a/src/Module/Debug/Babel.php +++ b/src/Module/Debug/Babel.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Debug; diff --git a/src/Module/Debug/Feed.php b/src/Module/Debug/Feed.php index 6393a6b75..4f17b70e6 100644 --- a/src/Module/Debug/Feed.php +++ b/src/Module/Debug/Feed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Debug; diff --git a/src/Module/Debug/ItemBody.php b/src/Module/Debug/ItemBody.php index 929cabdaf..c6530b927 100644 --- a/src/Module/Debug/ItemBody.php +++ b/src/Module/Debug/ItemBody.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Debug; diff --git a/src/Module/Debug/Localtime.php b/src/Module/Debug/Localtime.php index 7e05caa6f..751fb8239 100644 --- a/src/Module/Debug/Localtime.php +++ b/src/Module/Debug/Localtime.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Debug; diff --git a/src/Module/Debug/Probe.php b/src/Module/Debug/Probe.php index 8a777ec5f..0d1c3282b 100644 --- a/src/Module/Debug/Probe.php +++ b/src/Module/Debug/Probe.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Debug; diff --git a/src/Module/Debug/WebFinger.php b/src/Module/Debug/WebFinger.php index a66e2b318..ca26fd866 100644 --- a/src/Module/Debug/WebFinger.php +++ b/src/Module/Debug/WebFinger.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Debug; diff --git a/src/Module/Delegation.php b/src/Module/Delegation.php index b5e4c1a90..b6451c85a 100644 --- a/src/Module/Delegation.php +++ b/src/Module/Delegation.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Diaspora/Fetch.php b/src/Module/Diaspora/Fetch.php index c19857fde..70f982f70 100644 --- a/src/Module/Diaspora/Fetch.php +++ b/src/Module/Diaspora/Fetch.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Diaspora; diff --git a/src/Module/Diaspora/Receive.php b/src/Module/Diaspora/Receive.php index dbfb7f549..01c04dfb6 100644 --- a/src/Module/Diaspora/Receive.php +++ b/src/Module/Diaspora/Receive.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Diaspora; diff --git a/src/Module/Directory.php b/src/Module/Directory.php index 8335fb0cd..ed1b70252 100644 --- a/src/Module/Directory.php +++ b/src/Module/Directory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Feed.php b/src/Module/Feed.php index cf3a0f715..ff0abdb2a 100644 --- a/src/Module/Feed.php +++ b/src/Module/Feed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Filer/RemoveTag.php b/src/Module/Filer/RemoveTag.php index dfe548d81..7866656e3 100644 --- a/src/Module/Filer/RemoveTag.php +++ b/src/Module/Filer/RemoveTag.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Filer; diff --git a/src/Module/Filer/SaveTag.php b/src/Module/Filer/SaveTag.php index 7c5c764cd..12226107b 100644 --- a/src/Module/Filer/SaveTag.php +++ b/src/Module/Filer/SaveTag.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Filer; diff --git a/src/Module/Followers.php b/src/Module/Followers.php index 0907f8ba5..8e683e562 100644 --- a/src/Module/Followers.php +++ b/src/Module/Followers.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/Following.php b/src/Module/Following.php index 739971df9..30f47b598 100644 --- a/src/Module/Following.php +++ b/src/Module/Following.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/FriendSuggest.php b/src/Module/FriendSuggest.php index dcb93ee7e..6bbfd7116 100644 --- a/src/Module/FriendSuggest.php +++ b/src/Module/FriendSuggest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Friendica.php b/src/Module/Friendica.php index 42b1be57d..3325b1ae8 100644 --- a/src/Module/Friendica.php +++ b/src/Module/Friendica.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Group.php b/src/Module/Group.php index beeb6dfa0..11e7f1a76 100644 --- a/src/Module/Group.php +++ b/src/Module/Group.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Module; diff --git a/src/Module/HTTPException/MethodNotAllowed.php b/src/Module/HTTPException/MethodNotAllowed.php index 11f2ed91e..9c3ba3d1b 100644 --- a/src/Module/HTTPException/MethodNotAllowed.php +++ b/src/Module/HTTPException/MethodNotAllowed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\HTTPException; diff --git a/src/Module/HTTPException/PageNotFound.php b/src/Module/HTTPException/PageNotFound.php index 2457a167d..7a3cbc5cd 100644 --- a/src/Module/HTTPException/PageNotFound.php +++ b/src/Module/HTTPException/PageNotFound.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\HTTPException; diff --git a/src/Module/Hashtag.php b/src/Module/Hashtag.php index a460ae1d9..50719774f 100644 --- a/src/Module/Hashtag.php +++ b/src/Module/Hashtag.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/Help.php b/src/Module/Help.php index f5e1edd74..a65bff6ea 100644 --- a/src/Module/Help.php +++ b/src/Module/Help.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Home.php b/src/Module/Home.php index f89920e54..43e783f18 100644 --- a/src/Module/Home.php +++ b/src/Module/Home.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/HoverCard.php b/src/Module/HoverCard.php index c2b1d6b46..e5882046b 100644 --- a/src/Module/HoverCard.php +++ b/src/Module/HoverCard.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Inbox.php b/src/Module/Inbox.php index 21f2698b7..7d25c8b71 100644 --- a/src/Module/Inbox.php +++ b/src/Module/Inbox.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Module; diff --git a/src/Module/Install.php b/src/Module/Install.php index 392adaab1..21510d206 100644 --- a/src/Module/Install.php +++ b/src/Module/Install.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Invite.php b/src/Module/Invite.php index fc8b4abf9..98668bf71 100644 --- a/src/Module/Invite.php +++ b/src/Module/Invite.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Item/Compose.php b/src/Module/Item/Compose.php index 17185d143..6dc879f76 100644 --- a/src/Module/Item/Compose.php +++ b/src/Module/Item/Compose.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Item; diff --git a/src/Module/Item/Ignore.php b/src/Module/Item/Ignore.php index a9e79cdd6..65617f90f 100644 --- a/src/Module/Item/Ignore.php +++ b/src/Module/Item/Ignore.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Item; diff --git a/src/Module/Like.php b/src/Module/Like.php index 2c5f02b1f..a85044714 100644 --- a/src/Module/Like.php +++ b/src/Module/Like.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Magic.php b/src/Module/Magic.php index a95b7e6ba..85da8eb48 100644 --- a/src/Module/Magic.php +++ b/src/Module/Magic.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/Maintenance.php b/src/Module/Maintenance.php index d426ff413..ece9cea13 100644 --- a/src/Module/Maintenance.php +++ b/src/Module/Maintenance.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Manifest.php b/src/Module/Manifest.php index a7ef344e4..c0af708fa 100644 --- a/src/Module/Manifest.php +++ b/src/Module/Manifest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/NoScrape.php b/src/Module/NoScrape.php index 53b3fc4e3..373c9e0f6 100644 --- a/src/Module/NoScrape.php +++ b/src/Module/NoScrape.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/NodeInfo.php b/src/Module/NodeInfo.php index 99ae26b38..87321489f 100644 --- a/src/Module/NodeInfo.php +++ b/src/Module/NodeInfo.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Notifications/Introductions.php b/src/Module/Notifications/Introductions.php index 862473332..45b7c266c 100644 --- a/src/Module/Notifications/Introductions.php +++ b/src/Module/Notifications/Introductions.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Notifications; diff --git a/src/Module/Notifications/Notification.php b/src/Module/Notifications/Notification.php index 34ab3d5ac..2f5cfa869 100644 --- a/src/Module/Notifications/Notification.php +++ b/src/Module/Notifications/Notification.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Notifications; diff --git a/src/Module/Notifications/Notifications.php b/src/Module/Notifications/Notifications.php index 37b234666..faa25a8b1 100644 --- a/src/Module/Notifications/Notifications.php +++ b/src/Module/Notifications/Notifications.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Notifications; diff --git a/src/Module/Objects.php b/src/Module/Objects.php index 783e849bf..9c57665ff 100644 --- a/src/Module/Objects.php +++ b/src/Module/Objects.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/Oembed.php b/src/Module/Oembed.php index 38e209e84..b0c4d092a 100644 --- a/src/Module/Oembed.php +++ b/src/Module/Oembed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/OpenSearch.php b/src/Module/OpenSearch.php index 044c2b127..24e039ca8 100644 --- a/src/Module/OpenSearch.php +++ b/src/Module/OpenSearch.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Outbox.php b/src/Module/Outbox.php index ee667cc4d..265c130b1 100644 --- a/src/Module/Outbox.php +++ b/src/Module/Outbox.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/Owa.php b/src/Module/Owa.php index c32b1806d..9a8d8fbb6 100644 --- a/src/Module/Owa.php +++ b/src/Module/Owa.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/Photo.php b/src/Module/Photo.php index 34ee4db83..2cb29af5f 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Module; diff --git a/src/Module/Pinned.php b/src/Module/Pinned.php index b28777516..97364ceff 100644 --- a/src/Module/Pinned.php +++ b/src/Module/Pinned.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Profile/Contacts.php b/src/Module/Profile/Contacts.php index 122681c17..5ea3e0684 100644 --- a/src/Module/Profile/Contacts.php +++ b/src/Module/Profile/Contacts.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Profile; diff --git a/src/Module/Profile/Index.php b/src/Module/Profile/Index.php index bf34b0204..ff731d9b5 100644 --- a/src/Module/Profile/Index.php +++ b/src/Module/Profile/Index.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Profile; diff --git a/src/Module/Profile/Profile.php b/src/Module/Profile/Profile.php index 690f4ee97..5ed341a8a 100644 --- a/src/Module/Profile/Profile.php +++ b/src/Module/Profile/Profile.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Profile; diff --git a/src/Module/Profile/Status.php b/src/Module/Profile/Status.php index 2ccfb7fdb..4cd14c021 100644 --- a/src/Module/Profile/Status.php +++ b/src/Module/Profile/Status.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Profile; diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index e0d5716d6..e1231f0b1 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -1,8 +1,24 @@ + * @copyright Copyright (C) 2020, Friendica + * + * @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 + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ + namespace Friendica\Module; use Friendica\BaseModule; diff --git a/src/Module/PublicRSAKey.php b/src/Module/PublicRSAKey.php index 5e90d9072..3d0423688 100644 --- a/src/Module/PublicRSAKey.php +++ b/src/Module/PublicRSAKey.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/RandomProfile.php b/src/Module/RandomProfile.php index c14e9f6ca..111d92dc4 100644 --- a/src/Module/RandomProfile.php +++ b/src/Module/RandomProfile.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/ReallySimpleDiscovery.php b/src/Module/ReallySimpleDiscovery.php index 382fe12d4..9882dfb73 100644 --- a/src/Module/ReallySimpleDiscovery.php +++ b/src/Module/ReallySimpleDiscovery.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Register.php b/src/Module/Register.php index 8401a215a..dd603ad20 100644 --- a/src/Module/Register.php +++ b/src/Module/Register.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/RobotsTxt.php b/src/Module/RobotsTxt.php index db83777e8..934a7a46e 100644 --- a/src/Module/RobotsTxt.php +++ b/src/Module/RobotsTxt.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Search/Acl.php b/src/Module/Search/Acl.php index a5a73fb18..82880f83c 100644 --- a/src/Module/Search/Acl.php +++ b/src/Module/Search/Acl.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Search; diff --git a/src/Module/Search/Directory.php b/src/Module/Search/Directory.php index 0540914f5..1a86703d4 100644 --- a/src/Module/Search/Directory.php +++ b/src/Module/Search/Directory.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Search; diff --git a/src/Module/Search/Index.php b/src/Module/Search/Index.php index 1f8bfe4bc..a68086ecc 100644 --- a/src/Module/Search/Index.php +++ b/src/Module/Search/Index.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Search; diff --git a/src/Module/Search/Saved.php b/src/Module/Search/Saved.php index 141a3732d..7b8c8d012 100644 --- a/src/Module/Search/Saved.php +++ b/src/Module/Search/Saved.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Search; diff --git a/src/Module/Security/Login.php b/src/Module/Security/Login.php index 431781758..17845f615 100644 --- a/src/Module/Security/Login.php +++ b/src/Module/Security/Login.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Module\Security; @@ -16,8 +31,6 @@ use Friendica\Util\Strings; /** * Login module - * - * @author Hypolite Petovan */ class Login extends BaseModule { diff --git a/src/Module/Security/Logout.php b/src/Module/Security/Logout.php index 19bf85ff3..c698dd00b 100644 --- a/src/Module/Security/Logout.php +++ b/src/Module/Security/Logout.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Module\Security; @@ -13,8 +29,6 @@ use Friendica\Model\Profile; /** * Logout module - * - * @author Hypolite Petovan */ class Logout extends BaseModule { diff --git a/src/Module/Security/OpenID.php b/src/Module/Security/OpenID.php index 331c709b2..bd0df0a4e 100644 --- a/src/Module/Security/OpenID.php +++ b/src/Module/Security/OpenID.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Security; diff --git a/src/Module/Security/TwoFactor/Recovery.php b/src/Module/Security/TwoFactor/Recovery.php index b8fd515d2..5168f3b67 100644 --- a/src/Module/Security/TwoFactor/Recovery.php +++ b/src/Module/Security/TwoFactor/Recovery.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Security\TwoFactor; diff --git a/src/Module/Security/TwoFactor/Verify.php b/src/Module/Security/TwoFactor/Verify.php index 3fdb28a6f..7d42456be 100644 --- a/src/Module/Security/TwoFactor/Verify.php +++ b/src/Module/Security/TwoFactor/Verify.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Security\TwoFactor; diff --git a/src/Module/Settings/Delegation.php b/src/Module/Settings/Delegation.php index c6d587d90..e70dee890 100644 --- a/src/Module/Settings/Delegation.php +++ b/src/Module/Settings/Delegation.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings; diff --git a/src/Module/Settings/Profile/Index.php b/src/Module/Settings/Profile/Index.php index 51c428de7..56ac9a447 100644 --- a/src/Module/Settings/Profile/Index.php +++ b/src/Module/Settings/Profile/Index.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings\Profile; diff --git a/src/Module/Settings/Profile/Photo/Crop.php b/src/Module/Settings/Profile/Photo/Crop.php index 1ae828d2a..00657b9a3 100644 --- a/src/Module/Settings/Profile/Photo/Crop.php +++ b/src/Module/Settings/Profile/Photo/Crop.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings\Profile\Photo; diff --git a/src/Module/Settings/Profile/Photo/Index.php b/src/Module/Settings/Profile/Photo/Index.php index 97171f7aa..40b4ab153 100644 --- a/src/Module/Settings/Profile/Photo/Index.php +++ b/src/Module/Settings/Profile/Photo/Index.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings\Profile\Photo; diff --git a/src/Module/Settings/TwoFactor/AppSpecific.php b/src/Module/Settings/TwoFactor/AppSpecific.php index c2e24e8b4..a654fe357 100644 --- a/src/Module/Settings/TwoFactor/AppSpecific.php +++ b/src/Module/Settings/TwoFactor/AppSpecific.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings\TwoFactor; diff --git a/src/Module/Settings/TwoFactor/Index.php b/src/Module/Settings/TwoFactor/Index.php index 0c021d421..60cfb516e 100644 --- a/src/Module/Settings/TwoFactor/Index.php +++ b/src/Module/Settings/TwoFactor/Index.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings\TwoFactor; diff --git a/src/Module/Settings/TwoFactor/Recovery.php b/src/Module/Settings/TwoFactor/Recovery.php index 089283d33..b5420be89 100644 --- a/src/Module/Settings/TwoFactor/Recovery.php +++ b/src/Module/Settings/TwoFactor/Recovery.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings\TwoFactor; diff --git a/src/Module/Settings/TwoFactor/Verify.php b/src/Module/Settings/TwoFactor/Verify.php index d832dd622..65d9d7372 100644 --- a/src/Module/Settings/TwoFactor/Verify.php +++ b/src/Module/Settings/TwoFactor/Verify.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Settings\TwoFactor; diff --git a/src/Module/Settings/UserExport.php b/src/Module/Settings/UserExport.php index a1ea50353..0eaa72ffe 100644 --- a/src/Module/Settings/UserExport.php +++ b/src/Module/Settings/UserExport.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Module\Settings; diff --git a/src/Module/Smilies.php b/src/Module/Smilies.php index 963cc8c34..87d3d361d 100644 --- a/src/Module/Smilies.php +++ b/src/Module/Smilies.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Special/HTTPException.php b/src/Module/Special/HTTPException.php index 55357d09c..ed962a423 100644 --- a/src/Module/Special/HTTPException.php +++ b/src/Module/Special/HTTPException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Special; diff --git a/src/Module/Starred.php b/src/Module/Starred.php index 0f111b21e..86f6880d5 100644 --- a/src/Module/Starred.php +++ b/src/Module/Starred.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Statistics.php b/src/Module/Statistics.php index ce15426b8..bcb6ad86b 100644 --- a/src/Module/Statistics.php +++ b/src/Module/Statistics.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Theme.php b/src/Module/Theme.php index cc8f91452..c904f1def 100644 --- a/src/Module/Theme.php +++ b/src/Module/Theme.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/ThemeDetails.php b/src/Module/ThemeDetails.php index 40bfb7a87..e7563a592 100644 --- a/src/Module/ThemeDetails.php +++ b/src/Module/ThemeDetails.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/ToggleMobile.php b/src/Module/ToggleMobile.php index 71b2de7b6..016f5affa 100644 --- a/src/Module/ToggleMobile.php +++ b/src/Module/ToggleMobile.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Tos.php b/src/Module/Tos.php index b907b7696..2bc3393b2 100644 --- a/src/Module/Tos.php +++ b/src/Module/Tos.php @@ -1,9 +1,22 @@ . * - * This module displays the Terms of Service for a node, if the admin - * wants them to be displayed. */ namespace Friendica\Module; diff --git a/src/Module/Update/Profile.php b/src/Module/Update/Profile.php index 0f959a360..d23f766b5 100644 --- a/src/Module/Update/Profile.php +++ b/src/Module/Update/Profile.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Update; diff --git a/src/Module/Welcome.php b/src/Module/Welcome.php index 7f102c13d..60b6454d2 100644 --- a/src/Module/Welcome.php +++ b/src/Module/Welcome.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/WellKnown/HostMeta.php b/src/Module/WellKnown/HostMeta.php index 878116963..8592dadbe 100644 --- a/src/Module/WellKnown/HostMeta.php +++ b/src/Module/WellKnown/HostMeta.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\WellKnown; diff --git a/src/Module/WellKnown/NodeInfo.php b/src/Module/WellKnown/NodeInfo.php index d0d2ea7a0..b1aede696 100644 --- a/src/Module/WellKnown/NodeInfo.php +++ b/src/Module/WellKnown/NodeInfo.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\WellKnown; diff --git a/src/Module/WellKnown/XSocialRelay.php b/src/Module/WellKnown/XSocialRelay.php index f9a806f03..1876de8b8 100644 --- a/src/Module/WellKnown/XSocialRelay.php +++ b/src/Module/WellKnown/XSocialRelay.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\WellKnown; diff --git a/src/Module/Worker.php b/src/Module/Worker.php index 390e25980..bd06c4029 100644 --- a/src/Module/Worker.php +++ b/src/Module/Worker.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 0048350be..1a7b0712f 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; diff --git a/src/Network/CurlResult.php b/src/Network/CurlResult.php index 5b77c3963..44263716b 100644 --- a/src/Network/CurlResult.php +++ b/src/Network/CurlResult.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network; diff --git a/src/Network/FKOAuth1.php b/src/Network/FKOAuth1.php index ea184d485..642fab111 100644 --- a/src/Network/FKOAuth1.php +++ b/src/Network/FKOAuth1.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Network; use Friendica\Core\Logger; diff --git a/src/Network/FKOAuthDataStore.php b/src/Network/FKOAuthDataStore.php index cc41d4c6d..ee9a70915 100644 --- a/src/Network/FKOAuthDataStore.php +++ b/src/Network/FKOAuthDataStore.php @@ -1,9 +1,21 @@ + * @copyright Copyright (C) 2020, Friendica + * + * @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 + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . * */ diff --git a/src/Network/HTTPException.php b/src/Network/HTTPException.php index 89c447b71..b6be886b3 100644 --- a/src/Network/HTTPException.php +++ b/src/Network/HTTPException.php @@ -1,4 +1,27 @@ . + * + */ + +namespace Friendica\Network; + +use Exception; /** * Throwable exceptions to return HTTP status code @@ -6,11 +29,6 @@ * This list of Exception has been extracted from * here http://racksburg.com/choosing-an-http-status-code/ */ - -namespace Friendica\Network; - -use Exception; - abstract class HTTPException extends Exception { public $httpdesc = ''; diff --git a/src/Network/HTTPException/AcceptedException.php b/src/Network/HTTPException/AcceptedException.php index b8c843ec5..185c3ed40 100644 --- a/src/Network/HTTPException/AcceptedException.php +++ b/src/Network/HTTPException/AcceptedException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/BadGatewayException.php b/src/Network/HTTPException/BadGatewayException.php index c23d7e5a3..0a369b1f6 100644 --- a/src/Network/HTTPException/BadGatewayException.php +++ b/src/Network/HTTPException/BadGatewayException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/BadRequestException.php b/src/Network/HTTPException/BadRequestException.php index 9f25c61a8..bec336b43 100644 --- a/src/Network/HTTPException/BadRequestException.php +++ b/src/Network/HTTPException/BadRequestException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/ConflictException.php b/src/Network/HTTPException/ConflictException.php index 5d63922c9..573ffe2b2 100644 --- a/src/Network/HTTPException/ConflictException.php +++ b/src/Network/HTTPException/ConflictException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/ExpectationFailedException.php b/src/Network/HTTPException/ExpectationFailedException.php index 7c928f34f..6b0a6e693 100644 --- a/src/Network/HTTPException/ExpectationFailedException.php +++ b/src/Network/HTTPException/ExpectationFailedException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/ForbiddenException.php b/src/Network/HTTPException/ForbiddenException.php index f83fe524b..6c8260c68 100644 --- a/src/Network/HTTPException/ForbiddenException.php +++ b/src/Network/HTTPException/ForbiddenException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/GatewayTimeoutException.php b/src/Network/HTTPException/GatewayTimeoutException.php index 2e5164850..48bf4dcd2 100644 --- a/src/Network/HTTPException/GatewayTimeoutException.php +++ b/src/Network/HTTPException/GatewayTimeoutException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/GoneException.php b/src/Network/HTTPException/GoneException.php index 0f665206f..e321773d8 100644 --- a/src/Network/HTTPException/GoneException.php +++ b/src/Network/HTTPException/GoneException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/ImATeapotException.php b/src/Network/HTTPException/ImATeapotException.php index 89a28bebd..b0ff6ec1f 100644 --- a/src/Network/HTTPException/ImATeapotException.php +++ b/src/Network/HTTPException/ImATeapotException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/InternalServerErrorException.php b/src/Network/HTTPException/InternalServerErrorException.php index dca1894fb..79d70e91d 100644 --- a/src/Network/HTTPException/InternalServerErrorException.php +++ b/src/Network/HTTPException/InternalServerErrorException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/LenghtRequiredException.php b/src/Network/HTTPException/LenghtRequiredException.php index 071cac73d..00002a673 100644 --- a/src/Network/HTTPException/LenghtRequiredException.php +++ b/src/Network/HTTPException/LenghtRequiredException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/MethodNotAllowedException.php b/src/Network/HTTPException/MethodNotAllowedException.php index 128b9dc06..7cd3079a3 100644 --- a/src/Network/HTTPException/MethodNotAllowedException.php +++ b/src/Network/HTTPException/MethodNotAllowedException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/NoContentException.php b/src/Network/HTTPException/NoContentException.php index 7bd60fbbc..896261be7 100644 --- a/src/Network/HTTPException/NoContentException.php +++ b/src/Network/HTTPException/NoContentException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/NonAcceptableException.php b/src/Network/HTTPException/NonAcceptableException.php index 9ef40d60b..3344d578e 100644 --- a/src/Network/HTTPException/NonAcceptableException.php +++ b/src/Network/HTTPException/NonAcceptableException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/NotFoundException.php b/src/Network/HTTPException/NotFoundException.php index f58179479..b2577b118 100644 --- a/src/Network/HTTPException/NotFoundException.php +++ b/src/Network/HTTPException/NotFoundException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/NotImplementedException.php b/src/Network/HTTPException/NotImplementedException.php index 76cb5d420..7d2f27538 100644 --- a/src/Network/HTTPException/NotImplementedException.php +++ b/src/Network/HTTPException/NotImplementedException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/OKException.php b/src/Network/HTTPException/OKException.php index d506ddf32..7c60c9a1b 100644 --- a/src/Network/HTTPException/OKException.php +++ b/src/Network/HTTPException/OKException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/PreconditionFailedException.php b/src/Network/HTTPException/PreconditionFailedException.php index 325c88aa4..00c8fabb6 100644 --- a/src/Network/HTTPException/PreconditionFailedException.php +++ b/src/Network/HTTPException/PreconditionFailedException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/ServiceUnavailableException.php b/src/Network/HTTPException/ServiceUnavailableException.php index 257b8c858..6de3ca9d2 100644 --- a/src/Network/HTTPException/ServiceUnavailableException.php +++ b/src/Network/HTTPException/ServiceUnavailableException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/TooManyRequestsException.php b/src/Network/HTTPException/TooManyRequestsException.php index e06d9d9cb..d5096cb49 100644 --- a/src/Network/HTTPException/TooManyRequestsException.php +++ b/src/Network/HTTPException/TooManyRequestsException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/UnauthorizedException.php b/src/Network/HTTPException/UnauthorizedException.php index eda1f071b..389f1b796 100644 --- a/src/Network/HTTPException/UnauthorizedException.php +++ b/src/Network/HTTPException/UnauthorizedException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/UnprocessableEntityException.php b/src/Network/HTTPException/UnprocessableEntityException.php index b33a75f79..b8e7dbe36 100644 --- a/src/Network/HTTPException/UnprocessableEntityException.php +++ b/src/Network/HTTPException/UnprocessableEntityException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/HTTPException/UnsupportedMediaTypeException.php b/src/Network/HTTPException/UnsupportedMediaTypeException.php index 02962dfc2..f3bf9a5cb 100644 --- a/src/Network/HTTPException/UnsupportedMediaTypeException.php +++ b/src/Network/HTTPException/UnsupportedMediaTypeException.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Network\HTTPException; diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 91d894d2e..31548173b 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1,13 +1,25 @@ . + * */ -namespace Friendica\Network; -/** - * @file src/Network/Probe.php - * Functions for probing URL - */ +namespace Friendica\Network; use DOMDocument; use DomXPath; @@ -29,7 +41,6 @@ use Friendica\Util\XML; /** * This class contain functions for probing URL - * */ class Probe { diff --git a/src/Object/Api/Friendica/Notification.php b/src/Object/Api/Friendica/Notification.php index 910d5ec68..9900d0a3f 100644 --- a/src/Object/Api/Friendica/Notification.php +++ b/src/Object/Api/Friendica/Notification.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Friendica; diff --git a/src/Object/Api/Mastodon/Account.php b/src/Object/Api/Mastodon/Account.php index a5f401a0f..99cee205e 100644 --- a/src/Object/Api/Mastodon/Account.php +++ b/src/Object/Api/Mastodon/Account.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; diff --git a/src/Object/Api/Mastodon/Emoji.php b/src/Object/Api/Mastodon/Emoji.php index 658ce282f..1f6f12150 100644 --- a/src/Object/Api/Mastodon/Emoji.php +++ b/src/Object/Api/Mastodon/Emoji.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; diff --git a/src/Object/Api/Mastodon/Field.php b/src/Object/Api/Mastodon/Field.php index a32eae04a..95cbc89df 100644 --- a/src/Object/Api/Mastodon/Field.php +++ b/src/Object/Api/Mastodon/Field.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; diff --git a/src/Object/Api/Mastodon/FollowRequest.php b/src/Object/Api/Mastodon/FollowRequest.php index 2e1257d3e..83af880af 100644 --- a/src/Object/Api/Mastodon/FollowRequest.php +++ b/src/Object/Api/Mastodon/FollowRequest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; diff --git a/src/Object/Api/Mastodon/Instance.php b/src/Object/Api/Mastodon/Instance.php index 63c8b2824..6105a8bee 100644 --- a/src/Object/Api/Mastodon/Instance.php +++ b/src/Object/Api/Mastodon/Instance.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; diff --git a/src/Object/Api/Mastodon/Relationship.php b/src/Object/Api/Mastodon/Relationship.php index 146ad212b..bb3aa5541 100644 --- a/src/Object/Api/Mastodon/Relationship.php +++ b/src/Object/Api/Mastodon/Relationship.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; diff --git a/src/Object/Api/Mastodon/Stats.php b/src/Object/Api/Mastodon/Stats.php index 24e263685..8677cf042 100644 --- a/src/Object/Api/Mastodon/Stats.php +++ b/src/Object/Api/Mastodon/Stats.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; diff --git a/src/Object/EMail/IEmail.php b/src/Object/EMail/IEmail.php index ec8ae8815..77b5901f3 100644 --- a/src/Object/EMail/IEmail.php +++ b/src/Object/EMail/IEmail.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\EMail; diff --git a/src/Object/EMail/ItemCCEMail.php b/src/Object/EMail/ItemCCEMail.php index 049f86147..1cda5ed16 100644 --- a/src/Object/EMail/ItemCCEMail.php +++ b/src/Object/EMail/ItemCCEMail.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\EMail; diff --git a/src/Object/Email.php b/src/Object/Email.php index 32d138283..96a7ad88c 100644 --- a/src/Object/Email.php +++ b/src/Object/Email.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object; diff --git a/src/Object/Image.php b/src/Object/Image.php index c3585d7cd..535eae0b3 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Object; use Exception; diff --git a/src/Object/Notification/Introduction.php b/src/Object/Notification/Introduction.php index 475728273..f2e6aecea 100644 --- a/src/Object/Notification/Introduction.php +++ b/src/Object/Notification/Introduction.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Notification; diff --git a/src/Object/Notification/Notification.php b/src/Object/Notification/Notification.php index bb29fd0af..2f1e8cdd1 100644 --- a/src/Object/Notification/Notification.php +++ b/src/Object/Notification/Notification.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Notification; diff --git a/src/Object/OEmbed.php b/src/Object/OEmbed.php index d787e2ee9..6b53812b9 100644 --- a/src/Object/OEmbed.php +++ b/src/Object/OEmbed.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object; diff --git a/src/Object/Post.php b/src/Object/Post.php index 8ebc6e265..f55dbde0d 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Object; use Friendica\Content\ContactSelector; diff --git a/src/Object/Search/ContactResult.php b/src/Object/Search/ContactResult.php index ccfb5f4cf..b9fbe49d8 100644 --- a/src/Object/Search/ContactResult.php +++ b/src/Object/Search/ContactResult.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Search; diff --git a/src/Object/Search/IResult.php b/src/Object/Search/IResult.php index 64fb71c85..f1c338975 100644 --- a/src/Object/Search/IResult.php +++ b/src/Object/Search/IResult.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Search; diff --git a/src/Object/Search/ResultList.php b/src/Object/Search/ResultList.php index ec9c27687..065ca0557 100644 --- a/src/Object/Search/ResultList.php +++ b/src/Object/Search/ResultList.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Object\Search; diff --git a/src/Object/Thread.php b/src/Object/Thread.php index 0d0def061..b574e300b 100644 --- a/src/Object/Thread.php +++ b/src/Object/Thread.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Object; use Friendica\Core\Logger; diff --git a/src/Protocol/Activity.php b/src/Protocol/Activity.php index bea2dedb0..bba7909fd 100644 --- a/src/Protocol/Activity.php +++ b/src/Protocol/Activity.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Protocol; diff --git a/src/Protocol/Activity/ObjectType.php b/src/Protocol/Activity/ObjectType.php index 313378b3e..e5fd2bfd8 100644 --- a/src/Protocol/Activity/ObjectType.php +++ b/src/Protocol/Activity/ObjectType.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Protocol\Activity; diff --git a/src/Protocol/ActivityNamespace.php b/src/Protocol/ActivityNamespace.php index c504f2833..2f860fed8 100644 --- a/src/Protocol/ActivityNamespace.php +++ b/src/Protocol/ActivityNamespace.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Protocol; diff --git a/src/Protocol/ActivityPub.php b/src/Protocol/ActivityPub.php index 7e2c591b3..f1cd652f4 100644 --- a/src/Protocol/ActivityPub.php +++ b/src/Protocol/ActivityPub.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Protocol; use Friendica\Util\JsonLD; diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 3bc7ff4a7..089d41729 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Protocol\ActivityPub; use Friendica\Content\Text\BBCode; diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 0ef179141..7d25d94f1 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Protocol\ActivityPub; use Friendica\Database\DBA; @@ -26,7 +43,7 @@ use Friendica\Util\Strings; * ActivityPub Receiver Protocol class * * To-Do: - * - Undo Announce + * @todo Undo Announce * * Check what this is meant to do: * - Add diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 1883fb162..38f102294 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Protocol\ActivityPub; use Friendica\Content\Feature; @@ -39,7 +56,7 @@ require_once 'mod/share.php'; * ActivityPub Transmitter Protocol class * * To-Do: - * - Undo Announce + * @todo Undo Announce */ class Transmitter { diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 9269fcc5e..ff891701a 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -1,11 +1,24 @@ . * - * @see https://github.com/friendica/friendica/wiki/Protocol and - * https://github.com/friendica/friendica/blob/master/spec/dfrn2.pdf */ + namespace Friendica\Protocol; use DOMDocument; diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index bff56d5af..2dd3eba1e 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -1,11 +1,22 @@ . * - * The new protocol is described here: http://diaspora.github.io/diaspora_federation/index.html - * This implementation here interprets the old and the new protocol and sends the new one. - * In the future we will remove most stuff from "validPosting" and interpret only the new protocol. */ namespace Friendica\Protocol; @@ -40,7 +51,6 @@ use SimpleXMLElement; /** * This class contain functions to create and send Diaspora XML files - * */ class Diaspora { diff --git a/src/Protocol/Email.php b/src/Protocol/Email.php index 75fd1ea22..06946d483 100644 --- a/src/Protocol/Email.php +++ b/src/Protocol/Email.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Protocol; use Friendica\Core\Hook; diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index c235b3172..cbd50a097 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -1,9 +1,24 @@ . * */ + namespace Friendica\Protocol; use DOMDocument; @@ -19,8 +34,7 @@ use Friendica\Util\ParseUrl; use Friendica\Util\XML; /** - * This class contain functions to import feeds - * + * This class contain functions to import feeds (RSS/RDF/Atom) */ class Feed { /** diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index dc30b596f..b5167aa72 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Protocol; use DOMDocument; diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index 58b9d7387..4ff9ae98b 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -1,10 +1,22 @@ . * - * @todo Move GNU Social URL schemata (http://server.tld/user/number) to http://server.tld/username - * @todo Fetch profile data from profile page for Redmatrix users - * @todo Detect if it is a forum */ namespace Friendica\Protocol; @@ -22,6 +34,12 @@ use Friendica\Util\DateTimeFormat; use Friendica\Util\Network; use Friendica\Util\Strings; +/** + * + * @todo Move GNU Social URL schemata (http://server.tld/user/number) to http://server.tld/username + * @todo Fetch profile data from profile page for Redmatrix users + * @todo Detect if it is a forum + */ class PortableContact { const DISABLED = 0; diff --git a/src/Protocol/Salmon.php b/src/Protocol/Salmon.php index 0274c5173..0d234b53f 100644 --- a/src/Protocol/Salmon.php +++ b/src/Protocol/Salmon.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Protocol; use Friendica\Core\Logger; diff --git a/src/Render/FriendicaSmarty.php b/src/Render/FriendicaSmarty.php index 83b6322df..2b06c88c9 100644 --- a/src/Render/FriendicaSmarty.php +++ b/src/Render/FriendicaSmarty.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Render; use Friendica\DI; @@ -10,8 +27,6 @@ use Friendica\Core\Renderer; /** * Friendica extension of the Smarty3 template engine - * - * @author Hypolite Petovan */ class FriendicaSmarty extends Smarty { diff --git a/src/Render/FriendicaSmartyEngine.php b/src/Render/FriendicaSmartyEngine.php index d36b8f195..1e419bcf7 100644 --- a/src/Render/FriendicaSmartyEngine.php +++ b/src/Render/FriendicaSmartyEngine.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Render; use Friendica\Core\Hook; @@ -9,8 +26,6 @@ use Friendica\DI; /** * Smarty implementation of the Friendica template engine interface - * - * @author Hypolite Petovan */ class FriendicaSmartyEngine implements ITemplateEngine { diff --git a/src/Render/ITemplateEngine.php b/src/Render/ITemplateEngine.php index cf19e2065..456bb268b 100644 --- a/src/Render/ITemplateEngine.php +++ b/src/Render/ITemplateEngine.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Render; diff --git a/src/Repository/FSuggest.php b/src/Repository/FSuggest.php index 4567f0a5a..f7f6cef71 100644 --- a/src/Repository/FSuggest.php +++ b/src/Repository/FSuggest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Repository; diff --git a/src/Repository/Introduction.php b/src/Repository/Introduction.php index 65c2e1ebc..bde6edef6 100644 --- a/src/Repository/Introduction.php +++ b/src/Repository/Introduction.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Repository; diff --git a/src/Repository/Notify.php b/src/Repository/Notify.php index b53bd8441..d8887affd 100644 --- a/src/Repository/Notify.php +++ b/src/Repository/Notify.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Repository; diff --git a/src/Repository/PermissionSet.php b/src/Repository/PermissionSet.php index 86915701d..ec0b91e0f 100644 --- a/src/Repository/PermissionSet.php +++ b/src/Repository/PermissionSet.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Repository; diff --git a/src/Repository/ProfileField.php b/src/Repository/ProfileField.php index b1b16dcf1..6be1a1d94 100644 --- a/src/Repository/ProfileField.php +++ b/src/Repository/ProfileField.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Repository; diff --git a/src/Util/ACLFormatter.php b/src/Util/ACLFormatter.php index d79a73298..7719daf45 100644 --- a/src/Util/ACLFormatter.php +++ b/src/Util/ACLFormatter.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/Arrays.php b/src/Util/Arrays.php index e2ba412ca..110358013 100644 --- a/src/Util/Arrays.php +++ b/src/Util/Arrays.php @@ -1,8 +1,24 @@ + * @copyright Copyright (C) 2020, Friendica + * + * @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 + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ + namespace Friendica\Util; /** diff --git a/src/Util/BasePath.php b/src/Util/BasePath.php index 39931a84e..227050c46 100644 --- a/src/Util/BasePath.php +++ b/src/Util/BasePath.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/ConfigFileLoader.php b/src/Util/ConfigFileLoader.php index 5acf4630d..fc6685946 100644 --- a/src/Util/ConfigFileLoader.php +++ b/src/Util/ConfigFileLoader.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/Crypto.php b/src/Util/Crypto.php index 3ac1c3b23..1b84a92f6 100644 --- a/src/Util/Crypto.php +++ b/src/Util/Crypto.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; use ASN_BASE; diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index dc6cbb044..07590bac0 100644 --- a/src/Util/DateTimeFormat.php +++ b/src/Util/DateTimeFormat.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Util; diff --git a/src/Util/EMailer/MailBuilder.php b/src/Util/EMailer/MailBuilder.php index cc774f4fb..7bdb978c8 100644 --- a/src/Util/EMailer/MailBuilder.php +++ b/src/Util/EMailer/MailBuilder.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\EMailer; diff --git a/src/Util/EMailer/NotifyMailBuilder.php b/src/Util/EMailer/NotifyMailBuilder.php index 8a7eea426..f084f3f0d 100644 --- a/src/Util/EMailer/NotifyMailBuilder.php +++ b/src/Util/EMailer/NotifyMailBuilder.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\EMailer; diff --git a/src/Util/EMailer/SystemMailBuilder.php b/src/Util/EMailer/SystemMailBuilder.php index 7f8a22b9d..59ebb59b1 100644 --- a/src/Util/EMailer/SystemMailBuilder.php +++ b/src/Util/EMailer/SystemMailBuilder.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\EMailer; diff --git a/src/Util/Emailer.php b/src/Util/Emailer.php index e5f1269ab..1254c6618 100644 --- a/src/Util/Emailer.php +++ b/src/Util/Emailer.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; use Friendica\App; diff --git a/src/Util/ExAuth.php b/src/Util/ExAuth.php index e21020829..de13ee82f 100644 --- a/src/Util/ExAuth.php +++ b/src/Util/ExAuth.php @@ -1,6 +1,6 @@ diff --git a/src/Util/FileSystem.php b/src/Util/FileSystem.php index b3a0ae74d..5791fed23 100644 --- a/src/Util/FileSystem.php +++ b/src/Util/FileSystem.php @@ -1,11 +1,30 @@ . + * + */ namespace Friendica\Util; /** * Util class for filesystem manipulation */ -final class FileSystem +class FileSystem { /** * @var string a error message diff --git a/src/Util/HTTPHeaders.php b/src/Util/HTTPHeaders.php index 9b0c4529d..d59d638e1 100644 --- a/src/Util/HTTPHeaders.php +++ b/src/Util/HTTPHeaders.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; /** diff --git a/src/Util/HTTPSignature.php b/src/Util/HTTPSignature.php index e3151eb4a..e4d2e93ff 100644 --- a/src/Util/HTTPSignature.php +++ b/src/Util/HTTPSignature.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Util; use Friendica\Database\DBA; diff --git a/src/Util/Images.php b/src/Util/Images.php index e5a4da5b1..6471ed526 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/Introspection.php b/src/Util/Introspection.php index 6eec70954..75f1f87aa 100644 --- a/src/Util/Introspection.php +++ b/src/Util/Introspection.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index 3b033c0af..1452318b5 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; use Friendica\Core\Cache\Duration; diff --git a/src/Util/LDSignature.php b/src/Util/LDSignature.php index 48beeeb36..b2b6c90db 100644 --- a/src/Util/LDSignature.php +++ b/src/Util/LDSignature.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/Logger/AbstractLogger.php b/src/Util/Logger/AbstractLogger.php index 576f4bfb4..4d653ae9b 100644 --- a/src/Util/Logger/AbstractLogger.php +++ b/src/Util/Logger/AbstractLogger.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger; diff --git a/src/Util/Logger/Monolog/DevelopHandler.php b/src/Util/Logger/Monolog/DevelopHandler.php index 07a839345..6d495b522 100644 --- a/src/Util/Logger/Monolog/DevelopHandler.php +++ b/src/Util/Logger/Monolog/DevelopHandler.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger\Monolog; diff --git a/src/Util/Logger/Monolog/IntrospectionProcessor.php b/src/Util/Logger/Monolog/IntrospectionProcessor.php index 18ea84680..55c041e5b 100644 --- a/src/Util/Logger/Monolog/IntrospectionProcessor.php +++ b/src/Util/Logger/Monolog/IntrospectionProcessor.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger\Monolog; diff --git a/src/Util/Logger/ProfilerLogger.php b/src/Util/Logger/ProfilerLogger.php index fdb7c52b2..2f1940952 100644 --- a/src/Util/Logger/ProfilerLogger.php +++ b/src/Util/Logger/ProfilerLogger.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger; diff --git a/src/Util/Logger/StreamLogger.php b/src/Util/Logger/StreamLogger.php index 9b7aa0890..035e7ecee 100644 --- a/src/Util/Logger/StreamLogger.php +++ b/src/Util/Logger/StreamLogger.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger; diff --git a/src/Util/Logger/SyslogLogger.php b/src/Util/Logger/SyslogLogger.php index 7ef4f6b27..101baad38 100644 --- a/src/Util/Logger/SyslogLogger.php +++ b/src/Util/Logger/SyslogLogger.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger; diff --git a/src/Util/Logger/VoidLogger.php b/src/Util/Logger/VoidLogger.php index 16cd10da0..20311e24a 100644 --- a/src/Util/Logger/VoidLogger.php +++ b/src/Util/Logger/VoidLogger.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger; diff --git a/src/Util/Logger/WorkerLogger.php b/src/Util/Logger/WorkerLogger.php index 04edecc69..fb63ce102 100644 --- a/src/Util/Logger/WorkerLogger.php +++ b/src/Util/Logger/WorkerLogger.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util\Logger; diff --git a/src/Util/Map.php b/src/Util/Map.php index a35235bf5..94974d08e 100644 --- a/src/Util/Map.php +++ b/src/Util/Map.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; use Friendica\Core\Hook; diff --git a/src/Util/Mimetype.php b/src/Util/Mimetype.php index b2d0e2641..bd87d3089 100644 --- a/src/Util/Mimetype.php +++ b/src/Util/Mimetype.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; class Mimetype diff --git a/src/Util/Network.php b/src/Util/Network.php index 17ddd048a..6c7fd731c 100644 --- a/src/Util/Network.php +++ b/src/Util/Network.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; use DOMDocument; diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index df7a48ddf..06e320c40 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Util; use DOMDocument; @@ -13,6 +29,8 @@ use Friendica\Core\Logger; use Friendica\Database\DBA; /** + * Get information about a given URL + * * Class with methods for extracting certain content from an url */ class ParseUrl diff --git a/src/Util/Pidfile.php b/src/Util/Pidfile.php index ec7f6b3fa..6d4c0c510 100644 --- a/src/Util/Pidfile.php +++ b/src/Util/Pidfile.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; /** diff --git a/src/Util/Profiler.php b/src/Util/Profiler.php index c3fddfac7..240273bde 100644 --- a/src/Util/Profiler.php +++ b/src/Util/Profiler.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index 6bc227591..e104073f0 100644 --- a/src/Util/Proxy.php +++ b/src/Util/Proxy.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; diff --git a/src/Util/Security.php b/src/Util/Security.php index a269ca88c..929853c2f 100644 --- a/src/Util/Security.php +++ b/src/Util/Security.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Util; diff --git a/src/Util/Strings.php b/src/Util/Strings.php index 912057984..c520b54b9 100644 --- a/src/Util/Strings.php +++ b/src/Util/Strings.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Util; diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index ef27b54b2..c4a04d586 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Util; diff --git a/src/Util/XML.php b/src/Util/XML.php index 51f424984..9aba38910 100644 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Util; use DOMXPath; diff --git a/src/Worker/APDelivery.php b/src/Worker/APDelivery.php index a30ccf0ee..60752896f 100644 --- a/src/Worker/APDelivery.php +++ b/src/Worker/APDelivery.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/AddContact.php b/src/Worker/AddContact.php index 47d9d0137..700802ca8 100644 --- a/src/Worker/AddContact.php +++ b/src/Worker/AddContact.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; diff --git a/src/Worker/CheckVersion.php b/src/Worker/CheckVersion.php index bdd44a300..ae23b40c0 100644 --- a/src/Worker/CheckVersion.php +++ b/src/Worker/CheckVersion.php @@ -1,10 +1,24 @@ . + * + */ + namespace Friendica\Worker; use Friendica\Core\Logger; @@ -13,7 +27,7 @@ use Friendica\DI; use Friendica\Util\Network; /** - * check the git repository VERSION file and save the version to the DB + * Check the git repository VERSION file and save the version to the DB * * Checking the upstream version is optional (opt-in) and can be done to either * the master or the develop branch in the repository. diff --git a/src/Worker/CreateShadowEntry.php b/src/Worker/CreateShadowEntry.php index 9ef0ff2df..bd055f165 100644 --- a/src/Worker/CreateShadowEntry.php +++ b/src/Worker/CreateShadowEntry.php @@ -1,15 +1,33 @@ . * - * This script is started from mod/item.php to save some time when doing a post. */ namespace Friendica\Worker; use Friendica\Model\Item; +/** + * This script creates posts with UID = 0 for a given public post. + * + * This script is started from mod/item.php to save some time when doing a post. + */ class CreateShadowEntry { public static function execute($message_id = 0) { if (empty($message_id)) { diff --git a/src/Worker/Cron.php b/src/Worker/Cron.php index 763aa98f3..e22051cfc 100644 --- a/src/Worker/Cron.php +++ b/src/Worker/Cron.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Addon; diff --git a/src/Worker/CronJobs.php b/src/Worker/CronJobs.php index 83c85fa44..b66358b0e 100644 --- a/src/Worker/CronJobs.php +++ b/src/Worker/CronJobs.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\App; diff --git a/src/Worker/DBClean.php b/src/Worker/DBClean.php index 04fe09faa..4144fc95e 100644 --- a/src/Worker/DBClean.php +++ b/src/Worker/DBClean.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; @@ -11,6 +26,9 @@ use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\DI; +/** + * The script is called from time to time to clean the database entries and remove orphaned data. + */ class DBClean { public static function execute($stage = 0) { diff --git a/src/Worker/DBUpdate.php b/src/Worker/DBUpdate.php index e0ab07540..000dccc8d 100644 --- a/src/Worker/DBUpdate.php +++ b/src/Worker/DBUpdate.php @@ -1,13 +1,32 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Update; use Friendica\DI; +/** + * This file is called when the database structure needs to be updated + */ class DBUpdate { public static function execute() diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index f864200a3..c69545bbd 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/Directory.php b/src/Worker/Directory.php index ac9aeae5b..ff844ca39 100644 --- a/src/Worker/Directory.php +++ b/src/Worker/Directory.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; @@ -13,6 +28,9 @@ use Friendica\Database\DBA; use Friendica\DI; use Friendica\Util\Network; +/** + * Sends updated profile data to the directory + */ class Directory { public static function execute($url = '') diff --git a/src/Worker/Expire.php b/src/Worker/Expire.php index 908eea3ac..e1e671532 100644 --- a/src/Worker/Expire.php +++ b/src/Worker/Expire.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; @@ -13,6 +28,9 @@ use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Item; +/** + * Expires old item entries + */ class Expire { public static function execute($param = '', $hook_function = '') diff --git a/src/Worker/FetchPoCo.php b/src/Worker/FetchPoCo.php index 67f2e548b..477d001d2 100644 --- a/src/Worker/FetchPoCo.php +++ b/src/Worker/FetchPoCo.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/ForkHook.php b/src/Worker/ForkHook.php index 002cad985..fd79f34bf 100644 --- a/src/Worker/ForkHook.php +++ b/src/Worker/ForkHook.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Worker; diff --git a/src/Worker/MergeContact.php b/src/Worker/MergeContact.php index a5e28e525..85b27ef4a 100644 --- a/src/Worker/MergeContact.php +++ b/src/Worker/MergeContact.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 85098d1de..b3741e546 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Hook; diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index 3630102c7..c87bfcf25 100644 --- a/src/Worker/OnePoll.php +++ b/src/Worker/OnePoll.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/ProfileUpdate.php b/src/Worker/ProfileUpdate.php index 899b42f45..f33811ef6 100644 --- a/src/Worker/ProfileUpdate.php +++ b/src/Worker/ProfileUpdate.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; @@ -12,6 +27,9 @@ use Friendica\DI; use Friendica\Protocol\Diaspora; use Friendica\Protocol\ActivityPub; +/** + * Send updated profile data to Diaspora and ActivityPub + */ class ProfileUpdate { public static function execute($uid = 0) { if (empty($uid)) { diff --git a/src/Worker/PubSubPublish.php b/src/Worker/PubSubPublish.php index 8e38ff812..2eb94eeb7 100644 --- a/src/Worker/PubSubPublish.php +++ b/src/Worker/PubSubPublish.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Worker; diff --git a/src/Worker/RemoveContact.php b/src/Worker/RemoveContact.php index 57dc49645..ba464f75f 100644 --- a/src/Worker/RemoveContact.php +++ b/src/Worker/RemoveContact.php @@ -1,14 +1,33 @@ . + * */ + namespace Friendica\Worker; use Friendica\Database\DBA; use Friendica\Core\Protocol; use Friendica\Model\Item; +/** + * Removes orphaned data from deleted contacts + */ class RemoveContact { public static function execute($id) { diff --git a/src/Worker/RemoveUser.php b/src/Worker/RemoveUser.php index fb57b1d7c..c2441adc9 100644 --- a/src/Worker/RemoveUser.php +++ b/src/Worker/RemoveUser.php @@ -1,13 +1,32 @@ . + * */ + namespace Friendica\Worker; use Friendica\Database\DBA; use Friendica\Model\Item; +/** + * Removes orphaned data from deleted users + */ class RemoveUser { public static function execute($uid) { diff --git a/src/Worker/SearchDirectory.php b/src/Worker/SearchDirectory.php index cf4ddc609..c099a5e28 100644 --- a/src/Worker/SearchDirectory.php +++ b/src/Worker/SearchDirectory.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Cache\Duration; diff --git a/src/Worker/SpoolPost.php b/src/Worker/SpoolPost.php index be1f89e19..2026ff7f5 100644 --- a/src/Worker/SpoolPost.php +++ b/src/Worker/SpoolPost.php @@ -1,13 +1,32 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; use Friendica\Model\Item; +/** + * Posts items that where spooled because they couldn't be posted. + */ class SpoolPost { public static function execute() { $path = get_spoolpath(); diff --git a/src/Worker/TagUpdate.php b/src/Worker/TagUpdate.php index 213c26ac0..d7ad4462c 100644 --- a/src/Worker/TagUpdate.php +++ b/src/Worker/TagUpdate.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Worker; diff --git a/src/Worker/UpdateContact.php b/src/Worker/UpdateContact.php index 0e5fd1412..342e99550 100644 --- a/src/Worker/UpdateContact.php +++ b/src/Worker/UpdateContact.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; diff --git a/src/Worker/UpdateGContact.php b/src/Worker/UpdateGContact.php index 1057d0a27..7bdaec464 100644 --- a/src/Worker/UpdateGContact.php +++ b/src/Worker/UpdateGContact.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Worker; diff --git a/src/Worker/UpdateGContacts.php b/src/Worker/UpdateGContacts.php index 72136ec0a..80c0ef524 100644 --- a/src/Worker/UpdateGContacts.php +++ b/src/Worker/UpdateGContacts.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/UpdateGServer.php b/src/Worker/UpdateGServer.php index b94c5343a..60b8c4170 100644 --- a/src/Worker/UpdateGServer.php +++ b/src/Worker/UpdateGServer.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/UpdateGServers.php b/src/Worker/UpdateGServers.php index d55d8df01..2200d02e9 100644 --- a/src/Worker/UpdateGServers.php +++ b/src/Worker/UpdateGServers.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/UpdateServerDirectories.php b/src/Worker/UpdateServerDirectories.php index d00a6f6c9..74f75fcd7 100644 --- a/src/Worker/UpdateServerDirectories.php +++ b/src/Worker/UpdateServerDirectories.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\DI; diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php index fd5ee0534..87bbee7e8 100644 --- a/src/Worker/UpdateServerDirectory.php +++ b/src/Worker/UpdateServerDirectory.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/src/Worker/UpdateSuggestions.php b/src/Worker/UpdateSuggestions.php index 7d4543409..103a3cf4c 100644 --- a/src/Worker/UpdateSuggestions.php +++ b/src/Worker/UpdateSuggestions.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Worker; use Friendica\Core\Logger; diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 87cfdd11c..da92391dd 100755 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -1,6 +1,23 @@ . + * + * Main database structure configuration file. * * Here are described all the tables, fields and indexes Friendica needs to work. * diff --git a/static/defaults.config.php b/static/defaults.config.php index dfec158cf..f9eda841f 100644 --- a/static/defaults.config.php +++ b/static/defaults.config.php @@ -1,12 +1,28 @@ . + * + * This file declares the default values for the base config of Friendica. * * These configuration values aren't accessible from the admin settings page and custom values must be set in config/local.config.php * * Please don't edit this file directly as its content may change in the upcoming versions. + * */ return [ diff --git a/static/dependencies.config.php b/static/dependencies.config.php index 51fff6228..84344a60e 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -1,4 +1,37 @@ . + * + * The configuration defines "complex" dependencies inside Friendica + * So this classes shouldn't be simple or their dependencies are already defined here. + * + * This kind of dependencies are NOT required to be defined here: + * - $a = new ClassA(new ClassB()); + * - $a = new ClassA(); + * - $a = new ClassA(Configuration $configuration); + * + * This kind of dependencies SHOULD be defined here: + * - $a = new ClassA(); + * $b = $a->create(); + * + * - $a = new ClassA($creationPassedVariable); + * + */ use Dice\Dice; use Friendica\App; @@ -16,22 +49,6 @@ use Friendica\Model\User\Cookie; use Friendica\Util; use Psr\Log\LoggerInterface; -/** - * The configuration defines "complex" dependencies inside Friendica - * So this classes shouldn't be simple or their dependencies are already defined here. - * - * This kind of dependencies are NOT required to be defined here: - * - $a = new ClassA(new ClassB()); - * - $a = new ClassA(); - * - $a = new ClassA(Configuration $configuration); - * - * This kind of dependencies SHOULD be defined here: - * - $a = new ClassA(); - * $b = $a->create(); - * - * - $a = new ClassA($creationPassedVariable); - * - */ return [ '*' => [ // marks all class result as shared for other creations, so there's just diff --git a/static/routes.config.php b/static/routes.config.php index dd757b518..34f4b6d6f 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -1,17 +1,35 @@ . + * + * Configuration for the default routes in Friendica + * + * The syntax is either + * - 'route' => [ Module::class , [ HTTPMethod(s) ] ] + * - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ] + * + * It's possible to create recursive groups + * + */ use Friendica\App\Router as R; use Friendica\Module; -/** -* Configuration for the default routes in Friendica -* -* The syntax is either -* - 'route' => [ Module::class , [ HTTPMethod(s) ] ] -* - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ] -* -* It's possible to create recursive groups -*/ return [ '/' => [Module\Home::class, [R::GET]], diff --git a/static/settings.config.php b/static/settings.config.php index a5c6c3aea..abfb1024e 100644 --- a/static/settings.config.php +++ b/static/settings.config.php @@ -1,12 +1,28 @@ . + * + * This file declares the default values for the admin settings of Friendica. * * These values will be overridden by the admin settings page. * * Please don't edit this file directly as its content may change in the upcoming versions. + * */ return [ diff --git a/tests/DatabaseTest.php b/tests/DatabaseTest.php index 7421f16a0..1e581725d 100644 --- a/tests/DatabaseTest.php +++ b/tests/DatabaseTest.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Test; diff --git a/tests/DatabaseTestTrait.php b/tests/DatabaseTestTrait.php index 49dc999b6..5f753f315 100644 --- a/tests/DatabaseTestTrait.php +++ b/tests/DatabaseTestTrait.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Test; diff --git a/tests/MockedTest.php b/tests/MockedTest.php index 87f775702..9137a1f51 100644 --- a/tests/MockedTest.php +++ b/tests/MockedTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test; diff --git a/tests/Util/AppMockTrait.php b/tests/Util/AppMockTrait.php index 6e929e5f2..1f6605390 100644 --- a/tests/Util/AppMockTrait.php +++ b/tests/Util/AppMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/DBAMockTrait.php b/tests/Util/DBAMockTrait.php index ab5bc6059..932cceea8 100644 --- a/tests/Util/DBAMockTrait.php +++ b/tests/Util/DBAMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/DBStructureMockTrait.php b/tests/Util/DBStructureMockTrait.php index 224e5d07a..2d47cc85e 100644 --- a/tests/Util/DBStructureMockTrait.php +++ b/tests/Util/DBStructureMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/Database/ExtendedPDO.php b/tests/Util/Database/ExtendedPDO.php index 6bb0251c5..857589d2c 100644 --- a/tests/Util/Database/ExtendedPDO.php +++ b/tests/Util/Database/ExtendedPDO.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util\Database; diff --git a/tests/Util/Database/StaticDatabase.php b/tests/Util/Database/StaticDatabase.php index dcc5d9db4..f2ed6c700 100644 --- a/tests/Util/Database/StaticDatabase.php +++ b/tests/Util/Database/StaticDatabase.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util\Database; diff --git a/tests/Util/DateTimeFormatMockTrait.php b/tests/Util/DateTimeFormatMockTrait.php index 0230e16a4..a2c26c76e 100644 --- a/tests/Util/DateTimeFormatMockTrait.php +++ b/tests/Util/DateTimeFormatMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/DbaCacheMockTrait.php b/tests/Util/DbaCacheMockTrait.php index 9d59690c0..77f1cd73c 100644 --- a/tests/Util/DbaCacheMockTrait.php +++ b/tests/Util/DbaCacheMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/DbaLockMockTrait.php b/tests/Util/DbaLockMockTrait.php index 65698f1a1..e38770cb2 100644 --- a/tests/Util/DbaLockMockTrait.php +++ b/tests/Util/DbaLockMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/Intercept.php b/tests/Util/Intercept.php index 9435a5950..f22e98798 100644 --- a/tests/Util/Intercept.php +++ b/tests/Util/Intercept.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/RendererMockTrait.php b/tests/Util/RendererMockTrait.php index 57fd9dc44..04a65e302 100644 --- a/tests/Util/RendererMockTrait.php +++ b/tests/Util/RendererMockTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/SampleMailBuilder.php b/tests/Util/SampleMailBuilder.php index 59638eea9..7cc34e6af 100644 --- a/tests/Util/SampleMailBuilder.php +++ b/tests/Util/SampleMailBuilder.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/SampleStorageBackend.php b/tests/Util/SampleStorageBackend.php index f16c3a641..00dad8612 100644 --- a/tests/Util/SampleStorageBackend.php +++ b/tests/Util/SampleStorageBackend.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/SampleStorageBackendInstance.php b/tests/Util/SampleStorageBackendInstance.php index ceb329cb3..02afc7d75 100644 --- a/tests/Util/SampleStorageBackendInstance.php +++ b/tests/Util/SampleStorageBackendInstance.php @@ -1,6 +1,24 @@ . + * + * Contains a test-hook call for creating a storage instance + */ use Friendica\App; use Friendica\Core\L10n; diff --git a/tests/Util/StaticCookie.php b/tests/Util/StaticCookie.php index 01a8c49be..9aeec0b33 100644 --- a/tests/Util/StaticCookie.php +++ b/tests/Util/StaticCookie.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/Util/VFSTrait.php b/tests/Util/VFSTrait.php index ecf0880d2..96f385b3b 100644 --- a/tests/Util/VFSTrait.php +++ b/tests/Util/VFSTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 8b4b8ade1..bf95252f1 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,5 +1,22 @@ . + * * This file is loaded by PHPUnit before any test. */ diff --git a/tests/datasets/api.fixture.php b/tests/datasets/api.fixture.php index 44501d049..8bb701da1 100644 --- a/tests/datasets/api.fixture.php +++ b/tests/datasets/api.fixture.php @@ -1,4 +1,23 @@ . + * + */ return [ // Empty these tables diff --git a/tests/datasets/storage/database.fixture.php b/tests/datasets/storage/database.fixture.php index 780bfa140..442b40e73 100644 --- a/tests/datasets/storage/database.fixture.php +++ b/tests/datasets/storage/database.fixture.php @@ -1,4 +1,23 @@ . + * + */ return [ 'photo' => [ diff --git a/tests/functional/DependencyCheckTest.php b/tests/functional/DependencyCheckTest.php index 944b62390..a99e25cda 100644 --- a/tests/functional/DependencyCheckTest.php +++ b/tests/functional/DependencyCheckTest.php @@ -1,4 +1,23 @@ . + * + */ namespace functional; diff --git a/tests/src/App/ArgumentsTest.php b/tests/src/App/ArgumentsTest.php index ee0419955..a7ef451d9 100644 --- a/tests/src/App/ArgumentsTest.php +++ b/tests/src/App/ArgumentsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\App; diff --git a/tests/src/App/ModeTest.php b/tests/src/App/ModeTest.php index 2fbb6863c..6ea13f1fb 100644 --- a/tests/src/App/ModeTest.php +++ b/tests/src/App/ModeTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\App; diff --git a/tests/src/App/ModuleTest.php b/tests/src/App/ModuleTest.php index 5b8bdcd3d..a7c439d1f 100644 --- a/tests/src/App/ModuleTest.php +++ b/tests/src/App/ModuleTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\App; diff --git a/tests/src/App/RouterTest.php b/tests/src/App/RouterTest.php index 6d4b8770d..064e37a12 100644 --- a/tests/src/App/RouterTest.php +++ b/tests/src/App/RouterTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\App; diff --git a/tests/src/Console/AutomaticInstallationConsoleTest.php b/tests/src/Console/AutomaticInstallationConsoleTest.php index ed3166167..8d1be751d 100644 --- a/tests/src/Console/AutomaticInstallationConsoleTest.php +++ b/tests/src/Console/AutomaticInstallationConsoleTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Console; diff --git a/tests/src/Console/ConfigConsoleTest.php b/tests/src/Console/ConfigConsoleTest.php index 77ef45b74..05ed3f3c1 100644 --- a/tests/src/Console/ConfigConsoleTest.php +++ b/tests/src/Console/ConfigConsoleTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Console; diff --git a/tests/src/Console/ConsoleTest.php b/tests/src/Console/ConsoleTest.php index 64fab4baf..724163d6f 100644 --- a/tests/src/Console/ConsoleTest.php +++ b/tests/src/Console/ConsoleTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Console; diff --git a/tests/src/Console/LockConsoleTest.php b/tests/src/Console/LockConsoleTest.php index dddc9daff..6ba0eb04d 100644 --- a/tests/src/Console/LockConsoleTest.php +++ b/tests/src/Console/LockConsoleTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Console; diff --git a/tests/src/Console/ServerBlockConsoleTest.php b/tests/src/Console/ServerBlockConsoleTest.php index c7c936b94..027da035e 100644 --- a/tests/src/Console/ServerBlockConsoleTest.php +++ b/tests/src/Console/ServerBlockConsoleTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Console; diff --git a/tests/src/Content/ItemTest.php b/tests/src/Content/ItemTest.php index 5cdfa978b..102e59427 100644 --- a/tests/src/Content/ItemTest.php +++ b/tests/src/Content/ItemTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Content; diff --git a/tests/src/Content/Text/BBCode/VideoTest.php b/tests/src/Content/Text/BBCode/VideoTest.php index 4a176871a..2a3cef75a 100644 --- a/tests/src/Content/Text/BBCode/VideoTest.php +++ b/tests/src/Content/Text/BBCode/VideoTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Content\Text\BBCode; diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php index 7db69eef3..f827eb5b1 100644 --- a/tests/src/Content/Text/BBCodeTest.php +++ b/tests/src/Content/Text/BBCodeTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Content\Text; diff --git a/tests/src/Content/Text/HTMLTest.php b/tests/src/Content/Text/HTMLTest.php index fe5439901..f640c4fb1 100644 --- a/tests/src/Content/Text/HTMLTest.php +++ b/tests/src/Content/Text/HTMLTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Content\Text; diff --git a/tests/src/Content/Text/MarkdownTest.php b/tests/src/Content/Text/MarkdownTest.php index 80421b522..a22c2e25b 100644 --- a/tests/src/Content/Text/MarkdownTest.php +++ b/tests/src/Content/Text/MarkdownTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Content\Text; diff --git a/tests/src/Core/Cache/APCuCacheTest.php b/tests/src/Core/Cache/APCuCacheTest.php index dfb81d9c6..695c725d3 100644 --- a/tests/src/Core/Cache/APCuCacheTest.php +++ b/tests/src/Core/Cache/APCuCacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Cache/ArrayCacheTest.php b/tests/src/Core/Cache/ArrayCacheTest.php index 60ca2761e..a0dd87b03 100644 --- a/tests/src/Core/Cache/ArrayCacheTest.php +++ b/tests/src/Core/Cache/ArrayCacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Cache/CacheTest.php b/tests/src/Core/Cache/CacheTest.php index 9071a55c4..e9a26f2f4 100644 --- a/tests/src/Core/Cache/CacheTest.php +++ b/tests/src/Core/Cache/CacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Cache/DatabaseCacheTest.php b/tests/src/Core/Cache/DatabaseCacheTest.php index dbc98bcf4..f8919a6cf 100644 --- a/tests/src/Core/Cache/DatabaseCacheTest.php +++ b/tests/src/Core/Cache/DatabaseCacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Cache/MemcacheCacheTest.php b/tests/src/Core/Cache/MemcacheCacheTest.php index f6d1101c4..ed69d887a 100644 --- a/tests/src/Core/Cache/MemcacheCacheTest.php +++ b/tests/src/Core/Cache/MemcacheCacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Cache/MemcachedCacheTest.php b/tests/src/Core/Cache/MemcachedCacheTest.php index add400678..5fe96ddae 100644 --- a/tests/src/Core/Cache/MemcachedCacheTest.php +++ b/tests/src/Core/Cache/MemcachedCacheTest.php @@ -1,5 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Cache/MemoryCacheTest.php b/tests/src/Core/Cache/MemoryCacheTest.php index 19c102396..8f73d7677 100644 --- a/tests/src/Core/Cache/MemoryCacheTest.php +++ b/tests/src/Core/Cache/MemoryCacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Cache/RedisCacheTest.php b/tests/src/Core/Cache/RedisCacheTest.php index e7a3ffb31..821c3c5cf 100644 --- a/tests/src/Core/Cache/RedisCacheTest.php +++ b/tests/src/Core/Cache/RedisCacheTest.php @@ -1,5 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Cache; diff --git a/tests/src/Core/Config/CacheTest.php b/tests/src/Core/Config/CacheTest.php index 9a398f5d5..c4e59e691 100644 --- a/tests/src/Core/Config/CacheTest.php +++ b/tests/src/Core/Config/CacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Config; diff --git a/tests/src/Core/Config/ConfigTest.php b/tests/src/Core/Config/ConfigTest.php index c67f930a4..7dd61d451 100644 --- a/tests/src/Core/Config/ConfigTest.php +++ b/tests/src/Core/Config/ConfigTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Config; diff --git a/tests/src/Core/Config/JitConfigTest.php b/tests/src/Core/Config/JitConfigTest.php index 28aee3017..cdaf874b6 100644 --- a/tests/src/Core/Config/JitConfigTest.php +++ b/tests/src/Core/Config/JitConfigTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Config; diff --git a/tests/src/Core/Config/PreloadConfigTest.php b/tests/src/Core/Config/PreloadConfigTest.php index 68db7c6f8..4bcf842d8 100644 --- a/tests/src/Core/Config/PreloadConfigTest.php +++ b/tests/src/Core/Config/PreloadConfigTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Config; diff --git a/tests/src/Core/InstallerTest.php b/tests/src/Core/InstallerTest.php index 371932caf..f512bf17b 100644 --- a/tests/src/Core/InstallerTest.php +++ b/tests/src/Core/InstallerTest.php @@ -1,4 +1,23 @@ . + * + */ // this is in the same namespace as Install for mocking 'function_exists' namespace Friendica\Core; diff --git a/tests/src/Core/L10nTest.php b/tests/src/Core/L10nTest.php index 7d30d3127..66a96892d 100644 --- a/tests/src/Core/L10nTest.php +++ b/tests/src/Core/L10nTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\L10n; diff --git a/tests/src/Core/Lock/APCuCacheLockTest.php b/tests/src/Core/Lock/APCuCacheLockTest.php index c24371781..844865956 100644 --- a/tests/src/Core/Lock/APCuCacheLockTest.php +++ b/tests/src/Core/Lock/APCuCacheLockTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/Lock/ArrayCacheLockTest.php b/tests/src/Core/Lock/ArrayCacheLockTest.php index cc35d7f5e..ba8070675 100644 --- a/tests/src/Core/Lock/ArrayCacheLockTest.php +++ b/tests/src/Core/Lock/ArrayCacheLockTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/Lock/DatabaseLockTest.php b/tests/src/Core/Lock/DatabaseLockTest.php index 2b20b2c10..5f3ef13c1 100644 --- a/tests/src/Core/Lock/DatabaseLockTest.php +++ b/tests/src/Core/Lock/DatabaseLockTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/Lock/LockTest.php b/tests/src/Core/Lock/LockTest.php index 70d7819d7..c7a1664f1 100644 --- a/tests/src/Core/Lock/LockTest.php +++ b/tests/src/Core/Lock/LockTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/Lock/MemcacheCacheLockTest.php b/tests/src/Core/Lock/MemcacheCacheLockTest.php index b7ef5d376..8008cb0ee 100644 --- a/tests/src/Core/Lock/MemcacheCacheLockTest.php +++ b/tests/src/Core/Lock/MemcacheCacheLockTest.php @@ -1,5 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/Lock/MemcachedCacheLockTest.php b/tests/src/Core/Lock/MemcachedCacheLockTest.php index 69272007a..232f78714 100644 --- a/tests/src/Core/Lock/MemcachedCacheLockTest.php +++ b/tests/src/Core/Lock/MemcachedCacheLockTest.php @@ -1,5 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/Lock/RedisCacheLockTest.php b/tests/src/Core/Lock/RedisCacheLockTest.php index 41a3c2318..fb9bc80b7 100644 --- a/tests/src/Core/Lock/RedisCacheLockTest.php +++ b/tests/src/Core/Lock/RedisCacheLockTest.php @@ -1,5 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/Lock/SemaphoreLockTest.php b/tests/src/Core/Lock/SemaphoreLockTest.php index aec4d0fd6..04aeb2b45 100644 --- a/tests/src/Core/Lock/SemaphoreLockTest.php +++ b/tests/src/Core/Lock/SemaphoreLockTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; diff --git a/tests/src/Core/PConfig/CacheTest.php b/tests/src/Core/PConfig/CacheTest.php index 62f6d22df..927fab009 100644 --- a/tests/src/Core/PConfig/CacheTest.php +++ b/tests/src/Core/PConfig/CacheTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\PConfig; diff --git a/tests/src/Core/PConfig/JitPConfigTest.php b/tests/src/Core/PConfig/JitPConfigTest.php index b19317144..ab5dbafd9 100644 --- a/tests/src/Core/PConfig/JitPConfigTest.php +++ b/tests/src/Core/PConfig/JitPConfigTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\PConfig; diff --git a/tests/src/Core/PConfig/PConfigTest.php b/tests/src/Core/PConfig/PConfigTest.php index e6f0326cb..090dab69f 100644 --- a/tests/src/Core/PConfig/PConfigTest.php +++ b/tests/src/Core/PConfig/PConfigTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\PConfig; diff --git a/tests/src/Core/PConfig/PreloadPConfigTest.php b/tests/src/Core/PConfig/PreloadPConfigTest.php index 60d62938e..984d2c0e2 100644 --- a/tests/src/Core/PConfig/PreloadPConfigTest.php +++ b/tests/src/Core/PConfig/PreloadPConfigTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core\PConfig; diff --git a/tests/src/Core/StorageManagerTest.php b/tests/src/Core/StorageManagerTest.php index b62697886..c6f4558b7 100644 --- a/tests/src/Core/StorageManagerTest.php +++ b/tests/src/Core/StorageManagerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core; diff --git a/tests/src/Core/SystemTest.php b/tests/src/Core/SystemTest.php index 1b09eb46a..3f06ab6d2 100644 --- a/tests/src/Core/SystemTest.php +++ b/tests/src/Core/SystemTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Core; diff --git a/tests/src/Database/DBStructureTest.php b/tests/src/Database/DBStructureTest.php index b3f9fb208..2a254eb89 100644 --- a/tests/src/Database/DBStructureTest.php +++ b/tests/src/Database/DBStructureTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Database; diff --git a/tests/src/Model/FileTagTest.php b/tests/src/Model/FileTagTest.php index f74bec363..b12261d70 100644 --- a/tests/src/Model/FileTagTest.php +++ b/tests/src/Model/FileTagTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Model; diff --git a/tests/src/Model/Storage/DatabaseStorageTest.php b/tests/src/Model/Storage/DatabaseStorageTest.php index 64d26aa11..cf29aedf9 100644 --- a/tests/src/Model/Storage/DatabaseStorageTest.php +++ b/tests/src/Model/Storage/DatabaseStorageTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Model\Storage; diff --git a/tests/src/Model/Storage/FilesystemStorageTest.php b/tests/src/Model/Storage/FilesystemStorageTest.php index eb1336c82..5e508ddb0 100644 --- a/tests/src/Model/Storage/FilesystemStorageTest.php +++ b/tests/src/Model/Storage/FilesystemStorageTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Model\Storage; diff --git a/tests/src/Model/Storage/StorageTest.php b/tests/src/Model/Storage/StorageTest.php index ae3f8f01f..d8b3c6cb7 100644 --- a/tests/src/Model/Storage/StorageTest.php +++ b/tests/src/Model/Storage/StorageTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Model\Storage; diff --git a/tests/src/Model/User/CookieTest.php b/tests/src/Model/User/CookieTest.php index 2c791acf8..cac278076 100644 --- a/tests/src/Model/User/CookieTest.php +++ b/tests/src/Model/User/CookieTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Testsrc\Model\User; diff --git a/tests/src/Model/UserTest.php b/tests/src/Model/UserTest.php index 583b1dbfd..bc0db13f4 100644 --- a/tests/src/Model/UserTest.php +++ b/tests/src/Model/UserTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Model; diff --git a/tests/src/Network/CurlResultTest.php b/tests/src/Network/CurlResultTest.php index 20287c973..e066fb89b 100644 --- a/tests/src/Network/CurlResultTest.php +++ b/tests/src/Network/CurlResultTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Network; diff --git a/tests/src/Protocol/ActivityTest.php b/tests/src/Protocol/ActivityTest.php index a3e9c1148..31ff8efc1 100644 --- a/tests/src/Protocol/ActivityTest.php +++ b/tests/src/Protocol/ActivityTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Protocol; diff --git a/tests/src/Util/ACLFormaterTest.php b/tests/src/Util/ACLFormaterTest.php index 5d588274b..37535b558 100644 --- a/tests/src/Util/ACLFormaterTest.php +++ b/tests/src/Util/ACLFormaterTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util; diff --git a/tests/src/Util/ArraysTest.php b/tests/src/Util/ArraysTest.php index 6eb62b1ab..1b82c0b8f 100644 --- a/tests/src/Util/ArraysTest.php +++ b/tests/src/Util/ArraysTest.php @@ -1,8 +1,24 @@ + * @copyright Copyright (C) 2020, Friendica + * + * @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 + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ + namespace Friendica\Test\src\Util; use Friendica\Util\Arrays; diff --git a/tests/src/Util/Config/ConfigFileLoaderTest.php b/tests/src/Util/Config/ConfigFileLoaderTest.php index 59b2f39cb..57bcc8446 100644 --- a/tests/src/Util/Config/ConfigFileLoaderTest.php +++ b/tests/src/Util/Config/ConfigFileLoaderTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Config; diff --git a/tests/src/Util/CryptoTest.php b/tests/src/Util/CryptoTest.php index 76e3076f0..9f232210c 100644 --- a/tests/src/Util/CryptoTest.php +++ b/tests/src/Util/CryptoTest.php @@ -1,6 +1,24 @@ . + * + * This is in the same namespace as Crypto for mocking 'rand' and 'random_init' + */ namespace Friendica\Util; use PHPUnit\Framework\TestCase; diff --git a/tests/src/Util/DateTimeFormatTest.php b/tests/src/Util/DateTimeFormatTest.php index bdc902eab..4e1a02a29 100644 --- a/tests/src/Util/DateTimeFormatTest.php +++ b/tests/src/Util/DateTimeFormatTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util; diff --git a/tests/src/Util/Emailer/MailBuilderTest.php b/tests/src/Util/Emailer/MailBuilderTest.php index 1e475c9f7..4bae9bfd8 100644 --- a/tests/src/Util/Emailer/MailBuilderTest.php +++ b/tests/src/Util/Emailer/MailBuilderTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Emailer; diff --git a/tests/src/Util/Emailer/SystemMailBuilderTest.php b/tests/src/Util/Emailer/SystemMailBuilderTest.php index e85560276..45466bb8a 100644 --- a/tests/src/Util/Emailer/SystemMailBuilderTest.php +++ b/tests/src/Util/Emailer/SystemMailBuilderTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Emailer; diff --git a/tests/src/Util/Logger/AbstractLoggerTest.php b/tests/src/Util/Logger/AbstractLoggerTest.php index e0c033583..2cac6ce71 100644 --- a/tests/src/Util/Logger/AbstractLoggerTest.php +++ b/tests/src/Util/Logger/AbstractLoggerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/Logger/LoggerDataTrait.php b/tests/src/Util/Logger/LoggerDataTrait.php index 1267098a8..f8738ed07 100644 --- a/tests/src/Util/Logger/LoggerDataTrait.php +++ b/tests/src/Util/Logger/LoggerDataTrait.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/Logger/ProfilerLoggerTest.php b/tests/src/Util/Logger/ProfilerLoggerTest.php index 848191a4d..68db1448a 100644 --- a/tests/src/Util/Logger/ProfilerLoggerTest.php +++ b/tests/src/Util/Logger/ProfilerLoggerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/Logger/StreamLoggerTest.php b/tests/src/Util/Logger/StreamLoggerTest.php index 7dcb08ba6..f507634f0 100644 --- a/tests/src/Util/Logger/StreamLoggerTest.php +++ b/tests/src/Util/Logger/StreamLoggerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/Logger/SyslogLoggerTest.php b/tests/src/Util/Logger/SyslogLoggerTest.php index aee94e7fd..5bedaf5dc 100644 --- a/tests/src/Util/Logger/SyslogLoggerTest.php +++ b/tests/src/Util/Logger/SyslogLoggerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/Logger/SyslogLoggerWrapper.php b/tests/src/Util/Logger/SyslogLoggerWrapper.php index 779067e28..8cc6a77f5 100644 --- a/tests/src/Util/Logger/SyslogLoggerWrapper.php +++ b/tests/src/Util/Logger/SyslogLoggerWrapper.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/Logger/VoidLoggerTest.php b/tests/src/Util/Logger/VoidLoggerTest.php index 4c436d697..1ff74f273 100644 --- a/tests/src/Util/Logger/VoidLoggerTest.php +++ b/tests/src/Util/Logger/VoidLoggerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/Logger/WorkerLoggerTest.php b/tests/src/Util/Logger/WorkerLoggerTest.php index 7676b01e5..d63e5eda5 100644 --- a/tests/src/Util/Logger/WorkerLoggerTest.php +++ b/tests/src/Util/Logger/WorkerLoggerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util\Logger; diff --git a/tests/src/Util/ProfilerTest.php b/tests/src/Util/ProfilerTest.php index cfd28af17..30e60b209 100644 --- a/tests/src/Util/ProfilerTest.php +++ b/tests/src/Util/ProfilerTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Util; diff --git a/tests/src/Util/StringsTest.php b/tests/src/Util/StringsTest.php index c4037002b..86280cc5f 100644 --- a/tests/src/Util/StringsTest.php +++ b/tests/src/Util/StringsTest.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Test\src\Util; use Friendica\Util\Strings; diff --git a/tests/src/Util/XmlTest.php b/tests/src/Util/XmlTest.php index 85d91d2ef..16c27836d 100644 --- a/tests/src/Util/XmlTest.php +++ b/tests/src/Util/XmlTest.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Test\src\Util; use Friendica\Util\XML; diff --git a/update.php b/update.php index f86fea8df..06287516f 100644 --- a/update.php +++ b/update.php @@ -1,21 +1,23 @@ . + * + * Automatic post-databse structure change updates * * These functions are responsible for doing critical post update changes to the data (not the structure) in the database. * @@ -38,6 +40,20 @@ use Friendica\Worker\Delivery; * If you need to run a script before the database update, name the function "pre_update_4712()" */ +use Friendica\Core\Addon; +use Friendica\Core\Logger; +use Friendica\Core\Update; +use Friendica\Core\Worker; +use Friendica\Database\DBA; +use Friendica\DI; +use Friendica\Model\Contact; +use Friendica\Model\GContact; +use Friendica\Model\Item; +use Friendica\Model\User; +use Friendica\Model\Storage; +use Friendica\Util\DateTimeFormat; +use Friendica\Worker\Delivery; + function update_1178() { require_once 'mod/profiles.php'; diff --git a/view/php/none.php b/view/php/none.php index 7c6435e6f..ce7447b5d 100644 --- a/view/php/none.php +++ b/view/php/none.php @@ -1,11 +1,27 @@ -. + * + * The site template for pure content (e.g. (modals) + * + * This themplate is used e.g for bs modals. So outputs + * only the pure content + */ + +if(!empty($page['content'])) echo $page['content']; + diff --git a/view/theme/duepuntozero/style.php b/view/theme/duepuntozero/style.php index 47944ec58..f507dcfdd 100644 --- a/view/theme/duepuntozero/style.php +++ b/view/theme/duepuntozero/style.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\DI; if (file_exists("$THEMEPATH/style.css")) { diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 8548899a7..33ad00baf 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Core\Renderer; diff --git a/view/theme/frio/config.php b/view/theme/frio/config.php index d0d1c8cb7..511008eaa 100644 --- a/view/theme/frio/config.php +++ b/view/theme/frio/config.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Core\Renderer; diff --git a/view/theme/frio/php/Image.php b/view/theme/frio/php/Image.php index c18c32d11..567fc0241 100644 --- a/view/theme/frio/php/Image.php +++ b/view/theme/frio/php/Image.php @@ -1,6 +1,22 @@ . + * * contain methods to deal with images */ diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index bdc6eeb49..bd5ef7f3f 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -1,8 +1,25 @@ . + * * The default site template */ + ?> . * * This file contains functions for page construction * diff --git a/view/theme/frio/php/scheme.php b/view/theme/frio/php/scheme.php index d2c209d64..42fc21ab8 100644 --- a/view/theme/frio/php/scheme.php +++ b/view/theme/frio/php/scheme.php @@ -1,6 +1,22 @@ . + * * Get info header of the scheme * * This function parses the header of the schemename.php file for informations like diff --git a/view/theme/frio/php/standard.php b/view/theme/frio/php/standard.php index 9b6796f67..927b0461c 100644 --- a/view/theme/frio/php/standard.php +++ b/view/theme/frio/php/standard.php @@ -1,8 +1,25 @@ . + * * The default site template */ + ?> diff --git a/view/theme/frio/style.php b/view/theme/frio/style.php index 09312897f..3d9c7743a 100644 --- a/view/theme/frio/style.php +++ b/view/theme/frio/style.php @@ -1,6 +1,22 @@ . + * */ use Friendica\DI; diff --git a/view/theme/quattro/style.php b/view/theme/quattro/style.php index 27718da6d..d17d7b541 100644 --- a/view/theme/quattro/style.php +++ b/view/theme/quattro/style.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\DI; $uid = $_REQUEST['puid'] ?? 0; diff --git a/view/theme/vier/style.php b/view/theme/vier/style.php index de58042fa..ac5cd08ef 100644 --- a/view/theme/vier/style.php +++ b/view/theme/vier/style.php @@ -1,7 +1,24 @@ . + * */ + use Friendica\Core\Logger; use Friendica\DI;