public function validate($code)
    {
        $correctCode = $this->storage->pull();

        if (! empty($correctCode)) {
            return mb_strtolower($correctCode) === mb_strtolower($code);
        }

        return false;
    }
public function validate($code)
    {
        $correctCode = $this->storage->pull();

        if (! empty($correctCode)) {
            return mb_strtolower($correctCode) === mb_strtolower($code);
        }

        return false;
    }
public function validate ( $ code ) { $ correctCode = $ this -> storage -> pull ( ) ; if ( ! empty ( $ correctCode ) ) { return mb_strtolower ( $ correctCode ) === mb_strtolower ( $ code ) ; } return false ; }
Captcha validation.

@param string $code Code.
@return bool Returns TRUE on success or FALSE on failure.
Captcha validation .