mirror of
https://github.com/silverstripe/silverstripe-mathspamprotection
synced 2024-10-22 08:05:52 +02:00
MINOR: IDE whitespace tidy
This commit is contained in:
parent
af1693b7ea
commit
bd4defe793
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\SpamProtection\Maths;
|
||||||
|
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Control\Session;
|
use SilverStripe\Control\Session;
|
||||||
@ -25,14 +26,14 @@ class MathSpamProtectorField extends TextField
|
|||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private static $question_prefix;
|
private static $question_prefix;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @config
|
* @config
|
||||||
*
|
*
|
||||||
* @var bool $allow_numeric_answer
|
* @var bool $allow_numeric_answer
|
||||||
*/
|
*/
|
||||||
private static $allow_numeric_answer = true;
|
private static $allow_numeric_answer = true;
|
||||||
|
|
||||||
public function Field($properties = array())
|
public function Field($properties = array())
|
||||||
{
|
{
|
||||||
if (Config::inst()->get('MathSpamProtectorField', 'enabled')) {
|
if (Config::inst()->get('MathSpamProtectorField', 'enabled')) {
|
||||||
@ -71,8 +72,8 @@ class MathSpamProtectorField extends TextField
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the value submitted by the user with the one saved into the
|
* Validates the value submitted by the user with the one saved into the
|
||||||
* {@link Session} and then notify callback object with the spam checking
|
* {@link Session} and then notify callback object with the spam checking
|
||||||
* result.
|
* result.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
@ -126,7 +127,7 @@ class MathSpamProtectorField extends TextField
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks the given answer if it matches the addition of the saved session
|
* Checks the given answer if it matches the addition of the saved session
|
||||||
* variables.
|
* variables.
|
||||||
*
|
*
|
||||||
* Users can answer using words or digits.
|
* Users can answer using words or digits.
|
||||||
|
Loading…
Reference in New Issue
Block a user