protected function compressInlineJsCode($js)
    {
        if (!($js = (string) $js)) {
            return $js; // Nothing to do.
        }
        if (($compressed_js = \WebSharks\JsMinifier\Core::compress($js))) {
            return '/*<![CDATA[*/'.$compressed_js.'/*]]>*/';
        }
        return $js;
    }
protected function compressInlineJsCode($js)
    {
        if (!($js = (string) $js)) {
            return $js; // Nothing to do.
        }
        if (($compressed_js = \WebSharks\JsMinifier\Core::compress($js))) {
            return '/*<![CDATA[*/'.$compressed_js.'/*]]>*/';
        }
        return $js;
    }
protected function compressInlineJsCode ( $ js ) { if ( ! ( $ js = ( string ) $ js ) ) { return $ js ; // Nothing to do. } if ( ( $ compressed_js = \ WebSharks \ JsMinifier \ Core :: compress ( $ js ) ) ) { return '/*<![CDATA[*/' . $ compressed_js . '/*]]>*/' ; } return $ js ; }
Helper function; compress inline JS code.

@since 140417 Initial release.

@param string $js Raw JS code.

@return string JS code (possibly minified).
Helper function ; compress inline JS code .