MINOR: IDE whitespace tidy

This commit is contained in:
Gordon Anderson 2018-04-19 22:07:24 +07:00
parent af1693b7ea
commit bd4defe793

View File

@ -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.