src/RollbarJsHelper.php
public function addJs($headers = null, $nonce = null, $customJs = "")
    {
        return $this->scriptTag(
            $this->configJsTag() . $this->jsSnippet() . ";" . $customJs,
            $headers,
            $nonce
        );
    }
public function addJs($headers = null, $nonce = null, $customJs = "")
    {
        return $this->scriptTag(
            $this->configJsTag() . $this->jsSnippet() . ";" . $customJs,
            $headers,
            $nonce
        );
    }
public function addJs ( $ headers = null , $ nonce = null , $ customJs = "" ) { return $ this -> scriptTag ( $ this -> configJsTag ( ) . $ this -> jsSnippet ( ) . ";" . $ customJs , $ headers , $ nonce ) ; }
Build Javascript required to include RollbarJS on
an HTML page

@param array $headers Response headers usually retrieved through
headers_list() used to verify if nonce should be added to script
tags based on Content-Security-Policy
@param string $nonce Content-Security-Policy nonce string if exists
@param strong $customJs Additional JavaScript to add at the end of
RollbarJs snippet

@return string
Build Javascript required to include RollbarJS on an HTML page