protected static function prepareNameAttribute($name)
    {
        if (is_null($name))
            return [];

        if ($name === AbstractNoCaptcha::CAPTCHA_NAME) {
            throw new InvalidArgumentException(
                'The captcha name must be different from "' . AbstractNoCaptcha::CAPTCHA_NAME . '".'
            );
        }

        return array_combine(['id', 'name'], [$name, $name]);
    }
protected static function prepareNameAttribute($name)
    {
        if (is_null($name))
            return [];

        if ($name === AbstractNoCaptcha::CAPTCHA_NAME) {
            throw new InvalidArgumentException(
                'The captcha name must be different from "' . AbstractNoCaptcha::CAPTCHA_NAME . '".'
            );
        }

        return array_combine(['id', 'name'], [$name, $name]);
    }
protected static function prepareNameAttribute ( $ name ) { if ( is_null ( $ name ) ) return [ ] ; if ( $ name === AbstractNoCaptcha :: CAPTCHA_NAME ) { throw new InvalidArgumentException ( 'The captcha name must be different from "' . AbstractNoCaptcha :: CAPTCHA_NAME . '".' ) ; } return array_combine ( [ 'id' , 'name' ] , [ $ name , $ name ] ) ; }
Prepare the name and id attributes.

@param  string|null  $name

@return array

@throws \Arcanedev\NoCaptcha\Exceptions\InvalidArgumentException
Prepare the name and id attributes .