From a6d97f8ba7b800c895fa7136c082cd47a4b735f5 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Sun, 24 Feb 2019 13:01:28 +0100 Subject: [PATCH] (php)doc --- activitypub.php | 3 ++- includes/class-activity.php | 2 ++ includes/class-activitypub.php | 3 +++ includes/class-admin.php | 5 +++++ includes/class-hashtag.php | 5 +++++ includes/class-post.php | 2 +- includes/class-signature.php | 5 +++++ includes/db/class-followers.php | 5 +++++ includes/rest/class-followers.php | 10 ++++++++++ includes/rest/class-inbox.php | 7 ++++++- includes/rest/class-nodeinfo.php | 10 ++++++++++ includes/rest/class-outbox.php | 8 ++++---- includes/rest/class-webfinger.php | 10 ++++++++++ readme.txt | 5 +++++ 14 files changed, 73 insertions(+), 7 deletions(-) diff --git a/activitypub.php b/activitypub.php index a6487ab..ffaaa38 100644 --- a/activitypub.php +++ b/activitypub.php @@ -8,6 +8,7 @@ * Author URI: https://notiz.blog/ * License: MIT * License URI: http://opensource.org/licenses/MIT + * Requires PHP: 5.6 * Text Domain: activitypub * Domain Path: /languages */ @@ -15,7 +16,7 @@ namespace Activitypub; /** - * Initialize pluginut + * Initialize plugin */ function init() { defined( 'ACTIVITYPUB_HASHTAGS_REGEXP' ) || define( 'ACTIVITYPUB_HASHTAGS_REGEXP', '(^|\s|>)#([^\s<>]+)\b' ); diff --git a/includes/class-activity.php b/includes/class-activity.php index 190dd96..354159d 100644 --- a/includes/class-activity.php +++ b/includes/class-activity.php @@ -5,6 +5,8 @@ namespace Activitypub; * ActivityPub Post Class * * @author Matthias Pfefferle + * + * @see https://www.w3.org/TR/activitypub/ */ class Activity { private $context = array( 'https://www.w3.org/ns/activitystreams' ); diff --git a/includes/class-activitypub.php b/includes/class-activitypub.php index 5812aec..7bf9fab 100644 --- a/includes/class-activitypub.php +++ b/includes/class-activitypub.php @@ -7,6 +7,9 @@ namespace Activitypub; * @author Matthias Pfefferle */ class Activitypub { + /** + * Initialize the class, registering WordPress hooks + */ public static function init() { add_filter( 'template_include', array( '\Activitypub\Activitypub', 'render_json_template' ), 99 ); add_filter( 'query_vars', array( '\Activitypub\Activitypub', 'add_query_vars' ) ); diff --git a/includes/class-admin.php b/includes/class-admin.php index 8c39061..ba3b55b 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -3,8 +3,13 @@ namespace Activitypub; /** * ActivityPub Admin Class + * + * @author Matthias Pfefferle */ class Admin { + /** + * Initialize the class, registering WordPress hooks + */ public static function init() { add_action( 'admin_menu', array( '\Activitypub\Admin', 'admin_menu' ) ); add_action( 'admin_init', array( '\Activitypub\Admin', 'register_settings' ) ); diff --git a/includes/class-hashtag.php b/includes/class-hashtag.php index 042f478..dc7db0d 100644 --- a/includes/class-hashtag.php +++ b/includes/class-hashtag.php @@ -3,8 +3,13 @@ namespace Activitypub; /** * ActivityPub Hashtag Class + * + * @author Matthias Pfefferle */ class Hashtag { + /** + * Initialize the class, registering WordPress hooks + */ public static function init() { add_filter( 'wp_insert_post', array( '\Activitypub\Hashtag', 'insert_post' ), 99, 2 ); add_filter( 'the_content', array( '\Activitypub\Hashtag', 'the_content' ), 99, 2 ); diff --git a/includes/class-post.php b/includes/class-post.php index 2431c5e..51f3958 100644 --- a/includes/class-post.php +++ b/includes/class-post.php @@ -10,7 +10,7 @@ class Post { private $post; /** - * + * Initialize the class, registering WordPress hooks */ public static function init() { add_filter( 'activitypub_the_summary', array( '\Activitypub\Post', 'add_backlink' ), 10, 2 ); diff --git a/includes/class-signature.php b/includes/class-signature.php index 68ae556..867d765 100644 --- a/includes/class-signature.php +++ b/includes/class-signature.php @@ -1,6 +1,11 @@