diff --git a/bin/daemon.php b/bin/daemon.php
index 8ba85033ce..c2ce05c8e0 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 106c9b81f1..1b70a20955 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 cd6e3bda85..eab34611e2 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 a588484766..3707962576 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 0777a72f4f..a9956441c1 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 2230c93c77..f4bab4b8fc 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 7a6e26b42e..4857b1f129 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 8114d27861..47a809497e 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 9e32b87d6f..ff8969888c 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 7e1dcc1859..436d8bb559 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 61922ef88a..7aa00240b7 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 a8544ca7dc..c191d3e170 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 a08fe1b48a..2e1f51a11c 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 bc0100bfa4..14221c7e6e 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 fd57dcf9c4..0be8403c2b 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 6784a20c49..ea52a994b0 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 ca5db3e081..aa8930e5d0 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 ffe67f67fe..6c5c274ea3 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 c62c037759..36eea57194 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 69b5f52cda..636bd8c319 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 e3382bddb8..d3eceb4e07 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 51aee56df7..2ce396e366 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 b262bfd115..471d52ef6b 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 bba530ca5d..e871e22e31 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 1bbddf2196..1f7afebf37 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 38a72a741f..ccd30926c8 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 3eb13460d4..97367c3ea5 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 e5a3f1e9b4..bdf362e1ce 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 1329d4e017..b40ddf1d71 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 0733bbc960..b7ba79c2f3 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 f91a1753ce..3057fb9e31 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 ed030723d3..df1020b9f4 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 e8615feb7c..ee0a4c275b 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 b4c6a9cbd6..6ceba80553 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 c7b25a6655..6eea57f6a7 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 ddb3fb76cb..6fc8c8b1eb 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 f689eca9d8..96400b0dd6 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 77f75f8b8f..5fb9bdcff7 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 568b5fd54d..a6f35cea12 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 aae4f9ed33..2fa75133ca 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 a727e13df4..eb99a366f2 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 0d13c73afc..e4d456d28e 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 b8f3d8f498..73fd915e49 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 9aa0443f1e..d6b77aedbb 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 36ddef6814..0fd99bdf42 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 bb5128137f..c02a06c375 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 b7504bede1..fd33cdd17a 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 085201fc44..e5b482a65e 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 892a4c7790..9b6f6a5a29 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 7a625e600a..519de0cc9c 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 0907f8ba5c..8e683e5623 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 739971df99..30f47b5986 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 beeb6dfa0c..11e7f1a760 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 a460ae1d98..50719774fb 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 21f2698b7c..7d25c8b71d 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 a95b7e6ba0..85da8eb485 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 783e849bfe..9c57665ffa 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 ee667cc4da..265c130b18 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 c32b1806dc..9a8d8fbb65 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 34ee4db833..2cb29af5f6 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 e0d5716d69..e1231f0b13 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 431781758b..17845f6152 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 19bf85ff38..c698dd00b0 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 a1ea50353d..0eaa72ffe6 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 b907b76966..2bc3393b23 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 ea184d4857..642fab111a 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 cc41d4c6d5..ee9a709152 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 91d894d2ee..31548173b5 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 c3585d7cd2..535eae0b33 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 8ebc6e265b..f55dbde0d5 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 0d0def0612..b574e300bc 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 7e2c591b3d..f1cd652f47 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 3bc7ff4a73..089d41729f 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 0ef1791413..7d25d94f17 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 1883fb1623..38f1022942 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 9269fcc5e0..ff891701a3 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 bff56d5af3..2dd3eba1e2 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 75fd1ea225..06946d4830 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 c235b31722..cbd50a0976 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 dc30b596fc..b5167aa72d 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 58b9d73874..4ff9ae98bf 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 0274c51738..0d234b53f0 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 83b6322df2..2b06c88c91 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 d36b8f1958..1e419bcf76 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 cf19e2065a..456bb268b9 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 e2ba412ca6..1103580139 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 3ac1c3b231..1b84a92f64 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 dc6cbb044c..07590bac0a 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 e5f1269ab5..1254c66188 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 9b0c4529d8..d59d638e14 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 e3151eb4ae..e4d2e93ff0 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 3b033c0af3..1452318b52 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 a35235bf5c..94974d08e6 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 b2d0e2641e..bd87d30898 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 17ddd048a5..6c7fd731cb 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 df7a48ddf7..06e320c40e 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 ec7f6b3fa2..6d4c0c5108 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 a269ca88c1..929853c2f0 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 912057984c..c520b54b9b 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 ef27b54b2d..c4a04d586c 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 51f424984f..9aba38910d 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 a30ccf0eec..60752896fc 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 47d9d01375..700802ca8b 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 bdd44a300e..ae23b40c02 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 9ef0ff2df1..bd055f165e 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 763aa98f34..e22051cfc6 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 83c85fa440..b66358b0e8 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 04fe09faad..4144fc95e6 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 e0ab07540c..000dccc8d5 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 f864200a31..c69545bbd1 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 ac9aeae5b9..ff844ca392 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 908eea3ac9..e1e671532b 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 67f2e548bd..477d001d29 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 002cad9853..fd79f34bf7 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 a5e28e5254..85b27ef4ac 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 85098d1deb..b3741e546d 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 3630102c77..c87bfcf25d 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 899b42f455..f33811ef6b 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 8e38ff8128..2eb94eeb72 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 57dc496456..ba464f75f3 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 fb57b1d7c4..c2441adc90 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 cf4ddc609e..c099a5e28a 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 be1f89e192..2026ff7f51 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 0e5fd14128..342e99550d 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 1057d0a270..7bdaec464c 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 72136ec0a3..80c0ef524e 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 b94c5343a0..60b8c41708 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 d55d8df018..2200d02e92 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 d00a6f6c9c..74f75fcd76 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 fd5ee0534b..87bbee7e8c 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 7d45434090..103a3cf4ca 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 6eb62b1abe..1b82c0b8ff 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 c4037002b8..86280cc5f1 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 85d91d2efe..16c27836d4 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 7c6435e6f0..ce7447b5d9 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 47944ec587..f507dcfdd6 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 c18c32d11a..567fc0241a 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 bdc6eeb49b..bd5ef7f3ff 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 9b6796f674..927b0461c9 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 09312897f6..3d9c7743ab 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 27718da6d2..d17d7b541a 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 de58042fac..ac5cd08efb 100644
--- a/view/theme/vier/style.php
+++ b/view/theme/vier/style.php
@@ -1,7 +1,24 @@
.
+ *
*/
+
use Friendica\Core\Logger;
use Friendica\DI;