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

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

        return parent::script($url, $options->toArray());
    }
public function script ( $ url , array $ options = [ ] ) { $ options = optionsParser ( $ options , [ 'block' => true ] ) ; return parent :: script ( $ url , $ options -> toArray ( ) ) ; }
Adds a js file to the layout.

If it's used in the layout, you should set the `inline` option to `true`.
@param mixed $url Javascript files as string or array
@param array $options Array of options and HTML attributes
@return mixed String of `<script />` tags or `null` if `$inline` is false
or if `$once` is true and the file has been included before
Adds a js file to the layout .