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/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/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/enotify.php b/include/enotify.php
index 0777a72f4..a9956441c 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/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/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/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_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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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.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/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/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/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/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/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/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/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/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/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/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;