src/RollbarJsHelper.php
public function shouldAddJs($status, $headers)
    {
        return
            $status == 200 &&
            $this->isHtml($headers) &&
            !$this->hasAttachment($headers);
            
            /**
             * @todo not sure if below two conditions will be applicable
             */
            /* !env[JS_IS_INJECTED_KEY] */
            /* && !streaming?(env) */
    }
public function shouldAddJs($status, $headers)
    {
        return
            $status == 200 &&
            $this->isHtml($headers) &&
            !$this->hasAttachment($headers);
            
            /**
             * @todo not sure if below two conditions will be applicable
             */
            /* !env[JS_IS_INJECTED_KEY] */
            /* && !streaming?(env) */
    }
public function shouldAddJs ( $ status , $ headers ) { return $ status == 200 && $ this -> isHtml ( $ headers ) && ! $ this -> hasAttachment ( $ headers ) ; /**
             * @todo not sure if below two conditions will be applicable
             */ /* !env[JS_IS_INJECTED_KEY] */ /* && !streaming?(env) */ }
Should JS snippet be added to the HTTP response

@param int $status
@param array $headers

@return boolean
Should JS snippet be added to the HTTP response