public function scriptBlock($code, array $options = [])
    {
        $options = optionsParser($options, ['block' => true]);

        return parent::scriptBlock($code, $options->toArray());
    }
public function scriptBlock($code, array $options = [])
    {
        $options = optionsParser($options, ['block' => true]);

        return parent::scriptBlock($code, $options->toArray());
    }
public function scriptBlock ( $ code , array $ options = [ ] ) { $ options = optionsParser ( $ options , [ 'block' => true ] ) ; return parent :: scriptBlock ( $ code , $ options -> toArray ( ) ) ; }
Returns a Javascript code block
@param string $code Javascript code
@param array $options Array of options and HTML attributes
@return mixed A script tag or `null`
Returns a Javascript code block