From 3d58f71135b2bb8c3ca896c5b3556bc72e465f70 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Fri, 28 Jul 2023 11:43:53 -0600 Subject: [PATCH] just updating some docblocks --- includes/class-nmspcli.php | 2 ++ includes/front/class-rewrites.php | 10 +++++++--- nmsp-plugin-name.php | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/includes/class-nmspcli.php b/includes/class-nmspcli.php index 0d6416c..e7472e4 100644 --- a/includes/class-nmspcli.php +++ b/includes/class-nmspcli.php @@ -13,6 +13,7 @@ class NmspCli { /** * Class constructor. Can add commands here. * + * @package PluginNamespace\NmspCli * @since 1.0.0 * * @return void @@ -31,6 +32,7 @@ class NmspCli { /** * A sample method where something is done by being invoked from WP CLI. * + * @package PluginNamespace\NmspCli * @since 1.0.0 * * @return void diff --git a/includes/front/class-rewrites.php b/includes/front/class-rewrites.php index 0f97229..7756cff 100644 --- a/includes/front/class-rewrites.php +++ b/includes/front/class-rewrites.php @@ -11,6 +11,7 @@ class Rewrites { /** * Class constructor. * + * @package PluginNamespace\Front\Rewrites * @since 1.0.0 * * @return void @@ -25,6 +26,7 @@ class Rewrites { /** * Generate new rewrite rules and flush the cached values. * + * @package PluginNamespace\Front\Rewrites * @since 1.0.0 * * @return void @@ -50,9 +52,10 @@ class Rewrites { * Build the array of post IDs that have a slug for the URL * along with what custom query variable to use. * + * @package PluginNamespace\Front\Rewrites * @since 1.0.0 * - * @return array + * @return array> */ public function build_rewrite_urls(): array { $pages = array(); @@ -82,11 +85,12 @@ class Rewrites { * Append custom query variables to the list WordPress maintinas * with each request. * + * @package PluginNamespace\Front\Rewrites * @since 1.0.0 * - * @param array $variable + * @param array $vars * - * @return array + * @return array */ public function custom_query_vars( array $vars ): array { $vars[] = 'foo'; diff --git a/nmsp-plugin-name.php b/nmsp-plugin-name.php index c5b513b..b102022 100644 --- a/nmsp-plugin-name.php +++ b/nmsp-plugin-name.php @@ -6,13 +6,13 @@ use eftec\bladeone\BladeOne; /** * Boilerplate Plugin v2 * - * @package BoilerplatePluginv2 + * @package BoilerplatePlugin * @author Plugin Author * @copyright GPLv3 * @license https://www.gnu.org/licenses/gpl-3.0.en.html * * @wordpress-plugin - * Plugin Name: Boilerplate Plugin v2 + * Plugin Name: Boilerplate Plugin * Description: Your plugin description. * License: GPLv3 * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html @@ -20,7 +20,7 @@ use eftec\bladeone\BladeOne; * Update URI: https://example.com/my-plugin/ * Version: 1.0.0 * Requires at least: 5.2 - * Requires PHP: 8.0.2 + * Requires PHP: 8.1 * Author: Plugin Author * Author URI: https://plugin-author.com * Text Domain: nmsp-plugin-name-text-domain