From 0a9ed8ec14e0ae2510aa5e8d5cb8c2b03d89ac33 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 11 Jan 2024 16:32:12 +1300 Subject: [PATCH] ENH Add generic types --- src/Extension/CommentSpamProtection.php | 4 ++-- src/Extension/FormSpamProtectionExtension.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Extension/CommentSpamProtection.php b/src/Extension/CommentSpamProtection.php index fc5f8c9..9b31976 100644 --- a/src/Extension/CommentSpamProtection.php +++ b/src/Extension/CommentSpamProtection.php @@ -2,14 +2,14 @@ namespace SilverStripe\SpamProtection\Extension; +use SilverStripe\Comments\Controllers\CommentingController; use SilverStripe\Core\Extension; /** * Apply the spam protection to the comments module if it is installed. * - * @package spamprotection + * @extends Extension */ - class CommentSpamProtection extends Extension { public function alterCommentForm(&$form) diff --git a/src/Extension/FormSpamProtectionExtension.php b/src/Extension/FormSpamProtectionExtension.php index 07de263..921fb99 100644 --- a/src/Extension/FormSpamProtectionExtension.php +++ b/src/Extension/FormSpamProtectionExtension.php @@ -6,14 +6,14 @@ use SilverStripe\Core\Config\Configurable; use SilverStripe\Core\Extension; use SilverStripe\Core\Injector\Injector; +use SilverStripe\Forms\Form; /** * An extension to the {@link Form} class which provides the method * {@link enableSpamProtection()} helper. * - * @package spamprotection + * @extends Extension
*/ - class FormSpamProtectionExtension extends Extension { use Configurable; @@ -86,7 +86,7 @@ public static function get_protector($options = null) * * @param array $options * @throws LogicException when get_protector method returns NULL. - * @return Object + * @return Form */ public function enableSpamProtection($options = []) {