Skip to content

Commit

Permalink
ENH Add generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 11, 2024
1 parent a5b2363 commit 0a9ed8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Extension/CommentSpamProtection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<CommentingController>
*/

class CommentSpamProtection extends Extension
{
public function alterCommentForm(&$form)
Expand Down
6 changes: 3 additions & 3 deletions src/Extension/FormSpamProtectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<Form>
*/

class FormSpamProtectionExtension extends Extension
{
use Configurable;
Expand Down Expand Up @@ -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 = [])
{
Expand Down

0 comments on commit 0a9ed8e

Please sign in to comment.