private function getDefaultNormalizer()
    {
        $default = $this->getDefault();
        $regex = $this->trueAnswerRegex;

        return function ($answer) use ($default, $regex) {
            if (\is_bool($answer)) {
                return $answer;
            }

            $answerIsTrue = (bool) preg_match($regex, $answer);
            if (false === $default) {
                return $answer && $answerIsTrue;
            }

            return '' === $answer || $answerIsTrue;
        };
    }
private function getDefaultNormalizer()
    {
        $default = $this->getDefault();
        $regex = $this->trueAnswerRegex;

        return function ($answer) use ($default, $regex) {
            if (\is_bool($answer)) {
                return $answer;
            }

            $answerIsTrue = (bool) preg_match($regex, $answer);
            if (false === $default) {
                return $answer && $answerIsTrue;
            }

            return '' === $answer || $answerIsTrue;
        };
    }
private function getDefaultNormalizer ( ) { $ default = $ this -> getDefault ( ) ; $ regex = $ this -> trueAnswerRegex ; return function ( $ answer ) use ( $ default , $ regex ) { if ( \ is_bool ( $ answer ) ) { return $ answer ; } $ answerIsTrue = ( bool ) preg_match ( $ regex , $ answer ) ; if ( false === $ default ) { return $ answer && $ answerIsTrue ; } return '' === $ answer || $ answerIsTrue ; } ; }
Returns the default answer normalizer.

@return callable
Returns the default answer normalizer .