src/Helper/Scripts.php
protected function attr($src = null, array $attr = array())
    {
        if (null !== $src) {
            $attr['src'] = $src;
        }
        $attr['type'] = 'text/javascript';
        return $this->escaper->attr($attr);
    }
protected function attr($src = null, array $attr = array())
    {
        if (null !== $src) {
            $attr['src'] = $src;
        }
        $attr['type'] = 'text/javascript';
        return $this->escaper->attr($attr);
    }
protected function attr ( $ src = null , array $ attr = array ( ) ) { if ( null !== $ src ) { $ attr [ 'src' ] = $ src ; } $ attr [ 'type' ] = 'text/javascript' ; return $ this -> escaper -> attr ( $ attr ) ; }
Fix and escape script attributes

@param mixed $src  script source
@param array $attr additional attributes

@return string

@access protected
Fix and escape script attributes